Skip to content
RCE Advisory Advanced

GHSL-2020-028: Server-Side Template Injection in Netflix Titus

Netflix Titus used Java Bean Validation custom constraint validators that interpolated untrusted bean properties into error message templates, allowing an attacker to inject Java EL expressions. This could lead to pre-authentication remote code execution with the service account's privileges.

Alvaro Muñoz Follow

Originally disclosed on GitHub Security Lab

A Server-Side Template Injection was identified in Netflix Titus enabling attackers to inject arbitrary Java EL expressions, leading to a pre-auth Remote Code Execution (RCE) vulnerability.

pwntester, on GitHub Security Lab

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 report has not been written yet. The Original tab links to the source.

How it worked

Root cause

The application passed untrusted bean properties into a constraint violation message template that supports Java EL interpolation, so the properties were evaluated as code.

Impact

This issue may lead to remote code execution with the Titus service account privileges.

What the attacker needed

Ability to submit job constraints; no authentication required

The fix

The report recommends not including validated bean properties in custom error messages, sanitising them, disabling EL interpolation with ParameterMessageInterpolator, or replacing Hibernate-Validator with Apache BVal.

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 report has not been written yet. The Original tab links to the source.

Java Bean Validation is a standard way to check that input is valid. When a check fails, the code can build an error message using a template, and that template can contain Java EL expressions, which are small pieces of code that get evaluated. If user-controlled data ends up in that template, the attacker can make the server run their own Java code.

What is RCE?

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

More by Alvaro Muñoz

View all

132 more disclosed reports, best first.

More from GitHub Security Lab

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.