半被动扫描器,用于检测可能受 CVE-2026-9082(PostgreSQL SQL注入)影响的 Drupal 安装。
不发送 SQL 有效载荷。不进行改变状态的请求。
| 分支 | 受影响版本 | 修复版本 |
|---|---|---|
| 10.4.x | 8.9.0 — 10.4.9 | 10.4.10 |
| 10.5.x | 10.5.0 — 10.5.9 | 10.5.10 |
| 10.6.x | 10.6.0 — 10.6.8 | 10.6.9 |
| 11.1.x | 11.0.0 — 11.1.9 | 11.1.10 |
| 11.2.x | 11.2.0 — 11.2.11 | 11.2.12 |
| 11.3.x | 11.3.0 — 11.3.9 | 11.3.10 |
# 直接下载
curl -LO https://github.com/strobelpierre/CVE-2026-9082/releases/latest/download/drupal-cve-2026-9082-scanner.sh
chmod +x drupal-cve-2026-9082-scanner.sh
# 或克隆仓库
git clone https://github.com/strobelpierre/CVE-2026-9082.git
cd CVE-2026-9082
# 基础扫描
./scanner.sh https://target.tld
# JSON 输出
./scanner.sh --json https://target.tld
# CSV 输出(适合管道处理)
./scanner.sh --csv https://target.tld
# 详细模式 + 自定义超时
./scanner.sh --verbose --timeout 60 https://target.tld
# 组合:JSON + 详细调试信息到 stderr
./scanner.sh --json -v https://target.tld 2>debug.log | jq .
{
"scanner": "drupal-cve-2026-9082-scanner",
"scanner_version": "1.0.0",
"scan_date": "2026-05-27T10:30:00Z",
"target": "https://example.com",
"results": {
"drupal_detected": true,
"drupal_version": "11.2.5",
"version_vulnerable": true,
"postgresql_detected": true,
"endpoints_found": 3,
"endpoints": [
{"path": "/jsonapi", "status": 200},
{"path": "/user/login", "status": 200},
{"path": "/node", "status": 403}
],
"waf_detected": false,
"waf_name": "null",
"confidence_score": 90,
"confidence_level": "HIGH"
}
}
while read -r url; do
./scanner.sh --csv "$url" | tail -1
done < targets.txt >> results.csv
# 构建
docker build -t cve-2026-9082-scanner .
# 运行
docker run --rm cve-2026-9082-scanner https://target.tld
docker run --rm cve-2026-9082-scanner --json https://target.tld
配合 Nuclei 使用附带的模板:
nuclei -t nuclei/CVE-2026-9082.yaml -u https://target.tld
nuclei -t nuclei/CVE-2026-9082.yaml -l targets.txt
?v= 参数参见 DISCLAIMER.md。仅在有明确授权时使用。
参见 SECURITY.md 报告此工具中的漏洞。
| 标志 | 描述 |
|---|
--json | 以 JSON 格式输出结果 |
--csv | 以 CSV 格式输出结果(含表头+行) |
--verbose, -v | 调试信息输出到 stderr |
--timeout N | HTTP 超时秒数(默认 30) |
--version | 显示扫描器版本 |
-h, --help | 显示帮助信息 |