CVE-2023-49657
Assigner: apache
Published: 2024-01-23T15:06:59.901Z
State: PUBLISHED
affected: defaultStatus: unaffected
product: Apache Superset
vendor: Apache Software Foundation
versions: lessThan: 3.0.3
status: affected
version: 0
versionType: semver
credits: type: reporter
value: Nick Barnes, Praetorian Security Inc.
type: reporter
value: Amit Laish – GE Vernova
descriptions: supportingMedia: base64: no
type: text/html
value: <span style="background-color: rgb(255, 255, 255);">A stored cross-site scripting (XSS) vulnerability exists in Apache Superset before 3.0.3.&nbsp;</span>An authenticated attacker with create/update permissions on charts or dashboards could store a script or add a specific HTML snippet that would act as a stored XSS.<br><br>For 2.X versions, users should change their config to include:<br><br>TALISMAN_CONFIG = {<br>&nbsp; &nbsp; "content_security_policy": {<br>&nbsp; &nbsp; &nbsp; &nbsp; "base-uri": ["'self'"],<br>&nbsp; &nbsp; &nbsp; &nbsp; "default-src": ["'self'"],<br>&nbsp; &nbsp; &nbsp; &nbsp; "img-src": ["'self'", "blob:", "data:"],<br>&nbsp; &nbsp; &nbsp; &nbsp; "worker-src": ["'self'", "blob:"],<br>&nbsp; &nbsp; &nbsp; &nbsp; "connect-src": [<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "'self'",<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "<a target="_blank" rel="nofollow" href="https://api.mapbox.com&quot;">https://api.mapbox.com"</a>;,<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "<a target="_blank" rel="nofollow" href="https://events.mapbox.com&quot;">https://events.mapbox.com"</a>;,<br>&nbsp; &nbsp; &nbsp; &nbsp; ],<br>&nbsp; &nbsp; &nbsp; &nbsp; "object-src": "'none'",<br>&nbsp; &nbsp; &nbsp; &nbsp; "style-src": [<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "'self'",<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "'unsafe-inline'",<br>&nbsp; &nbsp; &nbsp; &nbsp; ],<br>&nbsp; &nbsp; &nbsp; &nbsp; "script-src": ["'self'", "'strict-dynamic'"],<br>&nbsp; &nbsp; },<br>&nbsp; &nbsp; "content_security_policy_nonce_in": ["script-src"],<br>&nbsp; &nbsp; "force_https": False,<br>&nbsp; &nbsp; "session_cookie_secure": False,<br>}<br><br>
value: A stored cross-site scripting (XSS) vulnerability exists in Apache Superset before 3.0.3. An authenticated attacker with create/update permissions on charts or dashboards could store a script or add a specific HTML snippet that would act as a stored XSS.

For 2.X versions, users should change their config to include:

TALISMAN_CONFIG = {
    "content_security_policy": {
        "base-uri": ["'self'"],
        "default-src": ["'self'"],
        "img-src": ["'self'", "blob:", "data:"],
        "worker-src": ["'self'", "blob:"],
        "connect-src": [
            "'self'",
            " https://api.mapbox.com" https://api.mapbox.com" ;,
            " https://events.mapbox.com" https://events.mapbox.com" ;,
        ],
        "object-src": "'none'",
        "style-src": [
            "'self'",
            "'unsafe-inline'",
        ],
        "script-src": ["'self'", "'strict-dynamic'"],
    },
    "content_security_policy_nonce_in": ["script-src"],
    "force_https": False,
    "session_cookie_secure": False,
}


metrics: cvssV3_1: attackComplexity: LOW
attackVector: NETWORK
availabilityImpact: NONE
baseScore: 9.6
baseSeverity: CRITICAL
confidentialityImpact: HIGH
integrityImpact: HIGH
privilegesRequired: LOW
scope: CHANGED
userInteraction: NONE
vectorString: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N
version: 3.1
format: CVSS
scenarios: value: GENERAL
problemTypes: descriptions: cweId: CWE-79
description: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
type: CWE
source: discovery: UNKNOWN
title: Apache Superset: Stored XSS in Dashboard Title and Chart Title
x_generator: engine: Vulnogram 0.1.0-dev