tabnabbing in roundcube webmail
The compose window in Roundcube webmail opens without isolating the opener, so a page loaded in that new window can change the address of the original webmail tab. An attacker could use this to swap the webmail tab for a phishing page and trick the user into entering credentials.
Originally disclosed on HackerOne
- Triaged in 15 hours
- Fixed in 35 days
- Disclosed after 3 months
Description: Tab nabbing vulnerability occurs When you open a link in a new tab ( target="_blank" ), the page that opens in a new tab can access the initial tab and change its location using the window.opener property and from this a lot of phishing attacks could happen. This scenario occurs on roundcube webmail. Attack Scenario: The attacker will create any website with any content which include this script tag.
<script> if (window.opener) window.opener.parent.location.replace('http://phishing.com'); if (window.parent != window) window.parent.location.replace('http://phishing.com'); </script>Steps To Reproduce:
-
Login into your roundcube webmail account.
-
Go to Compose option and below you can see there is open in the new window button click it.
-
Open the console and write window.opener.location='http://google.com'.
-
Return to the round webmail account and you will redirect to Google.com.
Thank You,
Waleed Anwar
Impact
Impact Due to the redirection being done in the background and most people aren't aware of this type of attack unlike the open redirection, Most people will fall into it and will enter their credentials leading to account takeover.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Impact
Because the redirect happens in the background, users may not notice and could enter credentials on a phishing page, which could lead to account takeover.
What the attacker needed
A Roundcube webmail account; victim opens the compose window; attacker controls a page in that window
How it was found
- Log in to the Roundcube webmail account.
- Open Compose and click the button that opens it in a new window.
- In the console of the new window, set the opener location to another site.
- Return to the original webmail tab and see it has been redirected.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
When a site opens a new window, the new page can sometimes control the page that opened it. Here the compose window could redirect the original webmail tab to another site without the user noticing. A criminal could send the user to a fake login page to steal the password.
What is Open redirect?
A trusted site forwards users to any address an attacker picks; rarely paid alone, often the missing link in a chain.