Details
-
Bug
-
Resolution: Solved By
-
Major
-
14.6
-
latest
Description
Hello XWiki team,
I discovered an open redirect vulnerability in the XWiki platform in the xredirect parameter.
PoC:
If a victim goes to the following url: https://xwiki/bin/login/XWiki/XWikiLogin?xredirect=//veryevilwebsite.evil they will be redirected to https://veryevilwebsite.evil
This is because the exact value of the xredirect param ("//veryevilwebsite.evil") is sent to the Location header.
Recommended Fix:
Consider removing every forward and backward slash except for one in the xredirect param as this will inform the browser the path is relative to the site and not an absolute one.
Thanks,
Attachments
Issue Links
- depends on
-
XWIKI-20549 Provide a new script service API to check trustfulness of an URI
- Closed
- duplicates
-
XWIKI-19994 Redirect parameter xredirect in login/logout can link to external site
- Closed