Document Title: =============== cWifi Hotspot Wireless CP - Code Execution Vulnerability Date: ===== 2021-12-15 References: =========== https://www.vulnerability-lab.com/get_content.php?id=2310 VL-ID: ===== 2310 Common Vulnerability Scoring System: ==================================== 8.2 Vulnerability Class: ==================== Code Execution Abstract: ========= The vulnerability laboratory core research team discovered code execution vulnerability in the cWifi Hotspot Wireless Captive Portal. Affected Product(s): ==================== Product: cWifi Hotspot Wireless Captive Portal - (PHP) (Web-Application) Report-Timeline: ================ 2021-12-15: Public Disclosure (Vulnerability Laboratory) Status: ======== Published Exploitation-Technique: ======================= Remote Severity: ========= High Details: ======== A code execution vulnerability has been discovered in the official cWifi Hotspot wireless captive portal web-application. The vulnerability is located in the login status post method request for the spot-cwifi. Remote attackers are able to inject own malicious ip and mac adress credentials in the post method data request. that results in several different typ of vulnerabilities in connection to the phpsessionid. Attackers are able to provoke client-side script code execution via mac or ip parameter in the status post method request. Thus allows the attacker to gain access to the victims wifi connection and session credentials to access. The issue can be process by a full remote attacker after connecting as guest or member to the wifi. The parameter in the post method request are no sanitized correctly and results in a client-side execution. Request Method(s): [+] POST Vulnerable Module(s): [+] /v2/ [+] /logout Vulnerable File(s): [+] status.php Vulnerable Parameter(s): [+] ip [+] mac [+] adress Proof of Concept: ================= The critical code execution vulnerability can be exploited by remote attackers with guest access or by authenticated user accounts. For security demonstration or to reproduce the web vulnerability follow the provided information and steps below to continue. Vulnerable Source: status.php (v2/status.php - http://spot.cwifi.de/status)