BugTraq
MyScript Memo v3.0 iOS - (Mail) Persistent Vulnerability Feb 10 2016 10:53AM
Vulnerability Lab (research vulnerability-lab com)
Document Title:
===============
MyScript Memo v3.0 iOS - (Mail) Persistent Vulnerability

References (Source):
====================
http://www.vulnerability-lab.com/get_content.php?id=1706

Release Date:
=============
2016-02-10

Vulnerability Laboratory ID (VL-ID):
====================================
1706

Common Vulnerability Scoring System:
====================================
3.6

Product & Service Introduction:
===============================
With MyScript Memo, take your notes on the go using your handwriting and convert them to digital text that you
can export and share with Evernote®, Facebook®, Twitter®, Gmail or copy/paste to any other text application.
MyScript Memo is available in 63 recognition languages (including Chinese, Korean, Japanese, Arabic, Russian,
English, Spanish, French and many more).

(Copy of the Homepage: https://itunes.apple.com/us/app/myscript-memo/id446368116 )

Abstract Advisory Information:
==============================
The Vulnerability Laboratory Core Research Team discovered a persistent mail encoding web vulnerability in the official MyScript Memo iOS mobile web-application.

Vulnerability Disclosure Timeline:
==================================
2016-02-10: Public Disclosure (Vulnerability Laboratory)

Discovery Status:
=================
Published

Affected Product(s):
====================
MyScript
Product: MyScript Memo - iOS (Web-Application) 3.0.0.363

Exploitation Technique:
=======================
Remote

Severity Level:
===============
Medium

Technical Details & Description:
================================
A persistent mail encoding and file extension validation vulnerability has been discovered in the official MyScript Memo v3.0.0 iOS mobile web-application.
The vulnerability allows an remote attacker or local privileged user account to inject own malicious script codes to the application-side of the affected modules.

The issue is located in the notes-filename and document text context of the export module. Local low privileged web-application user accounts are able to inject
own malicious persistent script codes to the mail body context of the `share` function. Attacker can manipulate the notes files as extension or the main document
context to send malicious mails with persistent injected script codes. The request method to inject is POST and the attack vector of the issue is located on the
application-side of the iOS mobile web-application.

The security risk of the application-side input web vulnerability is estimated as medium with a cvss (common vulnerability scoring system) count of 3.6.
Exploitation of the persistent web vulnerability requires a low privileged ios device account with restricted access and low or medium user interaction.
Successful exploitation of the vulnerability results in persistent phishing mails, session hijacking, persistent external redirect to malicious
sources and application-side manipulation of affected or connected module context.

Vulnerable Module(s)
[+] Export

Vulnerable File(s)
[+] *.notes

Affected Module(s)
[+] Email

Proof of Concept (PoC):
=======================
The vulnerability can be exploited by remote attackers and local low privileged user accounts with low or medium 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. Install the mobile web-application
2. Start the mobile web-application
3. Add a new `Notizen` item via (+)
4. Use now a payload (script codes) as notiz name
5. Save the entry and open the document
6. Write with your finger a script code payload in the document and save it
7. Click (top|left) the export function
8. Use the function `As MyScript-File`
9. Now click the email button
Note: The file generates a notes file with the malicious payload for import/export. It also uses the file input payload of the document.
10. Successful reproduce of the persistent mail encoding web vulnerability and notes file validation issue!

PoC: Source
<html>
<head>
<title>memo script app ios</title>
<link rel="important stylesheet" href="chrome://messagebody/skin/messageBody.css">
</head>
<body><table border=0 cellspacing=0 cellpadding=0 width="100%" class="header-part1"><tr><td><b>Betreff: </b>memo script app ios</td></tr>
<tr><td><b>Von: </b>Benjamin Mejri Kunz <vulnlabstars (at) icloud (dot) com [email concealed]></td></tr><tr><td><b>Datum: </b>31.01.2016 14:08</td></tr></table>
<table border=0 cellspacing=0 cellpadding=0 width="100%" class="header-part2"><tr><td><b>An: </b>bkm (at) evolution-sec (dot) com [email concealed]</td></tr></table><br>
<div class="moz-text-plain"><pre wrap>
Angehängt: ">"<[PERSISTENT INJECTED SCRIPT CODE VIA MEMO!]
</pre></div><BR><FIELDSET CLASS="mimeAttachmentHeader"></FIELDSET><BR/><div class="moz-text-plain"><pre wrap>
Von meinem iPad gesendet</pre></div></body>
</html>

PoC: poc.notes
v3.0
VO_INK_DOCUMENT
1180
 Ã? 3
«Wqâ?¬ Å¡üX·QÃ?2â?  Ã? AË?Å?Ã?Å?##fI´â?¢]\Ã¥qN~wWU¾Ã?± Ë?Ã?â? !Å?F#6Ã?2lâ?¢2bF&fDiâ??$Å¡Mâ??a
m(CÃ?îâ?¦ â??<µahWyÃ?rÅ?«H,®î¡Ã?B 0 â?¬«Wrâ?¬ Å¡üÃ?¢vYâ?â??2m$FC(ã
sȢâ??5â??Ã? Ã?â?¬Jâ?¬«Wrâ?¬ Å¡üfÃ?8ìÃ?ÿþ,Cçpâ??Å S++颢8-ž
&�`5«Ws� šü
FQâ?¹2©\ââ?(§8§râ?¢Ã¯Ã²I$Ã? Æ?aâ??â??â??$]â??c1bâ?¢"dÃ?2hË?Ã?aâ??!Ã?ͲHxÃ?ðXpg]Ã?-[Z8Â

í(Bâ?? Ã?ïâ?¢Ã?Ã?µR¾!îBÃ? Ë?«Wt Å¡üê5ELÃ?  C' üÃ?Å?Qâ?? qŽBÃ?êìâ??jBçMóâ??[ â?º ¡â??êìºÃ?@â?¬«Wu Å¡ü
Ã?2câ?¢Â'·1Ã? Ã?#ªøTÃ?¬üT!8«Wuâ?¬ Å¡üâ??ôâ??Ve
8pàPPãŽwâ?¹'â??I3Ã?Câ??bh¤â??;BÅ?Yâ?¡(hà¢Ã?Å $Pâ??'Å? AÃ?Å¡Yd÷µŠJ«Ã?@aÃ?fâ??çâ?¢Ã¤!jÃ?4´ëÅ?BÃ?Ã?1
qÃ? @«Wv Å¡ü+ NlÃ?,Ã?8Yâ? KVâ?¢  æžIw3_´Ã?Mâ? Ã? ¬/«Wvâ?¬ Å¡ü6¾¡Ve±Ã?A VwTeeDDB(Æ? r;¦Ã?YÃ?4Ã?Å?,â??¹iQ[.Tâ?¢ÿÃ?Ã?â??(îâ??¢µ¼â??ä÷iÃ?Srâ
??Ã?â?? : *«Ww Å¡ü<ZQ«2Ã?¶¼KÍ,Ã?Ã?¿Ë?Å C(ãâ?¦ æuVDDD!Ž(Á9â?¢Ã? Ã?â?¦1äI§Å? AÃ?â??÷-A7Íâ?º.Uâ?¢{â?ºÃ?Ã?iÃ?DQZP 5;¦§ãyò¹Ã?gªK¬+[Ã?Yj
Yd �µ��o$±¥ �«Wx šüü®P³2éLs�#«+¹ ¢
â??â? r²¢#fâ10Ã?!Ž!HUTDNÃ?L4ñ"Ã? ,¦-H&\øâ?¢Ã²Ã«Ã¶p¢Ã?iç  AOXéóåÃ?m[Ã?âŠ$Ã?EË?q¤1I0<Íc*%§½Ã?
â??ííÃ?â??ä0ÝS¸Nâ??£4 Ã?B8jË?â? JW?¶T²@0â?¬«Wxâ?¬ Å¡üÃ?£æf(ðAK-Ã?Av]t©vÃ?_©§»Ã?`â??Bâ? â??Å?<âZnË?â?¦Â¯Ã?
÷â??{S1 0pÃ?` `Æ?
QNrYY @ ¤šÃ?OË?~W Á Ã¥pÃ?=â?? þr¾Ã?õ l«Wyâ?¬ Å¡ü=,&f)
kÃ?iEòË?!ä¼â??æ©)_)ºDâ?¢räÃ?â??UÃ?9ï ³8ñad÷9Ã?bÐâ?¢%Ži%â?YµÃ?BÃ?PwýÆ?:Å?y\Q+âô,Ã?UVì¯[Ã?RÃ
?�à L�
VO_DOCUMENT
317
<Document version="1.0"><DateCreated>2016-01-31T14:06:40</DateCreated><DateModifie
d>2016-01-31T14:06:59</DateModified><Height>263.200012</Height><Width>21
0.000000</Width><PredefinePaper>horizontalLinePaper</PredefinePaper><Lin
ePatternUnit>13.210000</LinePatternUnit><PrimaryLanguage>en_US</PrimaryL
anguage></Document>
D938BA68-4505-47CB-BFEE-DADC1E5ED150
79
<Page version="1.0"><PredefinePaper>horizontalLinePaper</PredefinePaper></Page
>
VO_DOCUMENT_STRUCTURE
128
<Document version="1.0"><Pages><Page id="D938BA68-4505-47CB-BFEE-DADC1E5ED150"><PageItems></PageItems></Page>
</Pages></Document>

Solution - Fix & Patch:
=======================
The vulnerability can be patched by a secure parse and encode of the filename variable and the document input text context.
Restrict the input and disallow special chars.
Encode the mail context input next to the attachment. Disallow note files with specialchars to prevent a malicious import/export.
Filter the filename validation to approve for malicious context and to prevent further script code injection attacks.

Security Risk:
==============
The security risk of the persistent mail encoding web vulnerability in the notes file extension and mail is estimated as medium. (CVSS 3.6)

Credits & Authors:
==================
Vulnerability Laboratory [Research Team] - Benjamin Kunz Mejri (research (at) vulnerability-lab (dot) com [email concealed]) [www.vulnerability-lab.com]

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 (at) vulnerability-lab (dot) com [email concealed] - research (at) vulnerability-lab (dot) com [email concealed] - admin (at) evolution-sec (dot) com [email concealed]
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 (at) vulnerability-lab (dot) com [email concealed] or research (at) vulnerability-lab (dot) com [email concealed]) to get a permission.

Copyright © 2016 | Vulnerability Laboratory - [Evolution Security GmbH]�

--
VULNERABILITY LABORATORY - RESEARCH TEAM
SERVICE: www.vulnerability-lab.com
CONTACT: research (at) vulnerability-lab (dot) com [email concealed]

[ reply ]


 

Privacy Statement
Copyright 2010, SecurityFocus