Skip to content

OGN/Expression Language Injection

Check if it is Java application

Java applications are easily recognizable as they tend to: - Use common extensions like .jsp or .jsf - Throw stack traces on errors - Use known terms in headers like "Servlet”

Test Payloads



In order to make use of different java classes other than string, we will use Reflection. Reflection is java’s mechanism that allows us to invoke methods without initially knowing their names.

// Get Class Name aka string

// Subvert Object type

// Enumerate Object Methods

// Check Runtime method exists

// Invoke Runtime method to get RCE

// Enumerate server variables such as

// Sample authorization bypass

// Use intruder to look for common variables such as