ASP.NET Padding Oracle (CVE-2010-3332 / MS10-070) — CBC padding-error differential lets you decrypt and encrypt protected blobs (ScriptResource.axd/WebResource.axd, ViewState, form tickets), leading to file disclosure and forged payloads. Tier 1. Payloads: payloads/deserialization.md. Use on unpatched ASP.NET exposing *.axd with a `d=` ciphertext.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Aspnet Padding Oracle?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/anandjogawade-aspnet-padding-oracle)
---
name: aspnet-padding-oracle
description: "ASP.NET Padding Oracle (CVE-2010-3332 / MS10-070) — CBC padding-error differential lets you decrypt and encrypt protected blobs (ScriptResource.axd/WebResource.axd, ViewState, form tickets), leading to file disclosure and forged payloads. Tier 1. Payloads: payloads/deserialization.md. Use on unpatched ASP.NET exposing *.axd with a `d=` ciphertext."
---
# ASP.NET Padding Oracle (MS10-070 / CVE-2010-3332)
A CBC cipher that reveals valid-vs-invalid padding (distinct status/length/timing) is a padding oracle: you can decrypt any ciphertext and encrypt chosen plaintext without the key — classically against `ScriptResource.axd`/`WebResource.axd` to read files and forge ViewState.
## Trigger phrases
`padding oracle, ms10-070, cve-2010-3332, scriptresource.axd, webresource.axd, padbuster, aspnet decrypt`
## Method
1. **Fingerprint:** ASP.NET with `WebResource.axd?d=<b64>`/`ScriptResource.axd?d=<b64>&t=...`; test framework patch level. The `d=` value is the CBC ciphertext.
2. **Find the oracle:** submit tampered ciphertext and diff responses — valid padding vs invalid padding typically differ (500 vs 404, body length, or timing). A reliable two-state differential = exploitable oracle.
3. **Decrypt / encrypt with padbuster:**
```
# decrypt a captured blob:
padBuster.pl "http://target/WebResource.axd?d=<CT>" <CT> <blocksize=16> -encoding 3
# forge plaintext (e.g. request ScriptResource to read a file):
padBuster.pl "http://target/ScriptResource.axd?d=<CT>" <CT> 16 -encoding 3 -plaintext "<desired>"
```
`-encoding 3` = web-safe base64 (ASP.NET). Block size 8 (DES/3DES) or 16 (AES).
4. **File disclosure (MS10-070 classic):** forge a `ScriptResource.axd` request whose decrypted path points at `web.config`/other app files → leak `machineKey`.
5. **Confirm safely:** decrypt a single known blob and show plaintext; avoid high-volume oracle loops against fragile production (many requests). Honor Tier/RoE.
## Modern / rare techniques
- [NEW] **Padding oracle → ViewState key recovery → RCE:** use disclosed `machineKey` (from the forged file read) to forge a malicious ViewState — chain `viewstate` for full RCE.
- Timing-based oracle when status/length are normalized (padding error adds measurable delay); use a stable baseline and many samples.
- Oracle can also exist in custom apps encrypting tokens/cookies with CBC + verbose error — the same padbuster workflow applies.
## Bypass / evasion
${CLAUDE_PLUGIN_ROOT}/payloads/waf-bypass.md: web-safe base64 handling, throttle/randomize request pacing to dodge rate limits/WAF, use `-noiv`/`-prefix` tuning in padbuster for non-standard blobs.
## Escalation / chaining
Decrypted `machineKey` → `viewstate` RCE → `command-injection`/`cloud-pentest`. File read → secrets/`access-control`. Related ViewState/deser context → `deserialization`.
## Backend & tooling
Preferred Kali path (native / WSL+Kali / Kali-SSH / Kali-MCP / HexStrike): `padbuster` (padBuster.pl), `Blacklist3r` once a key is recovered, `curl`/scripting for the oracle differential, `nuclei` MS10-070 template to pre-screen. If a Burp MCP is present, capture the `.axd` ciphertext and iterate via Repeater/Intruder. Windows-local last resort. See `zazy-orchestrator`.
## Verification (background, before reporting)
Re-confirm independently (second payload/tool/vantage or OAST callback) and reproduce before marking CONFIRMED. Prove decryption of a controlled blob or forged-request file read, not just a status differential. Report true positives only.
## Evidence
The oracle differential (request/response pair for valid vs invalid padding), a decrypted sample / forged file-read result, confirmed version, affected `.axd` endpoint, impact. Remediation: apply MS10-070 / upgrade framework, enable uniform error responses, use authenticated-encryption with MAC, rotate `machineKey`.