此 TypeScript 脚本通过 SOAP 对 MantisBT 执行检查与利用。
npm install
ts-node CVE-2026-30849.ts check --url <url>
ts-node CVE-2026-30849.ts exploit --url <url>
npx ts-node .\CVE-2026-30849.ts check --url http://mantis.local
npx ts-node .\CVE-2026-30849.ts exploit --url http://mantis.local
脚本输出检测到的版本,并与已打补丁的版本 2.28.1 进行比较:
< 2.28.1 -> VULNERABLE>= 2.28.1 -> NOT VULNERABLE如果无法获取版本(端点不可用、SOAP/curl 错误),脚本将以错误状态退出。