Skip to content
RCE Write-up Advanced

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.

Peter M Follow

Published on pmnh.site

Dec 4, 2022 · 10 min read · writeuprcebugcrowdwaf ·

Peter M (@pmnh_), Usman Mansha (@UsmanMansha420), on pmnh.site

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

  1. 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.

More from GitHub

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.