ModSecurity is an open source, cross platform web application firewall (WAF) engine for Apache, IIS and Nginx. It has a robust event-based programming language which provides protection from a range of attacks against web applications and allows for HTTP traffic monitoring, logging and real-time analysis.
MODSEC-156: Apache seems to use RFC-4648 base64, but HTTP (at least Basic Auth) is supposed to use the more relaxed MIME implementation (RFC-2045) which allows ignoring invalid characters.
While the current base64 decoding is fine for parsing fields, it is not adequate for normalizing. Maybe we do need to have another base64 decode routine that will ignore invalid characters?
MODSEC-156: Apache seems to use RFC-4648 base64, but HTTP (at least Basic Auth) is supposed to use the more relaxed MIME implementation (RFC-2045) which allows ignoring invalid characters.
While the current base64 decoding is fine for parsing fields, it is not adequate for normalizing. Maybe we do need to have another base64 decode routine that will ignore invalid characters?
See:
http://blog.mindedsecurity.com/2010/04/fooling-b64encodepayload-on-wafs-and.html http://blog.modsecurity.org/2010/04/impedance-mismatch-and-base64.html