github / github/codeql

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

Đang mở
#7,621 17 bình luận 0 reaction 0 người được giao Xem trên GitHub
question
Ngôn ngữ chính
CodeQL
Star
10.1k
Fork
2.1k
Merge trung bình
2 ngày 15 giờ
Pull request đã merge (30 ngày)
141

Mô tả

I've created a simple log4j project: [log4j-test.zip](https://github.com/github/codeql/files/7886955/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](https://user-images.githubusercontent.com/1357701/149889753-52e8750f-8815-454d-9011-ca22f9b7410e.jpg)

What was wrong?

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.