
This repository contains a Python script that exploits a buffer overflow vulnerability in the TOTOLINK AC1200 T8 (version v4.1.5cu.861_B20230220) in the setWiFiAclRules function via the desc parameter.
setWiFiAclRulesrequests library if not already installed.pip install requests
Clone the repository:
bash
git clone https://github.com/vidura2/CVE-2024-46451.git cd CVE-2024-46451
Modify the script if necessary.
Run the script using the following command format:
python exploit_totolink.py <target_url> <session_cookie> <payload_size> <random_payload (yes/no)>
python exploit_totolink.py http://127.0.0.1/cgi-bin/cstecgi.cgi "SESSION_ID=2:1721039211:2" 4096 yes
Expected Output
The script will print the status code and response text from the device for each exploit attempt. A successful exploit will indicate the potential for unauthorized access or code execution.
This script is intended for educational purposes only. The author is not responsible for any misuse or damage caused by this exploit. Always ensure you have permission before testing or exploiting vulnerabilities.
Feel free to submit issues or pull requests for improvements or additional features!
This project is licensed under the MIT License - see the LICENSE file for details.