
Heyy there, I was able to bypass the fix for the reflected xss reported in #2035332 After the bug patch, the server now validates the Content-Type of the requested resource. The check is done by making a HEAD based request to the resource to get the Content-Type then if it corresponds to a valid image mime type a second request is made this time GET based to retrieve the page resource content. Due to the HEAD based check it's very easy to bypass this check, just need to modify the server to response with a different Content-Type in case of GET and HEAD request Example code: ```php ``` TOCTOU ( time-of-check to time-of-use) : At the time of check the application relies upon HEAD request but at the time of use relies upon GET request this allows the attacker to bypass the protection. This xss works only in the Safari browser , I was able to find the problem why it doesn't works in other browser. It had do something with the Accept header. Other browsers send the Accept header with these values: Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8 The server applies sanitization if the Accept header is similar to above, in case of Safari it does something wierd (I don;t actually have a mac so not sure what's eactly it's sending in the Accept header) But the server doesn;t does any sanitization if the header value is like this Accept: */* Steps to reproduce: 1.Save this code in your webserver xss.php ```php ``` 2.Then input your...
SOCIAL SHARE CARD GENERATOR