CVE-2024-51490
Critical · 9.0CVSS
9.0
EPSS
0.5%
Published
Nov 11, 2024
CISA due date
—
Cloudanix analysis
A setting meant for a custom logo in a streaming app can be misused to run hidden code that affects anyone who views the menu, risking account takeovers.
- Exploitation
- Remote Authenticated
- Attacker needs
- Low Privilege
- Complexity
- Low
- Impact
- Data Exposure
- Component
- Application
- Class
- XSS
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Improper sanitization of the Custom URL - Logo field in the interface settings allows injection and execution of arbitrary JavaScript in the context of other users' browsers.
Why it matters to the business
Compromised user sessions, unauthorized actions on the media library, or site defacement could disrupt streaming services and expose internal content or credentials.
How an attack unfolds
An authenticated attacker navigates to the interface settings, submits a JavaScript payload in the Custom URL - Logo field, and the unsanitized value is rendered when any user loads the menu, executing the script in the victim's browser session.
How to fix it
Upgrade Ampache to version 7.0.1 or apply commit 312765c0cc5e12a4208b70d2739a021be144230d; no workarounds exist.
How to confirm the fix worked
Confirm the installed version is 7.0.1 or later; attempt to save a test script tag in the Custom URL - Logo field and verify it is escaped or rejected on subsequent page loads.
Typical attack path
- Obtain valid user credentials with access to settings
- Navigate to the interface section of the menu
- Enter malicious JavaScript into the Custom URL - Logo field
- Save the configuration
- Induce or wait for a privileged user to view the affected page
- Perform actions via the victim's authenticated session
How to detect it
Review web server access logs and application logs around settings update endpoints for anomalous input containing script tags or javascript: URIs; inspect database records storing custom logo URLs for executable content.
What your security team should do
- Immediately upgrade all Ampache instances to the fixed commit or 7.0.1
- Audit existing Custom URL - Logo values for unexpected script content
- Restrict settings access to the minimum necessary accounts until patched
The record
Ampache is a web based audio/video streaming application and file manager. This vulnerability exists in the interface section of the Ampache menu, where users can change "Custom URL - Logo". This section is not properly sanitized, allowing for the input of strings that can execute JavaScript. This issue has been addressed in version 7.0.1 and all users are advised to upgrade. There are no known workarounds for this vulnerability.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Ubuntu:16.04:LTS | ampache | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | ampache | 0 | No fix |
Related vulnerabilities
- CVE-2024-51484 Ampache is a web based audio/video streaming application and file manager. Also affects ampache
- CVE-2024-51486 Ampache is a web based audio/video streaming application and file manager. Also affects ampache
- CVE-2024-51485 Ampache is a web based audio/video streaming application and file manager. Also affects ampache
- CVE-2024-51489 Ampache is a web based audio/video streaming application and file manager. Also affects ampache
- CVE-2024-51487 Ampache is a web based audio/video streaming application and file manager. Also affects ampache
- CVE-2024-51488 Ampache is a web based audio/video streaming application and file manager. Also affects ampache
- CVE-2024-47828 ampache is a web based audio/video streaming application and file manager. Also affects ampache
- CVE-2024-47184 Ampache is a web based audio/video streaming application and file manager. Also affects ampache