Descrizione
JHipster before v.8.9.0 allows privilege escalation via a modified authorities parameter. Upon registering in the JHipster portal and logging in as a standard user, the authorities parameter in the response from the api/account endpoint contains the value ROLE_USER. By manipulating the authorities parameter and changing its value to ROLE_ADMIN, the privilege is successfully escalated to an Admin level. This allowed the access to all admin-related functionalities in the application. NOTE: this is disputed by the Supplier because there is no privilege escalation in the context of the JHipster backend (the report only demonstrates that, after using JHipster to generate an application, one can make a non-functional admin screen visible in the front end of that application).
Tipo di vulnerabilità
CWE-451
Rappresentazione ingannevole di informazioni critiche nell’interfaccia
L’interfaccia utente non rappresenta correttamente informazioni critiche, che possono essere nascoste o falsificate insieme alla loro fonte. È spesso un elemento degli attacchi di phishing.
Impatto sui sistemi
| Ambito | Impatto |
| Non ripudio, Controllo degli accessi |
Nascondere le proprie attività, Aggirare i meccanismi di protezione, Dipende dal contesto |
Come si previene
Sviluppo · Validazione dell’input
Perform data validation (e.g. syntax, length, etc.) before interpreting the data.
Architettura e progettazione · Codifica dell’output
Create a strategy for presenting information, and plan for how to display unusual characters.
Tutte le 489 CVE di tipo CWE-451, con andamento e prevenzione