GHSA-75j2-9gmc-m855: Camaleon cms Cross-Site Scripting Vulnerability
MODERATEGHSA-75j2-9gmc-m855 is a MODERATE (CVSS 5.4) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Camaleon cms libraries in the RubyGems ecosystem. The issue involves camaleon cms vulnerable to stored xss through user file upload (ghsl-2024-184). Remediation is available by upgrading affected packages to version 2.8.2.
GHSA-75j2-9gmc-m855 at a Glance
Security Impact
CVSS: 5.4
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N).
How to Fix GHSA-75j2-9gmc-m855
To remediate this vulnerability, upgrade all affected Camaleon cms dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade camaleon_cms to 2.8.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for camaleon_cms
How to Check if You Are Affected
To determine whether your application is affected by GHSA-75j2-9gmc-m855, inspect your project dependencies for Camaleon cms:
inspect dependencies for camaleon_cms
Analyze the terminal output to locate any version of Camaleon cms in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.8.2), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Camaleon cms, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-75j2-9gmc-m855 Affected Camaleon cms Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
camaleon_cms
|
RubyGems |
≥ 2.8.0
< 2.8.2
|
2.8.2
|
References
Frequently Asked Questions
What is GHSA-75j2-9gmc-m855?
Which Camaleon cms versions are affected?
What version fixes GHSA-75j2-9gmc-m855?
Is camaleon_cms affected?
What is the CVSS score of GHSA-75j2-9gmc-m855?
What CWE is associated with GHSA-75j2-9gmc-m855?
How can I check RubyGems dependencies for GHSA-75j2-9gmc-m855?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-75j2-9gmc-m855",
"modified" : "2024-09-25T21:53:27Z",
"published" : "2024-09-25T21:53:27Z",
"aliases" : [ ],
"summary" : "Camaleon CMS vulnerable to stored XSS through user file upload (GHSL-2024-184)",
"details" : "A stored cross-site scripting has been found in the image upload functionality that can be used by normal registered users:\nIt is possible to upload a SVG image containing JavaScript and it's also possible to upload a HTML document when the format\nparameter is manually changed to [documents][1] or a string of an [unsupported format][2]. If an authenticated user or administrator visits that uploaded image or document malicious JavaScript can be executed on their behalf (e.g. changing or deleting content inside of the CMS.)\n\n[1]: https://github.com/owen2345/camaleon-cms/blob/feccb96e542319ed608acd3a16fa5d92f13ede67/app/uploaders/camaleon_cms_uploader.rb#L105-L106\n[2]: https://github.com/owen2345/camaleon-cms/blob/feccb96e542319ed608acd3a16fa5d92f13ede67/app/uploaders/camaleon_cms_uploader.rb#L110-L111\n\n## Impact\n\nThis issue may lead to account takeover due to reflected Cross-site scripting (XSS).\n\n## Remediation\n\nOnly allow the upload of safe files such as PNG, TXT and others or serve all \"unsafe\" files such as SVG and other files with a content-disposition: attachment header, which should prevent browsers from displaying them.\n\nAdditionally, a [Content security policy (CSP)][3] can be created that disallows inlined script. (Other parts of the application might need modification to continue functioning.)\n\n[3]: https://web.dev/articles/csp\n\nTo prevent the theft of the auth_token it could be marked with HttpOnly. This would however not prevent that actions could be performed as the authenticated user/administrator. Furthermore, it could make sense to use the authentication provided by Ruby on Rails, so that stolen tokens cannot be used anymore after some time.\n",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "RubyGems",
"name" : "camaleon_cms"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.8.0"
}, {
"fixed" : "2.8.2"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/owen2345/camaleon-cms/security/advisories/GHSA-r9cr-qmfw-pmrc"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/owen2345/camaleon-cms"
}, {
"type" : "WEB",
"url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/camaleon_cms/GHSA-8fx8-3rg2-79xw.yml"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-09-25T21:53:27Z",
"nvd_published_at" : null
}
}