GHSA-hvcf-6324-cjh7

Suggest an improvement
Source
https://github.com/advisories/GHSA-hvcf-6324-cjh7
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/08/GHSA-hvcf-6324-cjh7/GHSA-hvcf-6324-cjh7.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-hvcf-6324-cjh7
Aliases
Published
2024-08-14T18:08:19Z
Modified
2024-10-08T04:27:04.676816Z
Severity
  • 7.2 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N CVSS Calculator
Summary
Persistent Cross-site Scripting in Ibexa RichText Field Type
Details

Impact

The validator for the RichText fieldtype blocklists javascript: and vbscript: in links to prevent XSS. This can leave other options open, and the check can be circumvented using upper case. Content editing permissions for RichText content is required to exploit this vulnerability, which typically means Editor role or higher. The fix implements an allowlist instead, which allows only approved link protocols. The new check is case insensitive.

Patches

  • See "Patched versions".
  • https://github.com/ibexa/fieldtype-richtext/commit/59e9c1a9da60597f60cf7338bf289dccaa7e27ca (and follow-up https://github.com/ibexa/fieldtype-richtext/commit/0a3b830e8806d5169f697351fdc48ffd95a25c67)

Workarounds

None.

References

  • Same issue in v3.3: https://github.com/ezsystems/ezplatform-richtext/security/advisories/GHSA-rhm7-7469-rcpw
  • Ibexa advisory: https://developers.ibexa.co/security-advisories/ibexa-sa-2024-005-persistent-xss-in-richtext

Credit

This vulnerability was discovered and reported to Ibexa by Alec Romano: https://github.com/4rdr We thank them for reporting it responsibly to us.

How to report security issues: https://doc.ibexa.co/en/latest/infrastructureandmaintenance/security/reporting_issues/

Database specific
{
    "nvd_published_at": "2024-08-16T02:15:16Z",
    "cwe_ids": [
        "CWE-79"
    ],
    "severity": "HIGH",
    "github_reviewed": true,
    "github_reviewed_at": "2024-08-14T18:08:19Z"
}
References

Affected packages

Packagist / ibexa/fieldtype-richtext

Package

Name
ibexa/fieldtype-richtext
Purl
pkg:composer/ibexa/fieldtype-richtext

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.6.0
Fixed
4.6.10

Affected versions

v4.*

v4.6.0
v4.6.1
v4.6.2
v4.6.3
v4.6.4
v4.6.5
v4.6.6
v4.6.7
v4.6.8
v4.6.9