Semantic URL attack
In a semantic URL attack, a client manually adjusts the parameters of its request by maintaining the URL's syntax but altering its semantic meaning.[src] This attack is primarily used against CGI driven websites.[src] A similar attack involving web browser cookies is commonly referred to as cookie poisoning.[src]
In a semantic URL attack, a client manually adjusts the parameters of its request by maintaining the URL's syntax but altering its semantic meaning.[src] This attack is primarily used against CGI driven websites.[src] A similar attack involving web browser cookies is commonly referred to as cookie poisoning.[src] ==Example== Consider a web-based e-mail application where users can reset their password by answering the security question correctly, and allows the users to send the password to the e-mail address of their choosing.[src] After they answer the security question correctly, the web page will arrive to the following web form where the users can enter their alternative e-mail address: Please enter your alternative e-mail address: The receiving page, resetpassword.php, has all the information it needs to send the password to the new e-mail.[src] The hidden variable username contains the value user001, which is the username of the e-mail account.[src] Because this web form is using the GET data method, when the user submits alternative@emailexample.com as the e-mail address where the user wants the password to be sent to, the user then arrives at the following URL: http://semanticurlattackexample.com/resetpassword.php?username=user001&altemail=alternative%40emailexample.com This URL appears in the location bar of the browser, so the user can identify the username and the e-mail address through the URL parameters.[src] The user may decide to steal other people's (user002) e-mail address by visiting the following URL as an experiment: http://semanticurlattackexample.com/resetpassword.php?username=user002&altemail=alternative%40emailexample.com If resetpassword.php accepts these values, it is vulnerable to a semantic URL attack.[src] The new password of user002's e-mail address will be generated and sent to alternative@emailexample.com which causes user002's e-mail account to be stolen.[src] One method of avoiding semantic URL attacks is by using session variables.[src] However, session variables can be vulnerable to other types of attacks such as session hijacking and cross-site scripting.[src] ==References== ==See also== Query string[src]
15 sentences · 15 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"Semantic URL attack." encyclopegia.org, 2025, https://encyclopegia.org/wiki/semantic-url-attack. Accessed 01 December 2026.
Chicago
"Semantic URL attack." encyclopegia.org. Accessed December 1, 2026. https://encyclopegia.org/wiki/semantic-url-attack.
APA
encyclopegia.org. (2025). Semantic URL attack. Retrieved December 1, 2026, from https://encyclopegia.org/wiki/semantic-url-attack
Accessed December 1, 2026 · CC BY-SA 4.0 · citation page · JSON