Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When scanning a .Net project, the scan results will be very different depending on whether packages folder are included. #7263

Open
julian-guo-avepoint opened this issue Dec 19, 2024 · 2 comments
Labels

Comments

@julian-guo-avepoint
Copy link

julian-guo-avepoint commented Dec 19, 2024

Describe the bug
When using dependency-check to scan a .net framework project, the results are very different when the packages folder is included and is not included. Many vulnerabilities will be missed when the packages folder is included.

Version of dependency-check used
The problem occurs using version 11.1.1 of the cli.

Log file
The reports and logs of the two scans are here: report-and-log (2).zip

To Reproduce
Steps to reproduce the behavior:
I just scanned the project twice, the first time with the packages folder, the second time just the code project folder. Here are the commands I used.
WeCom Screenshot_20250108172104
WeCom Screenshot_20250108172050

The scanned report is very different, please check:
WeCom Screenshot_20250108171749
WeCom Screenshot_20250108171731

Here is my test code:
Test4DC.zip

Expected behavior
A clear and concise description of what you expected to happen.
Regardless of whether the packages folder is included, I think some vulnerabilities should be reported, such as the vulnerability with System.Text.Json:8.0.1.

Additional context
Thanks

@jeremylong
Copy link
Owner

Unless I'm misreading the issue - this is expected behavior based on how ODC works. If you include the packages folder you should get better results.

@julian-guo-avepoint
Copy link
Author

Hi @jeremylong ,Thanks for your reply.
Please see the screenshot below. I changed the project name to distinguish whether it contains the packages folder.

image
image

When the Packages folder is included, more vulnerabilities will be scanned. But according to my understanding, it should be a containment relationship. But the result of the two scans is completely different. If so, are there some vulnerabilities that will be missed when including the packages folder?

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants