Image
 
linkedin_logo.png rss_logo.jpg
twitter_logo.png youtube_logo.jpg
Latest Additions
 
EH-Net Login
Welcome Guest.






Lost Password?
No account yet? Register
Who's Online
We have 29 guests and 1 member online
 
Free Business and Tech Magazines and eBooks

You are here: Home arrow Ethical Hacking Discussions and Related Certificationsarrow Web Applicationsarrow DVWA medium dificulty filter evasion question
EH-Net
May 22, 2013, 12:08:08 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Go back to The Ethical Hacker Network Online Magazine Home Page
 
   Home   Help Calendar Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: DVWA medium dificulty filter evasion question  (Read 6046 times)
0 Members and 1 Guest are viewing this topic.
jinwald12
Jr. Member
**
Offline Offline

Posts: 77



View Profile
« on: July 25, 2011, 06:01:24 PM »

hi i am new to web app testing and am practicing with Damn Vulnerable Web App. i am focusing on SQL injection because that seems to be the most common attack vector these days. i was able to handle the easy difficulty setting no problem now i set it to medium and it seems that now it tacks a \ to the end of the user input to filter out SQL injection. what is the best way to bypass such filters i saw a article on this on http://ha.ckers.org/ but it did not make sense to me. can some one help?
Logged

where did all the fun go?
MaXe
Hero Member
*****
Offline Offline

Posts: 669


I've just upgraded myself to a cyborg muahahaa!!1


View Profile WWW
« Reply #1 on: July 26, 2011, 11:55:54 AM »

There are numerous ways to bypass filters. Most of them are encoding, such as hexadicmal or unicode entities. (ie. %XX or %u00XX)

Also, sometimes you can use double-byte characters. Where two characters may not filtered such as '? (there's a special character like this, it only works with mysql_escape_string(), and there's also some tricks to bypass addslashes too. Google for them!  Wink )

So, these are pretty common, however it also depends on the implementation of the "security". For example, a pseudo query like this would be insecure: SELECT lolcats FROM hats WHERE (id=$USERINPUT);

This is because the attacker, even if ' and " has a backslash appended, can just end the parentheses and inject his own code like this: ) UNION SELECT 0x41414141 FROM blah and so forth.

There's a lot of tricks, and a good book to read besides numerous articles you can find on google by searching for "encoding", "bypass", etc., is The Web Application Hackers Handbook. It will probably help you a lot  Wink
Logged

I'm an InterN0T'er
manoj9372
Jr. Member
**
Offline Offline

Posts: 72


View Profile
« Reply #2 on: August 22, 2011, 11:00:05 AM »

I found this for you
Code:
http://yehg.net/encoding/

i am not at all good at these ,but i feel it would be handy for u Smiley
Logged
jinwald12
Jr. Member
**
Offline Offline

Posts: 77



View Profile
« Reply #3 on: October 07, 2011, 01:23:57 AM »

i found an easier way if it appends a
Code:
'
to the beginning naturally make your input
Code:
1 UNION SELECT user, password FROM users --
so that way it is executed as a query because it automatically apends the open quote at the beginning  at least that works in this particular situation  now the issue i am having with the hard setting is it returns no error message even though it is not blind SQL injection so i am guessing the SQL ORDER BY query is the way to go maybe that will return a error i will keep playing around with it OWASP did a great job with this VM alot of fun stuff
« Last Edit: October 10, 2011, 05:46:49 PM by jinwald12 » Logged

where did all the fun go?
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Page created in 0.06 seconds with 23 queries.
 
Exclusive Deal

sansfire13_245x90_cw90.jpg
SANSFIRE 2013
June 15 - 22

5% Off w/ Code: EHN_5

SANS Deals 4 EH-Netters
5% OFF Any SANS Course in Any Format!
Coupon Code: EHN_5 Including SANS Rocky Mountain 2013 & SANS Boston 2013
Polls
Compared to this year, 2013 will be:
 
Recent Forum Topics
EH-Net News Feeds
Latest Additions
 
         
Advertisement

© 2013 The Ethical Hacker Network
Joomla! is Free Software released under the GNU/GPL License.