@@ -67,6 +67,21 @@ public static function externalUrlProvider()
6767 ['http://subdomain.this-site.com.au/some-slug ' , true ],
6868 ['http://subdomain.this-site.com.au/some-slug?foo ' , true ],
6969 ['http://subdomain.this-site.com.au/some-slug#anchor ' , true ],
70+
71+ // Credential injection
72+ ['http://this-site.com@evil.com ' , true ],
73+ ['http://this-site.com@evil.com/ ' , true ],
74+ ['http://this-site.com@evil.com/path ' , true ],
75+ ['http://this-site.com@evil.com/path?query ' , true ],
76+ ['http://this-site.com:password@evil.com ' , true ],
77+ ['http://user:pass@evil.com ' , true ],
78+ ['http://absolute-url-resolved-from-request.com@evil.com ' , true ],
79+ ['http://absolute-url-resolved-from-request.com@evil.com/path ' , true ],
80+ ['http://subdomain.this-site.com@evil.com ' , true ],
81+ ['http://subdomain.this-site.com@evil.com/path ' , true ],
82+ ['http://this-site.com:8000@evil.com ' , true ],
83+ ['http://this-site.com:8000@evil.com/path ' , true ],
84+ ['http://this-site.com:8000@webhook.site/token ' , true ],
7085 ];
7186 }
7287}
0 commit comments