Skip to content
Back to skills

Privilege Escalation Web

ASecurity

Web 应用层权限提升。当 Web 应用存在用户注册/登录、角色权限管理、API 参数传输用户身份信息时使用。覆盖 Mass Assignment(批量赋值)攻击、角色/权限字段注入、HTTP 方法/Header 绕过、Cookie/Session 篡改。注册后立即检查普通用户能否越权访问管理员功能——这是第一优先级

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added October 17, 2026
securitygoflaskapi

Works with

  • api

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned October 17, 2026

npx -y skills add NetVar1337/agent-skill-canon --skill privilege-escalation-web --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Privilege Escalation Web?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Privilege Escalation Web
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/netvar1337-privilege-escalation-web/badge)](https://www.skillsdirectory.com/skills/netvar1337-privilege-escalation-web)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: privilege-escalation-web
description: "Web 应用层权限提升。当 Web 应用存在用户注册/登录、角色权限管理、API 参数传输用户身份信息时使用。覆盖 Mass Assignment(批量赋值)攻击、角色/权限字段注入、HTTP 方法/Header 绕过、Cookie/Session 篡改。注册后立即检查普通用户能否越权访问管理员功能——这是第一优先级"
metadata:
  tags: "privilege_escalation,mass_assignment,authorization,role-tampering,default_credentials,权限提升,越权,批量赋值,RBAC,admin bypass,角色,权限绕过"
  category: "exploit"
---

# Web 权限提升方法论

Web 权限提升和系统提权不同——不需要 exploit,只需要找到应用逻辑中的权限检查漏洞。

## ⛔ 深入参考(必读)

- Mass Assignment 字段清单、HTTP Header 篡改、Cookie 篡改 → [references/web-privesc-techniques.md](references/web-privesc-techniques.md)

## Phase 1: 认证和账户发现

### 默认凭据(最快路径)
```
admin:admin, admin:password, admin:123456
root:root, root:toor, test:test, guest:guest
```

### 注册功能分析
注册新账户,用代理拦截请求,记录请求格式、发送字段、响应字段(可能暴露隐藏字段名)。
检查 `/docs`, `/swagger`, `/openapi.json`。

## Phase 2: Mass Assignment(核心技术)

在注册或更新请求中**添加应用未预期的字段**(每次只加一个):
```json
{"username":"test", "password":"pass", "role":"admin"}
{"username":"test", "password":"pass", "is_admin":true}
{"username":"test", "password":"pass", "is_staff":1}
```

→ 完整字段清单和框架惯例 → [references/web-privesc-techniques.md](references/web-privesc-techniques.md)

## Phase 3: 管理端点直接访问
```
GET /admin → 403? → 试 /admin/ (trailing slash) 或 /Admin (大小写)
GET /api/admin/users → 200?
```

## Phase 4: HTTP 方法/Header 篡改 + Cookie 篡改

```
GET /admin/flag → 403 → 试 POST/PUT/PATCH
Header: X-Original-URL: /admin/flag / X-Forwarded-For: 127.0.0.1
Cookie: role=user → role=admin / admin=0 → admin=1
```
→ 完整 payload 和 Flask session 伪造 → [references/web-privesc-techniques.md](references/web-privesc-techniques.md)

## Phase 5: 对象级越权
修改 URL/参数中的 ID 访问他人资源

## 注意事项
- Mass Assignment 每次只改一个字段——全改可能触发 WAF
- 注册后检查 `GET /api/users/me` 确认权限是否真的变了
- 结合 IDOR + Mass Assignment 效果更好

Files in this skill

  • SKILL.md2.5 KB
  • evals/evals.json4 KB
  • evals/recall.json1.2 KB
  • references/web-privesc-techniques.md4.3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.