strobelpierre/CVE-2026-9082
GitHub: strobelpierre/CVE-2026-9082
针对 Drupal 核心 CVE-2026-9082 PostgreSQL SQL 注入漏洞的半被动扫描器,在不发送攻击 payload 的前提下检测目标站点的漏洞暴露情况。
Stars: 0 | Forks: 0
[](https://github.com/strobelpierre/CVE-2026-9082/actions/workflows/ci.yml)
# Drupal CVE-2026-9082 扫描器
半被动扫描器,用于检测可能存在 CVE-2026-9082(PostgreSQL SQL 注入)漏洞的 Drupal 安装。
**不发送任何 SQL payload。不发送任何更改状态的请求。**
## 受影响版本
| 分支 | 受影响版本 | 已修复版本 |
|-------|------------------|------------|
| 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
# 或 clone
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 输出(pipe 友好)
./scanner.sh --csv https://target.tld
# 带自定义 timeout 的 verbose 模式
./scanner.sh --verbose --timeout 60 https://target.tld
# 组合:JSON + stderr 上的 verbose debug
./scanner.sh --json -v https://target.tld 2>debug.log | jq .
```
### 选项
| 参数 | 描述 |
|--------------------|-------------------------------------|
| `--json` | 以 JSON 格式输出结果 |
| `--csv` | 以 CSV 格式输出结果(包含表头和数据行) |
| `--verbose`, `-v` | 输出 debug 信息到 stderr |
| `--timeout N` | HTTP 超时时间,单位为秒(默认为 30) |
| `--version` | 显示扫描器版本 |
| `-h`, `--help` | 显示帮助信息 |
### JSON 输出示例
```
{
"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"
}
}
```
### CSV 批量扫描
```
while read -r url; do
./scanner.sh --csv "$url" | tail -1
done < targets.txt >> results.csv
```
## Docker
```
# Build
docker build -t cve-2026-9082-scanner .
# Run
docker run --rm cve-2026-9082-scanner https://target.tld
docker run --rm cve-2026-9082-scanner --json https://target.tld
```
## Nuclei 模板
将内置模板与 [Nuclei](https://github.com/projectdiscovery/nuclei) 配合使用:
```
nuclei -t nuclei/CVE-2026-9082.yaml -u https://target.tld
nuclei -t nuclei/CVE-2026-9082.yaml -l targets.txt
```
## 检测方法
1. **Drupal 指纹识别** — HTML body 关键字、HTTP 标头
2. **版本检测** — CHANGELOG.txt、X-Generator 标头、asset `?v=` 参数
3. **PostgreSQL 指标** — 错误字符串、响应中的驱动程序名称
4. **Endpoint 探测** — /jsonapi、/user/login、/node、/admin(并行)
5. **WAF 检测** — Cloudflare、Akamai、Sucuri、Imperva、Fastly
## 法律声明
请参阅 [DISCLAIMER.md](DISCLAIMER.md)。仅在获得明确授权的情况下使用。
有关报告此工具中的漏洞,请参阅 [SECURITY.md](SECURITY.md)。
标签:CISA项目, Cutter, Drupal, Shell脚本, SQL注入检测, 加密, 无服务器架构, 漏洞扫描器, 请求拦截