Bugtraq: Bashi v1.6 iOS - Persistent Mail Encoding Vulnerability
Document Title:
===============
Bashi v1.6 iOS - Persistent Mail Encoding Vulnerability
References (Source):
====================
http://ift.tt/1WSlKgZ
Release Date:
=============
2016-05-25
Vulnerability Laboratory ID (VL-ID):
====================================
1852
Common Vulnerability Scoring System:
====================================
3.4
Product & Service Introduction:
===============================
This is an ios bash4.3 app,you can learn,run,share bash 4.3 script. Code templates,the contents of the new file is copy from
contents of the template file. In(the built-in browser or the txt editor),Select the text to run.
Abstract Advisory Information:
==============================
The vulnerability laboratory core research team discovered an application-side mail encoding web vulnerability in the official Bashi v1.6 iOS mobile application.
Vulnerability Disclosure Timeline:
==================================
2016-05-25: Public Disclosure (Vulnerability Laboratory)
Discovery Status:
=================
Published
Affected Product(s):
====================
XiaoWen Huang
Product: Bashi - iOS Mobile Application 1.6
Exploitation Technique:
=======================
Local
Severity Level:
===============
Medium
Technical Details & Description:
================================
An application-side input validation web vulnerability has been discovered in the official Bashi v1.6 iOS mobile application.
The security web vulnerability allows to inject malicious script codes on the application-side of the vulnerable iOS mobile app.
The vulnerability is located in the encode mechanism of the `code console` input field. Local attackers with restricted or local low
privileged application user accounts are able to inject own malicious script codes to the code console input. Thus code can be send by
the share function to the author or random emails. The execution of the malicious script code occurs in the mail body message context
on sharing by email. The injection point of the vulnerability is the code console compiler input field. The attack vector of the issue
is persistent on the application-side and the request method to inject is a basic device sync.
The security risk of the application-side vulnerability is estimated as medium with a cvss (common vulnerability scoring system) count of 3.5.
Exploitation of the persistent web vulnerability requires a low privileged ios device account with restricted access and low user interaction.
Successful exploitation of the vulnerabilities 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)
[+] Code Console
Vulnerable Input(s):
[+] Code Template
Vulnerable Parameter(s)
[+] code
Affected Module(s)
[+] Mail Message Body (Share Function)
Proof of Concept (PoC):
=======================
The application-side validation web vulnerability can be exploited by remote attackers with low privileged iOS device user account and without 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 vulnerable iOS app to your apple device
2. Start the app
3. Click the code module to open the compiler
4. Inject a script code payload to the "$Person" variable in the code-line input field
5. Now, click above the share button and choose send by email
Note: The payload is getting saved to the mail body message context
6. The execution occurs directly in the mail body of the email context were the code becomes via echo visible
A target="_blank" href="<a href="http://ift.tt/1OW0weQ">
http://ift.tt/1S41MY8;">bashi</A></iframe
></p>
Solution - Fix & Patch:
=======================
The vulnerability can be patched by a secure parse and encode of the vulnerable `code compiler` input field.
Restrict the input field and disallow usage of special chars.
Encode the mail message body context that is getting transfered by the code module input to the email body context.
Security Risk:
==============
The security risk of the persistent mail encoding web vulnerability in the iOS app is estimated as medium. (CVSS 3.4)
Credits & Authors:
==================
Vulnerability Laboratory [Research Team] - Benjamin Kunz Mejri (bkm (at) evolution-sec (dot) com [email concealed]) [http://ift.tt/1jnqRwA]
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 licenses, policies, deface websites, hack into databases or trade with stolen data.
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, modify, use or edit our material contact (admin@ or research (at) vulnerability-lab (dot) com [email concealed]) to get a ask permission.
Document Title:
===============
Bashi v1.6 iOS - Persistent Mail Encoding Vulnerability
References (Source):
====================
http://ift.tt/1WSlKgZ
Release Date:
=============
2016-05-25
Vulnerability Laboratory ID (VL-ID):
====================================
1852
Common Vulnerability Scoring System:
====================================
3.4
Product & Service Introduction:
===============================
This is an ios bash4.3 app,you can learn,run,share bash 4.3 script. Code templates,the contents of the new file is copy from
contents of the template file. In(the built-in browser or the txt editor),Select the text to run.
Abstract Advisory Information:
==============================
The vulnerability laboratory core research team discovered an application-side mail encoding web vulnerability in the official Bashi v1.6 iOS mobile application.
Vulnerability Disclosure Timeline:
==================================
2016-05-25: Public Disclosure (Vulnerability Laboratory)
Discovery Status:
=================
Published
Affected Product(s):
====================
XiaoWen Huang
Product: Bashi - iOS Mobile Application 1.6
Exploitation Technique:
=======================
Local
Severity Level:
===============
Medium
Technical Details & Description:
================================
An application-side input validation web vulnerability has been discovered in the official Bashi v1.6 iOS mobile application.
The security web vulnerability allows to inject malicious script codes on the application-side of the vulnerable iOS mobile app.
The vulnerability is located in the encode mechanism of the `code console` input field. Local attackers with restricted or local low
privileged application user accounts are able to inject own malicious script codes to the code console input. Thus code can be send by
the share function to the author or random emails. The execution of the malicious script code occurs in the mail body message context
on sharing by email. The injection point of the vulnerability is the code console compiler input field. The attack vector of the issue
is persistent on the application-side and the request method to inject is a basic device sync.
The security risk of the application-side vulnerability is estimated as medium with a cvss (common vulnerability scoring system) count of 3.5.
Exploitation of the persistent web vulnerability requires a low privileged ios device account with restricted access and low user interaction.
Successful exploitation of the vulnerabilities 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)
[+] Code Console
Vulnerable Input(s):
[+] Code Template
Vulnerable Parameter(s)
[+] code
Affected Module(s)
[+] Mail Message Body (Share Function)
Proof of Concept (PoC):
=======================
The application-side validation web vulnerability can be exploited by remote attackers with low privileged iOS device user account and without 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 vulnerable iOS app to your apple device
2. Start the app
3. Click the code module to open the compiler
4. Inject a script code payload to the "$Person" variable in the code-line input field
5. Now, click above the share button and choose send by email
Note: The payload is getting saved to the mail body message context
6. The execution occurs directly in the mail body of the email context were the code becomes via echo visible
7. Successful reproduce of the vulnerability!
PoC: Code Template - Share
<p>#Note:The template file will be copied
to a new file. When you
change the code of the template file
you can create new file with&
nbsp;this base code. <br>echo <iframe>What
is your name?';<br>read&
nbsp;PERSON <br>echo "Hello $PERSON";&l
t;/p><br><br> *My favorite app:<
A target="_blank" href="<a href="http://ift.tt/1OW0weQ">
http://ift.tt/1S41MY8;">bashi</A></iframe
></p>
Solution - Fix & Patch:
=======================
The vulnerability can be patched by a secure parse and encode of the vulnerable `code compiler` input field.
Restrict the input field and disallow usage of special chars.
Encode the mail message body context that is getting transfered by the code module input to the email body context.
Security Risk:
==============
The security risk of the persistent mail encoding web vulnerability in the iOS app is estimated as medium. (CVSS 3.4)
Credits & Authors:
==================
Vulnerability Laboratory [Research Team] - Benjamin Kunz Mejri (bkm (at) evolution-sec (dot) com [email concealed]) [http://ift.tt/1jnqRwA]
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 licenses, policies, deface websites, hack into databases or trade with stolen data.
Domains: http://ift.tt/1jnqRwA - www.vuln-lab.com - http://ift.tt/1kouTut
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-lab.com - http://ift.tt/1zNuo47 - http://ift.tt/1wo6y8x
Social: twitter.com/vuln_lab - http://ift.tt/1kouSqa - http://youtube.com/user/vulnerability0lab
Feeds: http://ift.tt/1iS1DH0 - http://ift.tt/1kouSqh - http://ift.tt/1kouTKS
Programs: http://ift.tt/1iS1GCs - http://ift.tt/1iS1FyF - http://ift.tt/1oSBx0A
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, modify, use or edit our material contact (admin@ or research (at) vulnerability-lab (dot) com [email concealed]) to get a ask permission.
Copyright © 2016 | Vulnerability Laboratory - [Evolution Security GmbH]�
--
VULNERABILITY LABORATORY - RESEARCH TEAM
SERVICE: http://ift.tt/1jnqRwA
CONTACT: research (at) vulnerability-lab (dot) com [email concealed]
[ reply ]