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

OWASP checker does not analyze .Net Framework solution's NuGet dependencies #168

Open
RIVM-Joris-Brandt opened this issue Sep 9, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@RIVM-Joris-Brandt
Copy link

RIVM-Joris-Brandt commented Sep 9, 2024

We currently have a .NET Framework project, version 4.7, hosted on Azure and built using Azure DevOps. Previously builds for this project were done in Jenkins, and included the OWASP dependency checker plugin. After migrating to ADevOps we integrated the OWASP plugin hoping to recreate the same pipeline as before. However the OWASP check on Azure DevOps appears to only analyze the solution's internal dependencies on our Class Libraries, it doesn't seem to check our NuGet packages, contrary to what the Jenkins plugin did. The result is the check always "No issues found", even if there are known vulnerabilities in the project, including ones the Jenkins plugin has picked up.

I've been looking around and, as far as I can tell, the configuration should be good:

- task: dependency-check-build-task@6
  displayName: OWASP Dependency Checker
  inputs:
    projectName: 'NanoSpray'
    scanPath: '**/*.csproj'
    format: 'HTML, JSON, JUNIT'
    uploadReports: true
    failOnCVSS: '8'
    enableVerbose: true
    enableRetired: true
    enableExperimental: true
    nvdApiKey: $(nvdAPI)

Although all other examples I can find online were using .NET Core projects, so perhaps this is part of the issue? We've tried several variations, including changing csproj locations, including packages.config files. Forcibly downgrading packages to force a the checker to pick something up.

We're using version 6.2.3 of Add-On. For the underlying OWASP Dependency Checker we've tried with both versions 10.0.3 and 8.3.1, the latter since it's the version we're running on Jenkins, which is working as intended.

@RIVM-Joris-Brandt RIVM-Joris-Brandt added the bug Something isn't working label Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant