Skip to content

Need help on JNDI injection query, does not work for log4j test project #7621

Open
@CaledoniaProject

Description

@CaledoniaProject

I've created a simple log4j project: log4j-test.zip

It uses log4j 2.11 which is vulnerable to JNDI injection, and I've verified the vulnerability exists. Now I need to verify codeql also works. So I created the java database with:

codeql database create java-database -l=java -c="mvn clean install -file pom.xml" --overwrite

Then I opened the starter project and uses ql/java/ql/src/Security/CWE/CWE-074/JndiInjection.ql to test it, but no results came out.

screenshot 2022-01-18 at 3 23 32 PM

What was wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions