Skip to content

Security: Reflected XSS via access_url_id/add_type attribute breakout in access_url edit admin pages - #8792

Merged
AngelFQC merged 2 commits into
chamilo:masterfrom
AngelFQC:security/auto-fix-GHSA-3rmg-cx7r-rcqh
Aug 1, 2026
Merged

Security: Reflected XSS via access_url_id/add_type attribute breakout in access_url edit admin pages#8792
AngelFQC merged 2 commits into
chamilo:masterfrom
AngelFQC:security/auto-fix-GHSA-3rmg-cx7r-rcqh

Conversation

@AngelFQC

@AngelFQC AngelFQC commented Jul 30, 2026

Copy link
Copy Markdown
Member

Hardens the add_type and access_url_id request parameters in the multi-URL admin pages, where they were sanitized only with Security::remove_XSS() (which does not escape for HTML-attribute context) — or, in one page, not sanitized at all — and then reflected into href / hidden-input value attributes and an inline JS string.

  • add_type is now restricted to its two valid values through an allowlist ('unique' or 'multiple'), so no attacker-controlled text can reach the output.
  • access_url_id is cast to (int).

Applied to the reported page and its sibling admin pages that share the same pattern:

  • public/main/admin/access_url_edit_users_to_url.php
  • public/main/admin/access_url_edit_courses_to_url.php
  • public/main/admin/access_url_edit_usergroup_to_url.php
  • public/main/admin/access_url_edit_course_category_to_url.php (access_url_id was already (int))

All of these pages are gated behind api_protect_global_admin_script().

Refs GHSA-3rmg-cx7r-rcqh

@AngelFQC AngelFQC changed the title Security: Reflected XSS via access_url_id/add_type attribute breakout in access_url_edit_users_to_url.php Security: Reflected XSS via access_url_id/add_type attribute breakout in access_url edit admin pages Aug 1, 2026
@AngelFQC
AngelFQC merged commit 2224649 into chamilo:master Aug 1, 2026
1 of 6 checks passed
@AngelFQC
AngelFQC deleted the security/auto-fix-GHSA-3rmg-cx7r-rcqh branch August 1, 2026 00:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant