Closed
Bug 839470
Opened 12 years ago
Closed 8 years ago
UnRedirectable Page by using onbeforeunload, setTimeout and a pop-up msg
Categories
(Core :: DOM: Navigation, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 1263100
People
(Reporter: soroush.dalili, Unassigned)
References
(Blocks 1 open bug)
Details
(Keywords: sec-low)
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.12) Gecko/20130109 Firefox/10.0.12
Build ID: 20130109015419
Steps to reproduce:
Several weeks ago, I had reported an interesting PoC via my Twitter in which I had created an unRedirectable web page:
https://twitter.com/irsdl/status/294239415428067329
PoC Link: http://0me.me/demo/mozilla/firefox/UnRedirectablePage.html
This works in Firefox and IE.
Today, I accidentally saw several adverts which were exploiting this issue and I thought it's better to report it via Bugzilla as well.
PoC of an advert: [UNSAFE LINK] http://internet-income-source.com/4/?aff_sub=38 [/UNSAFE LINK]
Actual results:
PoC:
1- Open the following link: http://0me.me/demo/mozilla/firefox/UnRedirectablePage.html
2- type another URL in the address bar and hit enter
3- Click on any links on the page
Reason:
The following script stops the page from being redirected:
window.onbeforeunload = function(){
//Unredirectable Page
setTimeout("window.location=document.location;alert('delay by alert');",0);
}
"alert()" can be replaced by similar functions such as "prompt", "ask for location", and so on.
Expected results:
It should redirect me to the new page.
Reporter | ||
Updated•12 years ago
|
Summary: UnRedirectable Page by using setTimeout and a pop-up msg → UnRedirectable Page by using onbeforeunload, setTimeout and a pop-up msg
Updated•12 years ago
|
Component: Untriaged → Document Navigation
Product: Firefox → Core
Reporter | ||
Comment 2•10 years ago
|
||
This did not have any update for a while? Can you please make it public so everyone can see the issue?
Reporter | ||
Comment 3•10 years ago
|
||
Sorry wrong comment for this issue! This issue is already public so should be published.
Updated•9 years ago
|
Group: core-security → dom-core-security
The same as bug 1263100?
Comment 6•8 years ago
|
||
1263100 has discussion about a solution, so forward-duping.
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago
Resolution: --- → DUPLICATE
Updated•8 years ago
|
You need to log in
before you can comment on or make changes to this bug.
Description
•