agentleFS
cdxiaodongcdxiaodong/cain-agent/skills/web/info-disclosure/SKILL.md

info-disclosure

Skill953 starsChanged 2 months agoApache-2.0View on GitHub

敏感信息泄露发生在 Web 应用在响应、错误页面、注释、配置文件中暴露了不应公开的信息,攻击者可利用这些信息进行进一步攻击。 常见泄露点: - 错误堆栈(stack trace 暴露路径/框架版本/SQL 语句) - 备份文件(.bak .swp .old ~) - 版本控制目录(.git/ .svn/) - 配置文件(.env config.php web.config) - 注释中的硬编码凭证 / 内网 IP / 测试账号 - HTTP 响应头(Server X-Powered-By 暴露版本) 判断依据: - 响应含 root: / DB_PASSWORD / BEGIN RSA → 严重泄露 - .git/config 返回 200 且含 [core] → 源码可下载 - 错误页含绝对路径 /var/www/... → 信息泄露

  • Reads credentials

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    1. mahumadad/quarry★ 1same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository13 other files it gives its agents.

The file

Files
SKILL.md

敏感信息泄露漏洞检测技能

原理

敏感信息泄露发生在 Web 应用在响应、错误页面、注释、配置文件中暴露了不应公开的信息,攻击者可利用这些信息进行进一步攻击。

常见泄露点:

  • 错误堆栈(stack trace 暴露路径/框架版本/SQL 语句)
  • 备份文件(.bak .swp .old ~)
  • 版本控制目录(.git/ .svn/)
  • 配置文件(.env config.php web.config)
  • 注释中的硬编码凭证 / 内网 IP / 测试账号
  • HTTP 响应头(Server X-Powered-By 暴露版本)

检测方法

1. 错误页面触发

# 触发 500 错误,观察是否泄露堆栈
curl "http://target/api/user?id=abc'"        # 非预期输入
curl "http://target/api/user?id[]=1"          # 类型混淆

2. 备份/敏感文件探测

curl "http://target/.git/config"              # Git 泄露
curl "http://target/.env"                     # 环境变量
curl "http://target/config.php.bak"           # 备份文件
curl "http://target/index.php~"               # 编辑器临时文件

3. 响应头分析

curl -I "http://target/" | grep -iE "server|x-powered-by|x-aspnet"

判断依据:

  • 响应含 root: / DB_PASSWORD / BEGIN RSA → 严重泄露
  • .git/config 返回 200 且含 [core] → 源码可下载
  • 错误页含绝对路径 /var/www/... → 信息泄露

工具

工具用途
curl手工探测敏感路径
dirsearch / ffuf批量目录扫描
git-dumper.git 泄露利用(仅授权)

输出格式

{
  "finding_id": "info-disclosure-001",
  "issue_type": "info-disclosure",
  "severity": "medium",
  "endpoint": "/.env",
  "evidence": "返回 200,含 DB_PASSWORD=***",
  "remediation": "禁止 Web 访问敏感文件,关闭详细错误,移除响应头版本信息"
}

注意事项

  • 只读原则:仅探测是否可访问,不下载/利用泄露内容
  • 零触网:测试用 mock 或本地环境

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.