GHSL-2020-027: Server-Side Template Injection in Netflix Conductor
Netflix Conductor 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-auth remote code execution with the service account's privileges.
Originally disclosed on GitHub Security Lab
A Server-Side Template Injection was identified in Netflix Conductor enabling attackers to inject arbitrary Java EL expressions, leading to a pre-auth Remote Code Execution (RCE) vulnerability.
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
Custom constraint validators passed untrusted bean properties into buildConstraintViolationWithTemplate, which interpolates Java EL expressions.
Impact
This issue may lead to Remote Code execution.
What the attacker needed
Ability to submit data to a validated endpoint
The fix
The report recommends not including validated bean properties in 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.
The application checked user-supplied data (like a task name) and, when the check failed, built an error message that included that data. The error-message system also evaluated special expressions, so an attacker could put code in the data and have it run on the server. This is called server-side template injection.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.