%3c has always been a friend of mine

Ask a developer what's the ASCII code of "A" and most should be able to tell you 65. The good ones will tell you 0x41. If you ask them they should be able to tell you some more off the top of their head. Space... 32, quote... 34, "a" ... 0x61 (I can never remember the base 10, hex was just easier for this). This isn't the coding equivalent of silly or pointless information like knowing all the Vice Presidents. Most developers have learned various ASCII codes over the course of their careers.I learned a lot of ASCII codes about 15 years ago while writing QBASIC apps when I needed to do things like PRINT "You entered " + CHR$(34) + $val + CHR$(34).


The same is true for web security professionals with URL encoded characters. Funny enough these are normally ASCII hex values but the characters you use so much that you memorize in web security are different than developers.The ones I have used so much I know by heart at %3c %3e %2f and %2e.


%3c = <


%3e = >


%2f = /


%2e = .


What URL encoded characters have you used so often that you know off the top of your head?

Comments
(anon) | ‎09-17-2009 07:21 PM

In addition to the ones you mentioned

%0A = new line

%26 = ampersand

(anon) | ‎09-21-2009 08:50 AM

%27

| ‎10-02-2009 09:58 AM

Do not forget %25 :smileyhappy:

(anon) | ‎11-03-2009 05:34 PM

%22

%2b

(those two can help in bypassing the basic aspx bracket filters).

Also some others of note

%00

and anything else that html can't usually render.

for example XML will have issues attempting to render



Most DB's can handle those but if the site takes the input from the DB unchecked it will fail at render time.

Leave a Comment

We encourage you to share your comments on this post. Comments are moderated and will be reviewed
and posted as promptly as possible during regular business hours

To ensure your comment is published, be sure to follow the Community Guidelines.

Be sure to enter a unique name. You can't reuse a name that's already in use.
Be sure to enter a unique email address. You can't reuse an email address that's already in use.
Type the characters you see in the picture above.Type the words you hear.
Search
Showing results for 
Search instead for 
Do you mean 
About the Author
Featured


Follow Us
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.