Document Title: =============== ifixit Bug Bounty #5 - Guide Search Persistent Vulnerability References (Source): ==================== http://www.vulnerability-lab.com/get_content.php?id=1700 Video: http://www.vulnerability-lab.com/get_content.php?id=1699 Release Date: ============= 2016-02-17 Vulnerability Laboratory ID (VL-ID): ==================================== 1700 Common Vulnerability Scoring System: ==================================== 3.8 Product & Service Introduction: =============================== The free repair guide for everything, written by everyone. iFixit is a private company in San Luis Obispo, California. Founded in 2003 while the founders were attending Cal Poly, the company sells repair parts and publishes free wiki-like online repair guides for consumer electronics and gadgets on its web site. (Copy of the Vendor Homepage: https://www.ifixit.com/ ) Abstract Advisory Information: ============================== The Vulnerability Laboratory Core Research Team discovered an application-side input validation web vulnerability in the official ifixit online service web-application. Vulnerability Disclosure Timeline: ================================== 2015-12-25: Researcher Notification & Coordination (Hadji Samir - Evolution Security GmbH) 2015-12-26: Vendor Notification (iFixIt Security Team) 2015-12-29: Vendor Response/Feedback (iFixIt Security Team) 2016-02-01: Vendor Fix/Patch (iFixIt Developer Team) 2016-02-15: Security Acknowledgements (iFixIt Security Team) 2016-02-17: Public Disclosure (Vulnerability Laboratory) Discovery Status: ================= Published Affected Product(s): ==================== Exploitation Technique: ======================= Remote Severity Level: =============== Medium Technical Details & Description: ================================ A persistent cross site scripting web vulnerability has been discovered in the official ifixit online service web-application. The vulnerability allows remote attackers to inject own malicious script codes to the application-side of the vulnerable modules context. The vulnerability is located in the `title name` value of the `guides` and `prerequisite guides` search modules. Remote attackers with low privileged web-application user accounts are able to inject own malicious script codes to the application-side of the affected POST/GET method request. The attack vector of the vulnerability is located on the application-side and the request method to inject is POST. The execution of the inserted payload occurs in the search module were the `guides` and `prerequisite guides` becomes available with keyword. The security risk of the filter bypass and persistent validation vulnerability is estimated as high with a cvss (common vulnerability scoring system) count of 3.8. Exploitation of the persistent input validation web vulnerability requires a low privileged web-application user accountand low or medium user interaction. Successful exploitation of the vulnerability results in session hijacking, persistent phishing, persistent external redirects to malicious source and persistent manipulation of affected or connected application modules. Request Method(s): [+] POST Vulnerable Module(s): [+] `guides` [+] `prerequisite guides` Vulnerable Parameter(s): [+] title name (Guide) Affected Module(s): [+] Search Guide Proof of Concept (PoC): ======================= The persistent cross site vulnerability can be exploited by remote attackers with low privileged web-application user account and low user interaction. For security demonstration or to reproduce the vulnerability follow the provided information and steps below to continue. Manual steps to reproduce the vulnerability ... 1. I create Guide with title name as script code payload Note: Payload - Samir"> 2. Now the attacker needs to create new Guide page 3. After the adding procedure he clicks to the details 4. In the List any prerequisite guides in the searching i write Samir and i get the title about the last Guide page 5. Samir"> Now the code XSS executes via payload metatag 6. Successful reproduce of the persistent cross site scripting vulnerability! PoC: Exploitcode
Samir">
--- PoC Session Logs [POST] --- Status: 201[Created] POST https://www.ifixit.com/api/2.0/guides Load Flags[LOAD_BYPASS_LOCAL_CACHE_IF_BUSY ] Content Size[2192] Mime Type[application/json] Request Headers: Host[www.ifixit.com] User-Agent[Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:44.0) Gecko/20100101 Firefox/44.0] Accept[text/javascript, text/html, application/xml, text/xml, */*] Accept-Language[en-US,en;q=0.5] Accept-Encoding[gzip, deflate, br] X-Requested-With[XMLHttpRequest] X-HTTP-Method-Override[POST] X-CSRF[5vq44aqiks] X-ALLOW-HTTP[true] Api-Client[iFixit-Web] Content-Type[application/x-www-form-urlencoded; charset=utf-8] Referer[https://www.ifixit.com/Guide/new] Content-Length[312] Cookie[_ga= Connection[keep-alive] Post Data: {"type":"replacement","category":"test","subject":"test","title":"Samir\"> Replacement","summary":"test","introduction":"","flags":[],"image":null,"langid":"en"}] Response Headers: Expires[Thu, 19 Nov 1981 08:52:00 GMT] Cache-Control[no-store, no-cache, must-revalidate, post-check=0, pre-check=0] Pragma[no-cache] x-content-type-options[nosniff] X-Max-Age[30m] Content-Type[application/json] Content-Length[2192] Accept-Ranges[bytes] Date[Mon, 01 Feb 2016 13:52:16 GMT] X-Varnish[166966529] Age[0] X-Debug-Deliver[True] X-Debug-Cache[MISS] Reference(s): https://www.ifixit.com/ https://www.ifixit.com/api/ https://www.ifixit.com/api/2.0/ https://www.ifixit.com/api/2.0/guides Security Risk: ============== The security risk of the persistent input validation web vulnerability in the ifixit.com online service web-application is estimated as medium. (CVSS 3.8) Credits & Authors: ================== Vulnerability Laboratory [Research Team] - Hadji Samir (samir@evolution-sec.com) [http://www.vulnerability-lab.com/show.php?user=Hadji%20Samir] Disclaimer & Information: ========================= The information provided in this advisory is provided as it is without any warranty. Vulnerability Lab disclaims all warranties, either expressed or implied, including the warranties of merchantability and capability for a particular purpose. Vulnerability-Lab or its suppliers are not liable in any case of damage, including direct, indirect, incidental, consequential loss of business profits or special damages, even if Vulnerability-Lab or its suppliers have been advised of the possibility of such damages. Some states do not allow the exclusion or limitation of liability for consequential or incidental damages so the foregoing limitation may not apply. We do not approve or encourage anybody to break any vendor licenses, policies, deface websites, hack into databases or trade with fraud/stolen material. Domains: www.vulnerability-lab.com - www.vuln-lab.com - www.evolution-sec.com Contact: admin@vulnerability-lab.com - research@vulnerability-lab.com - admin@evolution-sec.com Section: magazine.vulnerability-db.com - vulnerability-lab.com/contact.php - evolution-sec.com/contact Social: twitter.com/#!/vuln_lab - facebook.com/VulnerabilityLab - youtube.com/user/vulnerability0lab Feeds: vulnerability-lab.com/rss/rss.php - vulnerability-lab.com/rss/rss_upcoming.php - vulnerability-lab.com/rss/rss_news.php Programs: vulnerability-lab.com/submit.php - vulnerability-lab.com/list-of-bug-bounty-programs.php - vulnerability-lab.com/register/ Any modified copy or reproduction, including partially usages, of this file requires authorization from Vulnerability Laboratory. Permission to electronically redistribute this alert in its unmodified form is granted. All other rights, including the use of other media, are reserved by Vulnerability-Lab Research Team or its suppliers. All pictures, texts, advisories, source code, videos and other information on this website is trademark of vulnerability-lab team & the specific authors or managers. To record, list (feed), modify, use or edit our material contact (admin@vulnerability-lab.com or research@vulnerability-lab.com) to get a permission. Copyright © 2016 | Vulnerability Laboratory - [Evolution Security GmbH]™ -- VULNERABILITY LABORATORY - RESEARCH TEAM SERVICE: www.vulnerability-lab.com CONTACT: research@vulnerability-lab.com