Skip to content

Restrict returnpath of adhocdebug.php to local URLs - #26

Open
PM84 wants to merge 1 commit into
grabs:mainfrom
bycs-lp:MBS-11517_restrict_returnpath_to_local_urls
Open

PM84 wants to merge 1 commit into
grabs:mainfrom
bycs-lp:MBS-11517_restrict_returnpath_to_local_urls

Conversation

@PM84

@PM84 PM84 commented Oct 17, 2026

Copy link
Copy Markdown

This issue was identified during a penetration test. adhocdebug.php read returnpath as PARAM_URL and redirected to it, so any absolute URL produced an open redirect from the Moodle origin; this change uses PARAM_LOCALURL and falls back to / for off-site targets.

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