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

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

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

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

工具目录

分类

查看所有分类
Loading categories
CVE-2026-76460 — 教育性 Flask 实验环境,模拟 CVE-2026-76460 身份验证绕过,包含易受攻击、安全及严格模式,并附带 PoC 漏洞利用脚本和渗透测试工具。 | Kitploit
工具/GitHubGitHub/s3v3n-jg/cve-2026-76460
防御工具漏洞分析Web安全渗透测试身份验证学习与教育API 安全实验室与实践
GitHubs3v3n-jg/cve-2026-76460

CVE-2026-76460

教育性 Flask 实验环境,模拟 CVE-2026-76460 身份验证绕过,包含易受攻击、安全及严格模式,并附带 PoC 漏洞利用脚本和渗透测试工具。

查看仓库
14小时39分前尚未审核

最受欢迎

查看全部 →

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

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

CVE-2026-76460

CI License: MIT

本项目演示了一个受 CVE-2026-76460 启发的模拟身份验证绕过场景。该实验环境有意设计为教育性和安全性:它是一个本地 Flask API,模拟存在漏洞和已修补的行为,而不针对真实系统。

目标

该应用程序展示了特权管理 API 如何在缺乏身份验证控制的情况下被暴露,以及安全实现如何阻止未经身份验证的访问。

项目架构

root@kitploit:~
flowchart LR
	Client[Local client or test harness] --> Entry[app.py]
	Entry --> Factory[security_lab.factory]
	Factory --> Mode{Lab mode}
	Mode -->|vulnerable| Open[Management users endpoint\nallows anonymous access]
	Mode -->|secure| Bearer[Bearer token validation]
	Mode -->|secure-strict| Admin[Bearer token + admin role]
	Bearer --> Result[200 or 401 response]
	Admin --> Result2[200, 401, or 403 response]
	Open --> Result3[200 response with warning]
	Factory --> Audit[Audit logger]
	Audit --> Log[audit.log]
root@kitploit:~
.
├── app.py                    # entry point for the local lab
├── build.sh                  # creates the venv, installs dependencies, and runs checks
├── run.sh                    # starts the vulnerable app locally
├── pyproject.toml            # project metadata and tool configuration
├── gunicorn.conf.py          # deployment configuration for a production-style server
├── src/
│   └── security_lab/
│       ├── __init__.py
│       ├── config.py         # lab settings and valid tokens
│       ├── audit.py          # file-based audit logger
│       └── factory.py        # Flask routes and auth logic
├── tests/
│   └── test_api.py           # regression tests for vulnerable and secure modes
├── exploit.py                # proof-of-concept route attack script
├── pentest_harness.py        # CLI verification helper
├── BUILD_GUIDE.md            # build and OS details
├── WALKTHROUGH.md            # step-by-step lab walkthrough
├── SECURITY_REPORT.md        # summary of the mock vulnerability and fix
├── CONTRIBUTING.md           # contribution workflow
├── LICENSE                   # MIT license
├── requirements.txt          # pinned dependencies
├── .env.example              # sample environment configuration
└── .github/workflows/
		└── python-tests.yml     # CI validation for push and pull requests

本地设置

root@kitploit:~
chmod +x build.sh run.sh
./build.sh

运行存在漏洞的应用

root@kitploit:~
./run.sh

然后使用以下命令进行测试:

root@kitploit:~
curl -i http://127.0.0.1:5000/api/management/users

示例输出

root@kitploit:~
$ curl -i http://127.0.0.1:5000/api/management/users
HTTP/1.1 200 OK
Content-Type: application/json

{
	"users": [
		{"id": 1, "username": "admin", "role": "super-admin"},
		{"id": 2, "username": "operator", "role": "operator"}
	],
	"warning": "unauthenticated access allowed"
}

漏洞利用概念验证

root@kitploit:~
source .venv/bin/activate
python exploit.py --host 127.0.0.1 --port 5000

CLI 渗透测试工具

root@kitploit:~
source .venv/bin/activate
python pentest_harness.py --mode vulnerable
python pentest_harness.py --mode secure
python pentest_harness.py --mode secure-strict

预期行为

  • 漏洞模式:未经身份验证的请求可以访问 /api/management/users。
  • 安全模式:同一端点需要有效的 bearer token,并拒绝匿名访问。
  • 严格安全模式:只有有效的管理员 token 才能访问特权端点;操作员 token 会被拒绝并返回 403。

验证与代码检查

root@kitploit:~
make lint
make test

发布与检查

每次针对 main 的推送和拉取请求都会在支持的 Python 版本上运行 Ruff 和 pytest 测试套件。在这些检查通过后,通过推送版本标签来创建发布:

root@kitploit:~
git tag v0.1.0
git push origin v0.1.0

标签工作流会创建一个包含自动生成发布说明的 GitHub Release。发布内容仅用于教育性实验环境的源代码和文档;请勿打包针对真实系统的漏洞利用材料。

重要提示

这是一个受控的实验环境,仅用于测试、学习和防御性研究。未经授权,不得将其用于真实系统。

下载工具