-
Notifications
You must be signed in to change notification settings - Fork 1.7k
homoglyphs translation to ASCII #348
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Original reporter: marcstern |
rbarnett: Agreed. Two comments -
|
marcstern: Also, extended characters like %u2329 should be supported. Currently, the lowest byte is zeroed which inhibits the parsing of these characters. |
rbarnett: We might be able to extend t:urlDecodeUni to better handle this issue. For example, we could do different Unicode mappings using the data found here - http://www.lookout.net/2010/12/20/list-of-characters-for-testing-unicode-transformations-and-best-fit-mapping-to-dangerous-ascii/ |
Sure think it would be great to do this, but it sounds very tricky. It's certainly more flexible if done within a rule, but maybe it is too expensive and should be covered by ModSec itself. Also I lack the know-how about much of this encoding, homoglyph stuff. So a couple of attacking payload examples would help me and probably some others to look at this from a practical viewpoint. |
I think I can help here. Pre-requisites:
Limitations:
|
hmm yeah these are some good points... the transformation system as it exists is kinda not great is it... just not sure of other options. likewise good points need to be made about updating the unicode mapping file, i'm gonna link this issue in an open CRS bug we have on that matter. |
Maybe the update to the unicode.map could be eased with something like CLDR transforms like Cyrillic->Latin The fact that SecUnicodeMapFile is a global setting is a limitation indeed, but I think something like this can work for some scenarios:
|
I think the point is not to convert automatically (that's what I merely did) but to know
|
MODSEC-194: Il would be useful to have a filter that convert all homoglyphs to their ASCII (or Latin?) equivalent.
This would be useful to stop SQL smuggling.
The text was updated successfully, but these errors were encountered: