Coordinated Disclosure Timeline
- 10/19/2020: Report sent to firstname.lastname@example.org (https://registry.npmjs.org/slashify/latest)
- 01/20/2021: Issue reported to affected projects:
- 01/20/2021: Issue gets fixed in ministryofjustice/hmpps-book-secure-move-frontend
- 01/21/2021: MITRE assigns CVE-2021-3189
- 02/02/2021: Issue gets fixed in uktrade/data-hub-frontend
Open redirect in Slashify
The slashify npm package.
Latest commit at the date of reporting.
The package is an Express middleware that normalises routes by stripping any final slash, redirecting, for example,
bookings/latest. However, it does not validate the path it redirects to in any way. In particular, if the path starts with two slashes (or two backslashes, or a slash and a backslash, etc.) it may redirect to a different domain.
Consider the example from the docs. Assume we have run it and started a server on
localhost:3000, then visiting
localhost:3000///github.com/ redirects you to https://github.com.
This issue was discovered and reported by GitHub team member @max-schaefer (Max Schaefer).
You can contact the GHSL team at
email@example.com, please include
GHSL-2020-199 in any communication regarding this issue.