一款针对 CVE-2026-110264 的防御性安全扫描器——GitLab CE/EE 任意文件写入(PHP2Shell)。
本工具不包含任何漏洞利用代码。它 100% 安全且具有教育意义。
GitLab CE/EE < 18.3.5 在 OAuth 重定向处理中存在文件写入漏洞(GLSA-2026-01)。攻击者可利用该漏洞写入 PHP 文件并获取 shell 访问权限(PHP2Shell)。此漏洞被用作 PHP2Shell 研究的案例。
git clone https://github.com/YOUR-USERNAME/GitLab2Safe-Defensive-Checker
cd GitLab2Safe-Defensive-Checker
pip install requests
### Usage
python3 checker.py --url https://gitlab.example.com
Output:
[+] Target: https://gitlab.example.com
[+] Version Found: 18.3.2
[!] VULNERABLE - Please upgrade to 18.3.5 or later
### Disclaimer
This tool is for *educational and defensive purposes only*. No exploit code included. Use only on systems you own.
### Author
Made by Fari - Learning Defensive Security
### References
- GitLab Security Release: 18.3.5
- GLSA-2026-01