question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Vulnerabilities with Severity UNASSIGNED not Displayed Properly in UI

See original GitHub issue

Current Behavior:

When a vulnerability has Severity “Unassigned” (something I’ve seen, so far, only with OSS Index vulnerabilities) then The “projects” tab does not display the presence of the vulnerability:

unscored-severity-projects-view

When drilling down into the project, the vulnerable component does not display correctly on the "Dependencies"tab (ie, vulnerabilities displays blue bar with a “0” count) and also displays incorrectly on “Overview”…

project-with-unscored-vuln

As can be seen in the above screenshot, the vulnerable component does display in “Audit” tab.

There seems to be no problem with the email alerting… a “New Vulnerability Identified” email is generated and looks to be all in order.

Steps to Reproduce:

  • Ensure that OSS Index Analyser is enabled in DT
  • Create a new project
  • Upload a BOM that contains the following component
        <component type="library">
            <name>shelljs</name>
            <version>0.5.3</version>
            <description>
                <![CDATA[Portable Unix shell commands for Node.js]]>
            </description>
            <hashes>
                <hash alg="SHA-1">c54982b996c76ef0c1e6b59fbdc5825f5b713113</hash>
            </hashes>
            <licenses>
                <license>
                    <name>BSD*</name>
                </license>
            </licenses>
            <purl>pkg:npm/shelljs@0.5.3</purl>
            <modified>false</modified>
        </component>

Expected Behavior:

Dependency-Track should be able to handle vulnerabilities that have unassigned severity scores

Environment:

  • Dependency-Track Version: 3.4.1
  • Distribution: [Executable WAR]
  • BOM Format & Version: cyclonedx-node-module (CycloneDX Spec v1.0)
  • Database Server: [PostgreSQL]

Additional Details:

As the vulnerability details for OSS Index vulnerabilities are dynamic, I would expect to see 560f37f7-6c1d-4b9c-aad3-34dcfcf218d7 get updated at some point. Hence, using the OSS Index REST API:

curl -X GET "https://ossindex.sonatype.org/api/v3/component-report/pkg%3Anpm%2Fshelljs%400.5.3" -H "accept: application/vnd.ossindex.component-report.v1+json" -H "authorization: Basic xxxxxx"

…the reponse is curently:

{
  "coordinates": "pkg:npm/shelljs@0.5.3",
  "description": "Portable Unix shell commands for Node.js",
  "reference": "https://ossindex.sonatype.org/component/pkg:npm/shelljs@0.5.3",
  "vulnerabilities": [
    {
      "id": "560f37f7-6c1d-4b9c-aad3-34dcfcf218d7",
      "title": "Possible Command Injection",
      "description": "There are `relevant security flaws surrounding command injection and unexpected globbing` due to the use of the exec function.",
      "cvssScore": 0,
      "reference": "https://ossindex.sonatype.org/vuln/560f37f7-6c1d-4b9c-aad3-34dcfcf218d7"
    }
  ]
}

Note that cvssScore = 0.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
stevespringettcommented, May 23, 2019

Corrected milestone

1reaction
stevespringettcommented, May 15, 2019

Confirmed this to be a defect - an oversight actually. Unassigned metrics are not being tracked. These will be added to 3.5. Historical metrics will not have unassigned stats, but from the time v3.5 is upgraded, all metrics at that point will start to have unassigned stats.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Known Exploited Vulnerabilities Catalog | CISA
The vulnerability is due to a lack of proper input validation of URLs in HTTP requests processed by an affected device. An attacker...
Read more >
Vulnerability Report - GitLab Docs
The Vulnerability Report provides information about vulnerabilities from scans of the default branch. It contains cumulative results of all successful jobs, ...
Read more >
Bulk edit Vulnerability Response vulnerable items
Navigate to All > Vulnerability > Vulnerabilities > Vulnerable Items. Select the vulnerable items to edit by checking the box next to each...
Read more >
CVE-2022-31123 Detail - NVD
An attacker can convince a server admin to download and successfully run a malicious plugin even though unsigned plugins are not allowed.
Read more >
Change Log - Dependency-Track
This release fixes a defect in the caching of vulnerability analysis ... Resolved UI defect that caused vulnerability details not being displayed when...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found