Test for unauthenticated RCE in Java servlets

Remote code execution (RCE)Discovery

Written with a model's help from “When investigating novel 0-days leads to the discovery of novel 0-days” by Mattia (0xbro) Brollo on Sicuranext (WAAP research). Read the writeup before relying on it.

When investigating a target, look for Java servlets that are exposed to the Internet without authentication. Test if these servlets pass user-controlled input to Runtime.exec(String[]), which can lead to remote code execution (RCE). Use an inert probe, such as a sleep command, to verify reachability and test for execution without causing harm. Check the servlet's response code and verify if it returns a 200 status code without authentication. This technique can help identify unauthenticated RCE vulnerabilities, such as the one found in the /reportExporter/Export endpoint.

Follow #api, #authentication or #rce for new tips like this one, on your notifications page and, if you choose, in a daily or weekly email.

Comments

No comments yet.