wgpsec/aboutsecurity/401-403-bypass
Claude Code and agent skill by wgpsec/aboutsecurity
Trust tier 2
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
401/403 访问拒绝绕过与 Spring MVC .do 鉴权绕过方法论。当遇到管理后台、API 端点返回 401/403 Forbidden、Spring MVC .do 接口鉴权绕过、302 登录跳转(login_tologin.do)、越权注册(registersysuser、goedituser)等场景时使用。覆盖路径操纵、HTTP 方法篡改、Header 注入、协议降级、.do 后缀鉴权绕过、302 跳转绕过、组合攻击
Install
npx vskill@latest install wgpsec/aboutsecurity/401-403-bypassSKILL.md
The same SKILL.md was published earlier as wgpsec/aboutsecurity/401-403-bypass.
401/403 绕过方法论
核心思路:反向代理/WAF 检查一种路径格式,但后端做了不同的路径规范化。
深入参考
- 路径操纵 Payload 完整列表 → references/path-manipulation-payloads.md
- HTTP 方法/Header 绕过 → references/method-header-bypass.md
- 中间件特定绕过与组合攻击 → references/middleware-combo-bypass.md
决策树
快速参考 — 路径操纵要点
| 技巧 | 示例 | |
|---|---|---|
| 尾部斜杠/点 | /admin/ /admin/. | |
| 大小写 | /Admin /ADMIN | |
| URL 编码 | /%61dmin /admi%6e | |
| 双重编码 | /%2561dmin | |
| Unicode 过长编码 | /admi%C0%AE | |
| 点段/路径穿越 | /./admin //admin | |
| NULL 字节 | /admin%00 /admin%00.json | |
| 路径参数 (Tomcat) | /admin;foo /;/admin | |
| 反斜杠 (IIS) | /admin\ |
快速参考 — 方法/Header 要点
| 技巧 | 示例 | |
|---|---|---|
| 方法切换 | POST /admin PUT /admin | |
| Method Override | X-HTTP-Method-Override: PUT | |
| URL 重写 | X-Original-URL: /admin | |
| IP 伪造 | X-Forwarded-For: 127.0.0.1 | |
| 协议降级 | GET /admin HTTP/1.0 |
中间件速查
| 服务器 | 关键技巧 | |
|---|---|---|
| Apache | /admin/(尾部斜杠), /.admin(点前缀) | |
| Nginx | /Admin(大小写), X-Original-URL | |
| IIS/ASP.NET | /admin;.css, /admin\, /admin::$DATA | |
| Tomcat/Java | /admin;foo, /admin..;/, /;/admin | |
| Spring | /admin.anything(旧版后缀匹配) |
完整 payload 列表见 references 文件
Spring MVC .do 鉴权绕过与 302 登录跳转
Java 政务/企业系统常见 *.do(Spring MVC)接口,鉴权实现差异常导致绕过:
registersysuser(注册用户)、goedituser(编辑用户)等接口名在生产环境中常见,若未鉴权即可未授权注册/修改用户(越权注册),测试时先确认接口存在再验证权限。- 判断标准:不携带登录态访问受保护接口,若返回业务数据/成功操作而非 401/403/302,则鉴权失效。
国产/Java 系统鉴权绕过速查
| 场景 | 尝试 | |
|---|---|---|
Spring MVC .do 接口 | 去后缀、加后缀、大小写、方法切换 | |
| 302 登录跳转 | 分析 Location、直接访问业务接口 | |
| 注册/改用户接口 | registersysuser、goedituser 未鉴权调用 | |
| 白名单路径 | /api/health 前缀 + 路径穿越 |
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/exploit/auth/401-403-bypass/SKILL.md
Popularity
- Repository stars
- 1,806
- Repository forks
- 249
- 7-day trend score
- 37
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/wgpsec/aboutsecurity/401-403-bypass)