Descrizione
mall4j through 4.0 contains an improper authorization vulnerability that allows authenticated storefront customers to delete other shoppers' cart items through an operator precedence error in the cleanExpiryProdList SQL statement. Attackers can send one DELETE request to /p/shopCart/cleanExpiryProdList to remove every user's cart entries for off-shelf products, which do not return when products are restocked.
Tipo di vulnerabilità
CWE-783
Operator Precedence Logic Error
The product uses an expression in which operator precedence causes incorrect logic to be used.
Impatto sui sistemi
| Ambito | Impatto |
| Riservatezza, Integrità, Disponibilità |
Dipende dal contesto, Stato imprevisto |
Come si previene
Sviluppo
Regularly wrap sub-expressions in parentheses, especially in security-critical code.
Tutte le 20 CVE di tipo CWE-783, con andamento e prevenzione