Descrizione
ModSecurity is an open source, cross platform web application firewall (WAF) engine for Apache, IIS and Nginx. From 3.0.0 through 3.0.15, the t:utf8toUnicode transformation in src/actions/transformations/utf8_to_unicode.cc produces wrong output on i386 architecture because snprintf uses sizeof on a char pointer rather than the length of the unicode buffer, allowing rules that use this transformation to be bypassed on i386 architecture. This issue is fixed in version 3.0.16.
Tipo di vulnerabilità
CWE-467
Use of sizeof() on a Pointer Type
The code calls sizeof() on a pointer type, when the programmer intended to determine the size of the data that is being pointed to.
Impatto sui sistemi
| Ambito | Impatto |
| Integrità, Riservatezza |
Modificare la memoria, Leggere la memoria |
Come si previene
Sviluppo
Use expressions such as sizeof(*pointer) instead of sizeof(pointer), unless you intend to run sizeof() on a pointer type to gain some platform independence or if you are allocating a variable on the stack.
Tutte le 3 CVE di tipo CWE-467, con andamento e prevenzione