Exploit database

GH-6dcea1e11e2266c61406d2b91e097d28

longofo/apache-dubbo-hessian2-cve-2021-43297

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2021-43297

3 sources

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

Repository files5

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

dubbo-server/src/main/java/org/apache/dubbo/samples/basic/Test.java

Java · 461 bytes
package org.apache.dubbo.samples.basic;

import java.io.IOException;

public class Test {
    private String name;

    public Test(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        try {
            Runtime.getRuntime().exec(this.name);
        } catch (IOException e) {
            e.printStackTrace();
        }
        return "Test{" +
                "name='" + name + '\'' +
                '}';
    }
}