When handling ambiguous URLs, web servers may inadvertently serve responses that can be misinterpreted by clients, leading to potential confusion about the correct relative path. This vulnerability can also affect resources such as CSS and images, which are specified using relative URLs. By exploiting this issue, an attacker may be able to trick a client into interpreting HTML as CSS or other content types, resulting in a cross-site scripting (XSS) vulnerability.
To mitigate this vulnerability, web servers and frameworks should be updated to handle ambiguous URLs more securely. Within the application, ensure that the correct ‘