|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Search engine project
Hello, I would appriciate any review about my internet search engine project, I know its simple (or you can call it poor) but it has a purpose.
http://www32.brinkster.com/zeidnetwork/index.asp or http://www.zeid.tk Thanks in advance zeid |
|
#2
|
||||
|
||||
|
http://www32.brinkster.com/zeidnetw...27hi%27%3D%27hi
Wow, you have 127 sites in your directory! Jokes aside - what I am trying to say is that your site is SQL injectable. Its not much of an issue witha site like this - but I just thought that I would point it out. Put it like this, the SQL injection that I used enabled me to look at all of the records in your database - big wow (im being sarcastic!). However, if I knew the name of the table that you store all of the sites in, then I could type this into your search box: Code:
'; DELETE * FROM tblSites; And all of your sites would be gone. But like I said, I would have to guess the table name first.
__________________
LozWare Website Directory Whooo! Free submissions, no recip needed. I'm a nice guy
Last edited by LozWare : April 6th, 2006 at 01:35 PM. |
|
#3
|
|||
|
|||
|
Thank you for loosing time to check my site, can you please tell me how to get rid of these sql problems to make it secured.
|
|
#4
|
||||
|
||||
|
Sure thing! Just put this on the page that processes the search...
Code:
Dim SearchString
SearchString = replace(request.form("TextField"),"'","")
You need to replace TextField with the name of the actaul field that the user writes the search query into. Then you just impliment the code into the project. The principal is simple: you are just deleting all of the vulnerable characters in the search term before it is executed in the SQL statement. |
|
#5
|
||||
|
||||
|
The application is also vulnerable to Cross Site Scripting attacks.
Example: Enter the text below in your seach box Code:
<script>alert('XXS Hackable');</script>
|
|
#6
|
|||
|
|||
|
thanks a lot
but what does it do "hack"??? |
|
#7
|
||||
|
||||
|
Read up on what "Cross Site Scripting" is and can be used for, then you'll know why you need to prevent it.
Example: I can inject HTML code into the page, I can inject javascript code into the page, etc... Insert this into the search box and then look at what happens to your page as a result. Code:
<table border='1'><td>First Name:</td><td><input type='text'></td></tr><tr><td>Last Name:</td><td><input type='text'></td></tr></table> Last edited by Memnoch : April 6th, 2006 at 10:32 PM. |
|
#8
|
|||
|
|||
|
Thanks very much for your time.
|
![]() |
| Viewing: ASP Free Forums > Web Design > Site Reviews > Search engine project |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|