csaf-poc/csaf_distribution Cross-site Scripting vulnerability
Date: 2022-12
Affected: go/github.com/csaf-poc/csaf_distribution
Attack vector: xss
Category: vulnerability-disclosure
Severity: Medium
CVE: CVE-2022-43996
CWE: CWE-79
CVSS: 5.4 (CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N)

The csaf_provider package before 0.8.2 allows XSS via a crafted CSAF document uploaded as text/html. The endpoint upload allows valid CSAF advisories (JSON format) to be uploaded with Content-Type text/html and filenames ending in .html. When subsequently accessed via web browser, these advisories are served and interpreted as HTML pages. Such uploaded advisories can contain JavaScript code that will execute within the browser context of users inspecting the advisory.


Mitigations:

Architectural layers (MAESTRO):