La nuova immagine di TIM
Una nuova immagine con uno stile dinamico, colori moderni e persone che occupano quasi interamente la scena. Scopri di più
Presentazione risultati primo semestre 2025
Guarda l'on demand
La Sostenibilità per TIM
Il Report 2024 accoglie i principi della Corporate Sustainability Reporting Directive (CSRD) ed è incluso nella Relazione Finanziaria e di Sostenibilità. Approfondisci
Ultimi Comunicati Stampa
Leggi gli ultimi comunicati stampa e naviga nell'archivio dell'Ufficio Stampa del Gruppo TIM. Leggi i comunicati
Vulnerability Description: Cross-site Scripting (Stored) - CWE-79
Software Version: 7.0.15
NIST: https://nvd.nist.gov/vuln/detail/CVE-2024-10032
CVSS: 5.4
Severity: Medium
Credits: Claudia Bartolini, Marco Ventura, Andrea Carlo Maria Dattola, Debora Esposito, Massimiliano Brolli
In Eclipse GlassFish version 7.0.15 is possible to perform Stored Cross-site scripting attacks. Stored cross-site scripting vulnerabilities arise when user input is stored and later embedded into the application's responses in an unsafe way. An attacker can use the vulnerability to inject malicious JavaScript code into the application, which will execute within the browser of any user who views the relevant application content.
Step-by-step instructions and PoC
A remote user, authenticated to the Administration Console, can store malicious JavaScript code within the “HTTP port(s)” parameter that is in the “Standalone instances” task. Successfully exploitation of this vulnerability can cause the extraction of some information and/or the execution of arbitrary HTTP Request in the context of victim's session.
Affected Endpoints
• URL: https://[IP]:[PORT]/cluster/standalone/standaloneInstanceConfigProperties.jsf
• HTTP POST Parameter: propertyForm%3AsysPropsTable%3ArowGroup1%3A0%3AoverrideValCol%3AoverrideVal
Below there is the evidence with the vulnerability details and the payloads used.
Payload used to exploit the vulnerability:
POST /cluster/standalone/standaloneInstanceConfigProperties.jsf HTTP/1.1 Host: [IP]:[PORT] Cookie: [REDACTED] User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0 Accept: */* Accept-Language: en-US,en;q=0.5 Accept-Encoding: gzip, deflate, br Faces-Request: partial/ajax Content-Type: application/x-www-form-urlencoded;charset=UTF-8 Content-Length: 2318 Origin: https://[IP]:[PORT] Referer: https://[IP]:[PORT]/common/index.jsf Sec-Fetch-Dest: empty Sec-Fetch-Mode: cors Sec-Fetch-Site: same-origin Te: trailers Connection: close
propertyForm%3AsysPropsTable%3ArowGroup1%3A0%3Acol2%3Acol1St=ASADMIN_LISTENER_PORT&propertyForm% |
As a first step, the attacker must be logged in the Administration Console.
Figure 1: Administration Console – login
Then, create a new item in “Standalone Instances”, as shown below.
Figure 2: Create new "Standalone Instances"
At this point, as shown below, an attacker can insert a malicious payload in the “ASADMIN_LISTENER_PORT” parameter in the “System Properties” section.
Figure 3: Malicious Payload
Finally, as soon as the victim visit the General Information of the attacker standalone instance, the malicious payload will be executed in the victim’s browser session.
Figure 4: PoC
Security Impact
An attacker can exploit this vulnerability to extract some information or run arbitrary HTTP Request in the context of victim's session.
Remediation Steps
In most situations where user-controllable data is copied into application responses, cross-site scripting attacks can be prevented using two layers of defences:
- Input should be validated as strictly as possible on arrival, given the kind of content that it is expected to contain. For example, personal names should consist of alphabetical and a small range of typographical characters, and be relatively short; a year of birth should consist of exactly four numerals; email addresses should match a well-defined regular expression. Input which fails the validation should be rejected, not sanitized.
- User input should be HTML-encoded at any point where it is copied into application responses. All HTML metacharacters, including < > " ' and =, should be replaced with the corresponding HTML entities (< > etc).
In cases where the application's functionality allows users to author content using a restricted subset of HTML tags and attributes (for example, blog comments which allow limited formatting and linking), it is necessary to parse the supplied HTML to validate that it does not use any dangerous syntax; this is a non-trivial task.