Firefox OS Find My Device ClickJacking Security Vulnerability
Originally disclosed on Mozilla
- Fixed in 11 months
- Paid in 4 months
- Disclosed after 11 months
Created attachment 8523446
Firefox OS Find My Device ClickJacking Security Vulnerability
User Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:34.0) Gecko/20100101 Firefox/34.0
Build ID: 20141110195804
Steps to reproduce:
Hi Mozilla Security Team,
My name is Mohamed Abdelbaset Elnoby an Information Security Evangelist from Egypt, responsible for the "Samsung Find My
Mobile" CSRF Security Vulnerability, here is some details about it:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2014-8346
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2014-8346
http://thehackernews.com/2014/10/samsung-find-my-mobile-flaw-allows.html
http://www.computerworld.com/article/2839240/zero-day-in-samsung-find-my-mobile-service-allows-attacker-to-remotely-
lock-phone.html
http://mashable.com/2014/10/28/hackers-samsung-find-my-mobile/
http://www.businessinsider.com/hackers-use-find-my-mobile-to-wipe-any-samsung-phone-2014-10
http://www.dailymail.co.uk/sciencetech/article-2812286/Samsung-flaw-lets-hackers-remotely-lock-devices-Bug-Mobile-service-
leaves-handsets-open-attack.html
Today I would like to report a Security Vulnerability in Firefox OS Find My Device feature, details as follow:
Vulnerability :
ClickJacking
Info:
https://www.owasp.org/index.php/Clickjacking
Affected URL(s):
https://find.firefox.com
Highlights on the Vulnerability:
Regardless The security protection mechanism which is that that attacker definitely can't guess or brute force the Device id
"8fcXXXXc40de04b3803945XXXXXXXXXX" to make a successful clickjacking attack iframe, This protection mechanism is too low
coz all the attacker to do is just to point the logged in user to his iframe source https://find.firefox.com and Mozilla will care about
the other things "will redirect him to the correct logged in active device id.
What attacker can do:
-Erase the victim's device data with just only 3 clicks by the victim himself if he tricked with "click here to win a 50 BTC for
Example"
- Lock The victim device or change his lock code if it is the first time to be set "4 clicks"
- Makes the Device ringing "2 clicks"
More Details About clickjacking:
Because of No Frame Busting Techniques or X-Frame-Options header, the whole website is vulnerable to Clickjacking attacks
which could lead to a full account takeover considering such scenario:
1. Attacker will iframe any sensitive the website page and adjust the iframe size and add a "divs" as a layers on the unwanted-to-
show parts of the original web page to fool and trick the user.
2. User get tricked by the crafted page and followed the attacker's instruction to do a specific clicks to the iframed page
3. Unwanted actions happened in the logged in user's session in result to the attack's clicks.
Remedy:
1- Add an X-Frame-Options HTTP Header and set it's value to "Deny" or "Sameorigin" as you can see it suitable to mitigate such
attacks
2- Use iframe busting techmiques in JS code like this:
<script type="text/javascript">
if (self === top) {
var antiClickjack = document.getElementById("antiClickjack");
antiClickjack.parentNode.removeChild(antiClickjack);
} else {
top.location = 'Your_Website_URL_Here';
}
</script>
or
<script type="text/javascript">
// Disable frame hijacking
if (top != self)
top.location.href = location.href;
</script>
References:
https://developer.mozilla.org/en-US/docs/Web/HTTP/X-Frame-Options
Waiting for your reply
Thanks
Actual results:
Find My Device web interface is iframable which makes it vulnerable to ClickJacking Attacks
Expected results:
Find My Device web interface mustn't be iframed Apply XFO or Frame Busting techniques:
<script type="text/javascript">
if (self === top) {
var antiClickjack = document.getElementById("antiClickjack");
antiClickjack.parentNode.removeChild(antiClickjack);
} else {
top.location = 'Your_Website_URL_Here';
}
</script>
or
<script type="text/javascript">
// Disable frame hijacking
if (top != self)
top.location.href = location.href;
</script>
References:
https://developer.mozilla.org/en-US/docs/Web/HTTP/X-Frame-Options
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
What is known
A medium-severity doS bug in Find My Device. Mozilla made it public on 21 October 2015.
About DoS
A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
What is DoS?
A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.