CVE-2012-4031

Wangkongbao CNS-1000 and 1100 - Path Traversal via Lang or Langid Cookie

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 2 public exploits for CVE-2012-4031. PoCs published by Dillon Beresford, including Metasploit module auxiliary/scanner/http/wangkongbao_traversal.

AI-analyzed exploit summary This exploit leverages a directory traversal vulnerability in WANGKONGBAO CNS-1000 and 1100 UTM appliances via the 'lang' cookie parameter in /src/acloglogin.php. It allows arbitrary file retrieval, including sensitive files like /etc/shadow, due to the Apache server running as root.

Description

Multiple directory traversal vulnerabilities in src/acloglogin.php in Wangkongbao CNS-1000 and 1100 allow remote attackers to read arbitrary files via a .. (dot dot) in the (1) lang or (2) langid cookie to port 85.

Exploits (2)

exploitdb WORKING POC
by Dillon Beresford · rubywebappshardware
https://www.exploit-db.com/exploits/19526

This exploit leverages a directory traversal vulnerability in WANGKONGBAO CNS-1000 and 1100 UTM appliances via the 'lang' cookie parameter in /src/acloglogin.php. It allows arbitrary file retrieval, including sensitive files like /etc/shadow, due to the Apache server running as root.

Classification
Working Poc 95%
Attack Type
Info Leak
Complexity
Trivial
Reliability
Reliable
Target: WANGKONGBAO CNS-1000 and 1100 UTM appliances
No auth needed
Prerequisites: Network access to port 85 on the target device
devstral-2 · analyzed Feb 16, 2026 Full analysis →
metasploit WORKING POC
by Dillon Beresford · rubypoc
https://github.com/rapid7/metasploit-framework/blob/master/modules/auxiliary/scanner/http/wangkongbao_traversal.rb

This Metasploit module exploits a directory traversal vulnerability in WANGKONGBAO CNS-1000 and 1100 UTM appliances, allowing unauthorized file retrieval (e.g., /etc/shadow) due to Apache running as root. The exploit manipulates the Cookie header with traversal sequences to access arbitrary files.

Classification
Working Poc 95%
Attack Type
Info Leak
Complexity
Trivial
Reliability
Reliable
Target: WANGKONGBAO CNS-1000 and 1100 UTM
No auth needed
Prerequisites: Network access to the target device on port 85
devstral-2 · analyzed Feb 16, 2026 Full analysis →

References (5)

Core 5
Core References
Third Party Advisory, VDB Entry vdb-entry x_refsource_xf
https://exchange.xforce.ibmcloud.com/vulnerabilities/76682
Third Party Advisory, VDB Entry vdb-entry x_refsource_osvdb
http://osvdb.org/83636
Exploit exploit x_refsource_exploit-db
http://www.exploit-db.com/exploits/19526
Exploit vdb-entry x_refsource_bid
http://www.securityfocus.com/bid/54267
Vendor Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/49776

Scores

EPSS 0.7208
EPSS Percentile 98.8%

Details

CWE
CWE-22
Status published
Products (2)
wangkongbao/cns-1000
wangkongbao/cns-1100
Published Jul 17, 2012
Tracked Since Feb 18, 2026