Closed mccutchen closed 6 months ago
Before this change, it was possible to bypass go-httpbin's allowed redirect domain configuration by passing an absolute URL without a scheme (e.g. //evil.com) to the /redirect-to endpoint.
//evil.com
/redirect-to
Fixes #173.
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 95.04%. Comparing base (8f905de) to head (5f35430).
8f905de
5f35430
Before this change, it was possible to bypass go-httpbin's allowed redirect domain configuration by passing an absolute URL without a scheme (e.g.
//evil.com
) to the/redirect-to
endpoint.Fixes #173.