Read the docs
TI-2024-39044 Aliases GHSA-8fx8-3rg2-79xw

Camaleon CMS vulnerable to stored XSS through user file upload (GHSL-2024-184)

Priority LOW 38CWE-79Published · Updated

Key facts

Attack vector
—
Privileges required
—
User interaction
—
Attack complexity
—
Impact type
Cross-site scripting
Confidentiality · integrity · availability
—
Fix status
Fixed

No CVSS vector from any source. Fix status from GitHub. Impact type from CWE-79.

Summary

A stored cross-site scripting has been found in the image upload functionality that can be used by normal registered users: It is possible to upload a SVG image containing JavaScript and it's also possible to upload a HTML document when the format parameter 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.) [1]: https://github.com/owen2345/camaleon-cms/blob/feccb96e542319ed608acd3a16fa5d92f13ede67/app/uploaders/camaleon_cms_uploader.rb#L105-L106 [2]: https://github.com/owen2345/camaleon-cms/blob/feccb96e542319ed608acd3a16fa5d92f13ede67/app/uploaders/camaleon_cms_uploader.rb#L110-L111 ## Impact This issue may lead to account takeover due to reflected Cross-site scripting (XSS). ## Remediation Only 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. Additionally, a [Content security policy (CSP)][3] can be created that disallows inlined script. (Other parts of the application might need modification to continue functioning.) [3]: https://web.dev/articles/csp To 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.

Why it matters now

Fix Fixed camaleon_cms (RubyGems): 2.8.1

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
—camaleon_cms (RubyGems)before 2.8.12.8.1Patch availableGHSA-8fx8-3rg2-79xw
  • camaleon_cms (RubyGems) Vendor— Affected before 2.8.1 Fixed in 2.8.1 Patch available GHSA-8fx8-3rg2-79xw

Remediation

  • Fix · GHSA-8fx8-3rg2-79xw camaleon_cms (RubyGems) Fixed in 2.8.1 Advisory →

Timeline

  1. 2026-10-03 Threatist record created from GHSA-8fx8-3rg2-79xw

References

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences