Notes 4.5 Arbitrary File Upload
Posted on 14 May 2016
Document Title: =============== Notes v4.5 iOS - Arbitrary File Upload Vulnerability References (Source): ==================== http://www.vulnerability-lab.com/get_content.php?id=1832 Release Date: ============= 2016-04-25 Vulnerability Laboratory ID (VL-ID): ==================================== 1832 Common Vulnerability Scoring System: ==================================== 6.4 Product & Service Introduction: =============================== xNotes, My Personal Documents, Diary. (Copy of the Homepage: http://appshopper.com/utilities/x-notes-my-personal-documents ) Abstract Advisory Information: ============================== The vulnerability laboratory core research team discovered an arbitrary file upload vulnerability in the official Notes v4.5 iOS mobile web-application (wifi). Vulnerability Disclosure Timeline: ================================== 2016-04-25: Public Disclosure (Vulnerability Laboratory) Discovery Status: ================= Published Affected Product(s): ==================== Shanmin Xu Product: xNotes - Mobile API (Web-Application) 4.5 Exploitation Technique: ======================= Remote Severity Level: =============== High Technical Details & Description: ================================ A arbitrary file upload web vulnerability has been discovered in the official Notes v4.5 iOS mobile web-application (wifi). The local file include web vulnerability allows remote attackers to unauthorized include local file/path requests via POST. The web vulnerability is located in the `filename` values of the `Upload File` module. Remote attackers are able to inject own files with malicious `filename` values in the `upload.action` POST method request to compromise the mobile web-application. The arbitrary file upload execute occcurs in the index file dir listing of the wifi interface. The attacker is able to inject the local file upload form request by usage of the `wifi interface` in connection with the vulnerable upload service module. The security risk of the vulnerability is estimated as high with a cvss (common vulnerability scoring system) count of 6.4. Exploitation of the arbitrary file upload vulnerability requires no user interaction or privileged web-application user account. Successful exploitation of the arbitrary file upload web vulnerability results in mobile web-application or device compromise. Request Method(s): [+] POST Vulnerable Module(s): [+] Upload Vulnerable Parameter(s): [+] filename Affected Module(s): [+] File Dir Index Listing Proof of Concept (PoC): ======================= The file include web vulnerability can be exploited by remote attackers without privileged user account or 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 web-application to your ios device 2. Start the application 3. Open the file transfer button on the buttom left 4. Open the called IP in a web-browser 5. Surf to the Upload function and choose a random test image/picture 6. Start a http session tamper to exploit the followup POSt method request 7. Inject your local file request to the filename value for exploitation 8. Continue the request 9. The local file include issue executes in the filename value in the next step 10. Successful reproduce of the local file include vulnerability! PoC: Exploitation http://localhost:51025/./[ARBITRARY FILE UPLOAD VULNERABILITY! PHP]/ --- PoC Session Logs [POST] --- Status: 200[OK] POST http://localhost:51025/ Request Header: Host[localhost:51025] User-Agent[Mozilla/5.0 (Windows NT 6.3; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0] Accept[text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8] Accept-Language[de,en-US;q=0.7,en;q=0.3] Accept-Encoding[gzip, deflate] Referer[http://localhost:51025/] Connection[keep-alive] POST-Daten: POST_DATA[-----------------------------60382496219157 Content-Disposition: form-data; name="file"; filename="./[ARBITRARY FILE UPLOAD VULNERABILITY! PHP]/" Security Risk: ============== The security risk of the arbitrary file upload web vulnerability in the ios web-application is estimated as high. (CVSS 6.4) Credits & Authors: ================== Vulnerability Laboratory [Research Team] - Benjamin Kunz Mejri (bkm@evolution-sec.com) [www.vulnerability-lab.com] [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-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: 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-lab.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.php 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@vulnerability-lab.com) to get a ask permission. Copyright © 2016 | Vulnerability Laboratory - [Evolution Security GmbH]™ -- VULNERABILITY LABORATORY - RESEARCH TEAM SERVICE: www.vulnerability-lab.com CONTACT: research@vulnerability-lab.com