Hack Firefox to steal  web-secrets Sunil Arora
How many of you use Firefox ?
Firefox and extensions <ul><li>Firefox  </li></ul><ul><ul><li>Claimed to be  most secure  and  most efficient  web browser...
Agenda <ul><li>Malware overview </li></ul><ul><li>Malware – How it works </li></ul><ul><li>A look at existing vulnerabilit...
Lets meet john Uses internet for social networking. For example Facebook, orkut, myspace etc. Uses Email for professional ...
John’s online world Problem Statement How to retrieve values of elements like username, password, credit card number, IPIN...
Malware -Architecture Our Malware is nothing but a malicious Firefox extension Target List Secret List Secret Collector En...
<ul><ul><li>Intercept http requests being made by the browser </li></ul></ul>Malware - Secret Collector -I Normal http req...
Malware - Secret Collector - II <ul><li>Different Components within the Firefox can register to send/receive notifications...
Malware -Target List Set of websites we want to steal secrets for URL:   https://www.google.com/Auth Number of attributes:...
Malware - Secret List Set of collected secrets URL:   https://www.google.com/Auth Number of attributes:  2 Name:  Email, V...
Communicator Module Target List Secret List Internet
How it can find its way to john’s Firefox - I <ul><li>Installing malicious extension </li></ul><ul><ul><li>Command line si...
<ul><li>Exploit FireFox’s vulnerability (For ex. Extension upgrade vulnerability, quicktime RSTP vulnerability) to push th...
Firefox extension upgrade vulnerability <ul><li>Firefox upgrade mechanism </li></ul><ul><ul><li>enabling the extensions to...
Facebook Extension <ul><li>Facebook is a very popular social network site. It provides a FF toolbar as an FF extension. </...
Attack Flow Facebook extension update Server Attacker’s update Server Hosting malicious extension John’s FF running Facebo...
Advisory <ul><li>Do not use public computer for important information exchange </li></ul><ul><li>Up-to-date Software </li>...
Thank U [email_address]
Upcoming SlideShare
Loading in …5
×

Sunil - Hacking Firefox - ClubHack2007

969
-1

Published on

Published in: Technology, News & Politics
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
969
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
20
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Sunil - Hacking Firefox - ClubHack2007

  1. 1. Hack Firefox to steal web-secrets Sunil Arora
  2. 2. How many of you use Firefox ?
  3. 3. Firefox and extensions <ul><li>Firefox </li></ul><ul><ul><li>Claimed to be most secure and most efficient web browser </li></ul></ul><ul><li>Firefox extensions </li></ul><ul><ul><li>A way to extend Firefox to customize or add more functionality to it </li></ul></ul><ul><ul><li>Most of the popular websites (Google, Stumbleupon, Facebook etc.) provide their toolbar in form of extension </li></ul></ul><ul><ul><li>Popular functionalities like FTP, CHMReader, Flashblock, Adblock etc are available in form extensions </li></ul></ul>
  4. 4. Agenda <ul><li>Malware overview </li></ul><ul><li>Malware – How it works </li></ul><ul><li>A look at existing vulnerabilities </li></ul><ul><li>How malware can find its way on to victim’s Firefox </li></ul><ul><li>Live demo </li></ul>
  5. 5. Lets meet john Uses internet for social networking. For example Facebook, orkut, myspace etc. Uses Email for professional as well as personal communication. For ex. Gmail, Yahoo or Corporate webemail Uses internet for his credit card transactions. For ex. Citibank, ICICI bank, HSBC etc Uses internet banking for managing his day to day finance activity Blogs on internet for professional as well as personal purpose.
  6. 6. John’s online world Problem Statement How to retrieve values of elements like username, password, credit card number, IPIN etc for a particular web resource (Gmail /Yahoo/Banking website etc)
  7. 7. Malware -Architecture Our Malware is nothing but a malicious Firefox extension Target List Secret List Secret Collector Engine Communicator Module
  8. 8. <ul><ul><li>Intercept http requests being made by the browser </li></ul></ul>Malware - Secret Collector -I Normal http request process Parse http request And Retrieve user typed Web secrets
  9. 9. Malware - Secret Collector - II <ul><li>Different Components within the Firefox can register to send/receive notifications. </li></ul><ul><li>Some standard notifications -- </li></ul><ul><ul><li>quit-application </li></ul></ul><ul><ul><li>memory-pressure </li></ul></ul><ul><ul><li>Domwindowopened / domwindowclosed </li></ul></ul><ul><ul><li>http-on-modify-request / http-on-examine-response </li></ul></ul>How to intercept http request “ Notifications” mechanism in Firefox ???
  10. 10. Malware -Target List Set of websites we want to steal secrets for URL: https://www.google.com/Auth Number of attributes: 2 Attribute Names: Email, Passwd
  11. 11. Malware - Secret List Set of collected secrets URL: https://www.google.com/Auth Number of attributes: 2 Name: Email, Value:john@gmail.com Name: Passwd Value :helloworld
  12. 12. Communicator Module Target List Secret List Internet
  13. 13. How it can find its way to john’s Firefox - I <ul><li>Installing malicious extension </li></ul><ul><ul><li>Command line silent install (firefox.exe –install –silent …XXX) </li></ul></ul><ul><ul><li>Using Firefox’s extension installation wizard </li></ul></ul><ul><ul><li>Copy malicious extension’s file in extension directory of Firefox </li></ul></ul>
  14. 14. <ul><li>Exploit FireFox’s vulnerability (For ex. Extension upgrade vulnerability, quicktime RSTP vulnerability) to push the extension </li></ul><ul><li>Installing the malicious extension exploiting vulnerability in some other existing application </li></ul><ul><li>Bundle it in some other popular extension and redistribute </li></ul><ul><li>Host malicious extension on a webserver and craft a webpage to drive user to install the hosted extension </li></ul>How it can find its way to john’s FireFox - II
  15. 15. Firefox extension upgrade vulnerability <ul><li>Firefox upgrade mechanism </li></ul><ul><ul><li>enabling the extensions to poll an Internet server for updates </li></ul></ul><ul><ul><li>If an update is available, the extension will typically ask the user if they wish to upgrade, and then will download and install the new code. </li></ul></ul><ul><ul><li>Extensions fetching update from a http ://www.xxx.com (non-SSL webserver) instead of https: //www.xxx.com (SSL enabled webserver) are vulnerable to DNS based man in the middle attack. </li></ul></ul>
  16. 16. Facebook Extension <ul><li>Facebook is a very popular social network site. It provides a FF toolbar as an FF extension. </li></ul><ul><li>Any FF with facebook toolbar (v 1.1) is vulnerable to update vulnerability. </li></ul><ul><li>Package our malicious extension in existing facebook toolbar (v1.6) and will push it through the update vulnerability </li></ul><ul><li>Once malicious extension is installed in FF. The victim’s FF is compromised. </li></ul>
  17. 17. Attack Flow Facebook extension update Server Attacker’s update Server Hosting malicious extension John’s FF running Facebook extension Hacker running Master Server X Y Untrusted public network What is IP of update server Update server is at Y Fetches Target Lists Sends collected Secrets
  18. 18. Advisory <ul><li>Do not use public computer for important information exchange </li></ul><ul><li>Up-to-date Software </li></ul><ul><li>Install Firefox extensions from authentic sources (https://addons.mozilla.org) only </li></ul><ul><li>Regularly check list of installed extensions </li></ul><ul><li>Observe Firefox’s performance. Anomaly in performance may be due to an unwanted extension </li></ul><ul><li>Do not ignore extension install warning </li></ul>
  19. 19. Thank U [email_address]
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×