cstrien/skills_dior/padthai-ctf
Claude Code and agent skill by cstrien/skills_dior
Trust tier 2
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
PadThai CTF at IP 103.70.12.91:19090 - revisit notes here.
Install
npx vskill@latest install cstrien/skills_dior/padthai-ctfSKILL.md
The same SKILL.md was published earlier as cstrien/skills_dior/padthai-ctf.
PadThai CTF (103.70.12.91:19090)
Target Summary
- nginx/1.31.5 + Java Spring Boot
- Endpoints:
/(landing),/dashboard(GET only, requires session) - Session: 176-byte blob = IV + 10 cipher blocks (AES-CBC, PKCS7 with
\x0a×10) - Plaintext format: Java XStream XML for class
com.challenge.padthai.Session
Plaintext Structure
Attack Results
- ✅ Padding Oracle decrypt - CONFIRMED WORKING
- ❌ Session forgery - Server: "could not parse session state"
- ❌ No hidden endpoints via dir brute (common.txt + big.txt)
- ❌ No stego in
/padthai.jpg
Scripts Saved
/tmp/oracle_full.py- full oracle decryption/tmp/forge_v2.py- forge role=root/tmp/forge_user_admin.py- forge username=admin/tmp/forge_timestamp.py- forge fresh issuedAt
KEY BREAKTHROUGH: Oracle Encryption (Vaudenay's attack)
- Can encrypt ARBITRARY plaintext from scratch (not just bit-flip)
- Use
find_intermediate(prev, C_target)to get D(C) for random cipher blocks - Then cascade: C_(i-1) = D(C_i) XOR P_i_target
Successful Forges
role=rootvia bit-flip → "Welcome back, guest (role=root)"role=adminvia oracle encryption → "Welcome back, guest (role=admin)"username=admin, role=adminvia oracle encryption → "Welcome back, admin (role=admin)"
XStream Class Injection (server calls obj.toString() on deserialized object)
- ALLOWED:
<string>,<int>,<java.net.URL>,<java.io.File>,<org.springframework.core.env.StandardEnvironment>,<org.springframework.boot.context.properties.BoundConfigurationProperties> - BLOCKED:
<java.lang.ProcessBuilder>,<java.beans.EventHandler>,<com.sun.rowset.JdbcRowSetImpl>,<java.lang.Runtime> - Session extra fields (flag, secret, isAdmin, token) → all ignored
Flag Status
- NOT FOUND in HTTP responses, headers, or hidden endpoints
- No Spring Boot actuator endpoints (all 404)
- SSH brute force failed
- No stego in padthai.jpg
- Flag may require: RCE (blocked by XStream allowlist), or submission at external platform
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 repositoryCheckingpadthai-ctf/SKILL.md
Popularity
- 7-day trend score
- 5
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/cstrien/skills_dior/padthai-ctf)