Bug Writeup: RCE via SSTI on Spring Boot Error Page with Akamai WAF Bypass
A Spring Boot application evaluated user input as a SpEL expression, allowing remote code execution. The attacker bypassed an Akamai WAF to achieve this.
Dec 4, 2022 · 10 min read · writeuprcebugcrowdwaf ·
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the Spring Boot application evaluated user-controlled input as a SpEL expression without proper sanitisation.
Impact
An attacker could achieve remote code execution on the application.
What the attacker needed
Spring Boot application with SpEL injection; attacker can send requests; WAF bypass required
How it was found
- Achieve remote code execution.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
The application had a page that showed error messages. It took text from the user and treated it as code to run, which is dangerous. The attacker found a way to sneak past a security filter (a WAF) and make the server run their own commands.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.