CVE-2021-21313: GLPI - Reflected XSS
- Cve: CVE-2021-21313
- Name: GLPI - Reflected XSS
- Description: GLPI is open source software which stands for Gestionnaire Libre de Parc Informatique and it is a Free Asset and IT Management Software package. In GLPI before verison 9.5.4, there is a vulnerability in the /ajax/common.tabs.php endpoint, indeed, at least two parameters _target and id are not properly sanitized. Here are two payloads (due to two different exploitations depending on which parameter you act) to exploit the vulnerability:/ajax/common.tabs.php?_target=javascript:alert(document.cookie)&_itemtype=DisplayPreference&_glpi_tab=DisplayPreference$2&id=258&displaytype=Ticket (Payload triggered if you click on the button). /ajax/common.tabs.php?_target=/front/ticket.form.php&_itemtype=Ticket&_glpi_tab=Ticket$1&id=(){};(function%20(){alert(document.cookie);})();function%20a&#.
- Impact: Attackers can execute arbitrary scripts in the context of the affected application, potentially leading to session hijacking or data theft.
- Remediation: Update to version 9.5.4 or later to fix input sanitization issues.
- Vulnerability type: reflected_xss
- Vulnerability impact: client_script_exec
- Requirement type: user_interaction
- Requirements: Attacker needs victim to click on malicious payloads
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 6.1
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- Epss score: 0.00919
- Epss percentile: 0.60986
- Assignee: [email protected]
- Published at: 2021-03-03T20:15:12Z
- Age in days: 2092
- Modified at: 2026-06-17T03:35:16Z
- Patch available: yes
- References total: 2
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-21313
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-74 | Improper Neutralization of Special Elements in Output Used by a Downstream Component |
| CWE-79 | Improper Neutralization of Input During Web Page Generation |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/glpi-project/glpi/releases/tag/9.5.4 | nvd | Release Notes, Third Party Advisory |
| https://github.com/glpi-project/glpi/security/advisories/GHSA-h4hj-mrpg-xfgx | nvd | Third Party Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| glpi-project:glpi | < 9.5.4 | no | nvd | /v1/products/glpi-project/glpi |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| glpi-project/glpi | releases, security_advisory | yes | /v1/repositories/glpi-project/glpi |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Exposed hosts: 12732
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports