-
Notifications
You must be signed in to change notification settings - Fork 38
Closed
Description
When I hit GET /api/v2/sbom/{id}/advisory I get a response similar to the JSON Below.
The field status.title should be the Vulnerability's title and not the Advisory's title.
Reasoning:
- The field
titleat the parent object already represents the Advisory's title so there is no need to maketitle==status.title - In the UI, due to https://issues.redhat.com/browse/TC-2353, I discovered that just like in the example below there might be multiple advisories. The problem is when I need to render the description of Vulnerability then I have 2 completely different "titles" for the same Vulnerability
- See that in my JSON below.
[0].status.title != [1].status.title
- See that in my JSON below.
[
{
"uuid": "urn:uuid:beb78036-452a-49b9-8ad7-61b5ebbafa94",
"identifier": "https://www.redhat.com/#CVE-2023-4853",
"document_id": "CVE-2023-4853",
"issuer": {
"id": "4729edd1-030b-45ed-94da-71eb9dcaa037",
"name": "Red Hat Product Security",
"cpe_key": null,
"website": null
},
"published": "2023-09-08T00:00:00Z",
"modified": "2023-11-10T12:57:35Z",
"withdrawn": null,
"title": "quarkus: HTTP security policy bypass", // Advisory title
"labels": {
"type": "csaf"
},
"status": [
{
"normative": false,
"identifier": "CVE-2023-4853",
"title": "quarkus: HTTP security policy bypass", // This is also advisory title, but it should be Vulnerability's title
"description": null,
"reserved": null,
"published": "2023-09-20T09:47:32.15Z",
"modified": "2024-11-23T01:02:43.871Z",
"withdrawn": null,
"discovered": "2023-09-08T00:00:00Z",
"released": "2023-09-08T00:00:00Z",
"cwes": [
"CWE-148"
],
"average_severity": "high",
"status": "affected",
"context": {
"cpe": "cpe:/a:redhat:quarkus:2.13:*:el8:*"
},
"packages": []
}
]
},
{
"uuid": "urn:uuid:75507b71-8bc0-47b6-b8c2-38e2660f9677",
"identifier": "GHSA-4f4r-wgv2-jjvg",
"document_id": "GHSA-4f4r-wgv2-jjvg",
"issuer": null,
"published": "2023-09-20T12:30:22Z",
"modified": "2023-10-27T19:00:20Z",
"withdrawn": null,
"title": "Quarkus HTTP vulnerable to incorrect evaluation of permissions", // Advisory title
"labels": {
"file": "github-reviewed/2023/09/GHSA-4f4r-wgv2-jjvg/GHSA-4f4r-wgv2-jjvg.json",
"type": "osv",
"importer": "osv-github",
"source": "https://github.com/github/advisory-database"
},
"status": [
{
"normative": false,
"identifier": "CVE-2023-4853",
"title": "Quarkus HTTP vulnerable to incorrect evaluation of permissions", // This is also advisory title, but it should be Vulnerability's title
"description": "A flaw was found in Quarkus where HTTP security policies are not sanitizing certain character permutations correctly when accepting requests, resulting in incorrect evaluation of permissions. This issue could allow an attacker to bypass the security policy altogether, resulting in unauthorized endpoint access and possibly a denial of service.",
"reserved": null,
"published": "2023-09-20T09:47:32.15Z",
"modified": "2024-11-23T01:02:43.871Z",
"withdrawn": null,
"discovered": null,
"released": null,
"cwes": [],
"average_severity": "high",
"status": "affected",
"context": null,
"packages": []
}
]
}
]Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
Done