0xBlackash/CVE-2026-0257
GitHub: 0xBlackash/CVE-2026-0257
针对 PAN-OS GlobalProtect 认证绕过漏洞(CVE-2026-0257)的 Python 漏洞利用工具,通过提取并利用证书公钥伪造认证 Cookie 实现未授权 VPN 访问。
Stars: 3 | Forks: 1
# 🚨 CVE-2026-0257 - Authentication Bypass 漏洞
**PAN-OS: GlobalProtect Authentication Bypass 漏洞**



**GlobalProtect Portal & Gateway 中的 Authentication Bypass**
## 📌 概述
**CVE-2026-0257** 是一个 **authentication bypass 漏洞**,影响 Palo Alto Networks PAN-OS 软件的 GlobalProtect portal 和 gateway 组件。
未经身份验证的远程攻击者可以绕过安全限制,并与受影响的防火墙建立 **未经授权的 VPN 连接**。
## ⚠️ 严重性与评分
| 指标 | 分数 | 评级 |
|---------------------|------------------------|-------------|
| **CVSS v4.0** | 7.8 / 4.7 | **高** / 中 |
| **CVSS v3.x** | 最高 9.8 | **严重** |
| **紧急程度** | **最高** | - |
**向量 (CVSS 4.0 示例)**:
`CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:H/SI:H/SA:N`
## 📖 描述
Palo Alto Networks PAN-OS® 软件的 GlobalProtect portal 和 gateway 中的 authentication bypass 漏洞允许攻击者绕过安全限制并建立未经授权的 VPN 连接。
该问题源于 **CWE-565:依赖未经验证和完整性检查的 Cookie**。
## 🛠 受影响的产品
- 修复版本之前的 **PAN-OS** 版本 (10.2, 11.1, 11.2, 12.1)
- **Prisma Access** (特定版本)
- 配置了 **GlobalProtect** portal 或 gateway 的防火墙
**不受影响**:
- Panorama
- Cloud NGFW
## 🔍 易受攻击的配置
此漏洞**需要**满足以下配置才能被利用:
1. 配置了 GlobalProtect portal **或** gateway
2. 启用了 **authentication override cookies**
3. authentication override cookie 的加密/解密证书与另一个功能**重复使用**
## 💥 影响
- 对内部网络的 **未经授权的 VPN 访问**
- 攻击者潜在的横向移动
- 绕过多因素身份验证(在某些设置中)
- 对企业边界的重大风险
对受保护网络的**机密性和完整性产生重大影响**。
## 🔥 利用状态
- **在野被积极利用**(截至 2026 年 5 月 17 日)
- Rapid7 观察到成功的利用
- Palo Alto Networks 确认了有限的利用尝试
- 于 2026 年 5 月 29 日被添加到 **CISA 已知被利用漏洞 (KEV)** 目录中
## ⚙️ 用法:
```
python3 CVE-2026-0257.py --target vpn.company.com
python3 CVE-2026-0257.py --target 192.168.1.100 --user administrator --verbose
```
## ✅ 预期的成功输出:
```
╔══════════════════════════════════════════════════════════════╗
║ CVE-2026-0257 - GlobalProtect Auth Bypass ║
║ Public Key Cookie Forging Exploit ║
║ Author: 0xBlackash ║
╚══════════════════════════════════════════════════════════════╝
[*] Connecting to vpn.company.com:443 to extract certificate chain...
[+] Found 2048-bit RSA key
[*] Forging authentication cookie for user: admin
[1/1] Trying public key...
Cookie (first 60 chars): eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...
[+] SUCCESS! Authentication Bypass Achieved!
Username : admin
Cookie : eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...
```
## ✅ 补丁与修复
**已修复版本**(**紧急**应用):
| PAN-OS 版本 | 已修复版本 |
|----------------|--------------------------------|
| 12.1 | ≥ 12.1.4-h6, ≥ 12.1.7 |
| 11.2 | ≥ 11.2.4-h17, ≥ 11.2.7-h14 等 |
| 11.1 | ≥ 11.1.4-h33, ≥ 11.1.7-h6 等 |
| 10.2 | ≥ 10.2.7-h34, ≥ 10.2.10-h36 等 |
**Prisma Access** 也有相应的已修复版本。
## 🛡️ 缓解措施
**临时变通方法**(如果无法打补丁):
- 如果不需要,请禁用 **authentication override cookies**
- 避免将证书重复用于 GlobalProtect authentication override
- 监控 GlobalProtect 日志以发现可疑的 VPN 连接
- 限制管理访问并启用严格的安全策略
## 🔗 参考
- [Palo Alto Networks 官方公告](https://security.paloaltonetworks.com/CVE-2026-0257)
- [NVD 详情](https://nvd.nist.gov/vuln/detail/CVE-2026-0257)
- [Rapid7 分析](https://www.rapid7.com/blog/post/etr-rapid7-observed-exploitation-of-pan-os-globalprotect-authentication-bypass-vulnerability-cve-2026-0257)
- [CISA KEV 目录](https://www.cisa.gov/known-exploited-vulnerabilities-catalog)
## 📅 时间线
| 日期 | 事件 |
|-------------------|-------|
| **2026-05-13** | CVE 发布 + 初始公告 |
| **2026-05-17** | 在野观察到利用行为 |
| **2026-05-29** | Palo Alto 更新 + 添加到 CISA KEV |
| **2026-05-30** | 本报告 |
**PAN-OS: GlobalProtect Authentication Bypass 漏洞**



**GlobalProtect Portal & Gateway 中的 Authentication Bypass**
**建议**:**立即**打补丁 — 尽管存在基础的 CVSS 分数,但由于被积极利用,应将其视为**严重**威胁。
*以 README 风格生成 — 2026 年 5 月 30 日*
标签:逆向工具