Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Auth Core 1.1.0
-
None
Description
The isRedirectValid method is assumed to be present to (a) not redirect outside of the scope of the Sling Web Container (by preventing absolute URLs to validate) and (b) not contain XSS strings (by checking the target with the request's resource resolver).
The second part is flawed, though:
- Completely ignores request context path
- Uses resource resolve to validate path (and assume side-effect support of being XSS
clean if a resource exists) - Doesn't really check for XSS violations if no resource resolver exists
We should not check with the resource resolver but implement some light-weight string checks with sensitive characters like <, >, ', and "