## https://sploitus.com/exploit?id=28772621-D70F-54E5-B275-8119C1B337F6
# Webmin-CVE-2022-0824-Enhanced-Exploit
> [!IMPORTANT]
>
> Enhanced version of the Webmin CVE-2022-0824 vulnerability exploitation tool β supports both command execution and reverse shell modes.
[](https://www.python.org/downloads/)
[](LICENSE)
[](https://vulners.com/cve/CVE-2022-0824)
> [!IMPORTANT]
>
> An enhanced version of the Webmin CVE-2022-0824 vulnerability exploitation tool, supporting both direct command execution and reverse shell modes. ## π Features
- β
**Dual-mode support**: Command execution mode + Reverse shell mode
- β
**Multiple payloads**: Perl, Bash, Python payloads
- β
**Smart file management**: Automatically generates unique filenames to avoid conflicts
- β
**Automatic overwrite of uploaded files**: Handles overwriting of existing files
- β
**Multiple upload methods**: HTTP download, direct upload, command execution for creation
- β
**Detailed debugging information**: Complete execution logs
- β
**User-friendly interface**: Colorful output and clear status messages
## π Vulnerability Information
- **CVE Number**: CVE-2022-0824
- **Affected Versions**: Webmin /dev/null
## π¦ How It Works
1. **Login Verification**: Log into the Webmin management interface using provided credentials
2. **Payload Generation**: Generates the corresponding CGI script based on the mode selected
3. **File Upload**: Uploads the payload via the file managerβs HTTP download function
4. **Permission Setting**: Sets the execution permissions for the uploaded files
5. **Command Execution**: Executes commands or establishes a reverse connection by accessing the uploaded CGI script
## π‘οΈ Protection Recommendations
- Update Webmin to the latest version (>= 1.990)
- Limit network access to the Webmin management interface
- Use strong passwords and two-factor authentication
- Regularly audit system logs
- Deploy a Web application firewall (WAF)
## β οΈ Disclaimer
**This tool is used solely for authorized security testing and education purposes.**
- π« Not to be used on unauthorized systems
- π« Not to be used for malicious attacks
- π« Users must bear corresponding legal responsibilities
- β
Only use in environments with explicit authorization
- β
For security research and vulnerability validation
## π Technical Details
### Payload Types
- **Perl CGI**: Main payload, best compatibility
- **Bash CGI**: Secondary payload, suitable for Linux systems
- **Python CGI**: Secondary payload, most feature-rich
### Upload Methods
1. **HTTP Download**: Via the Webmin file managerβs remote download function
2. **Direct Upload**: Via the file upload interface
3. **Command Creation**: Creates files through system commands
### File Naming Strategy
- Based on the MD5 hash of the command content
- Timestamp suffix
- Ensures different filenames for each execution
## π Update Log
### v5.0 (2025-08-05)
- β¨ Added command execution mode
- π Fixed file overwrite issues
- π§ Improved file naming strategy
- π Enhanced error handling
### v4.0 (Based on original version)
- π― Based on faisalfs10xβs original code
- π§ Improved CGI compatibility
- π Added detailed logs
## π€ Contribute
Feel free to submit Issues and Pull Requests! 1. Fork this project
2. Create a feature branch (`git checkout -b feature/AmazingFeature`)
3. Commit changes (`git commit -m 'Add some AmazingFeature'`)
4. Push to the branch (`git push origin feature/AmazingFeature`)
5. Open a Pull Request
## π License
This project uses the MIT license β see [LICENSE](LICENSE) for details
## π Thanks
- Original code author: [@faisalfs10x](https://github.com/faisalfs10x)
- Original project link: [Webmin-CVE-2022-0824-revshell](https://github.com/faisalfs10x/Webmin-CVE-2022-0824-revshell)
- CVE Discoverer: Relevant security researchers
## π Contact Information
If you have questions or suggestions, please contact us as follows:
- π§ Submit a GitHub Issue
- π Report security issues via private message
---
**β If this project helped you, please give it a Star!**
## π Related Links
- [CVE-2022-0824 Details](https://vulners.com/cve/CVE-2022-0824)
- [Webmin Official Website](https://www.webmin.com/)
- [Original Project](https://github.com/faisalfs10x/Webmin-CVE-2022-0824-revshell)
## requirements.txt
```txt
requests>=2.25.1
urllib3>=1.26.0
```
[source-iocs-preserved url=http://192.168.1.100:10000/ ipv4=192.168.1.100,192.168.1.50]