Hi, Details ================ # Title : Multiple Cross Site Scripting (XSS & Path Traversal Attack (LFI) in NextGEN Gallery by Photocrati Version 2.1.15 # Affected Product : NextGEN Gallery by Photocrati Version 2.1.15 # Vendor Homepage : https://wordpress.org/plugins/nextgen-gallery/developers/ # Vulnerability Type : Cross Site Scripting (XSS) & Path Traversal Attack # POC Github(XSS) : https://github.com/cybersecurityworks/Disclosed/issues/5 # POC Github(Path Traversal) : https://github.com/cybersecurityworks/Disclosed/issues/2 # Risk : High # Status : Not Fixed # CVE Status : Not Assigned # POC Video URL : https://www.youtube.com/watch?v=FYpOdlehFfo Description ================ By using traversal attacks an attacker can know the exact structure of the existing and hosted site on the server. Also, by exploiting a Cross-site scripting vulnerability the attacker can hijack a logged in user’s session by stealing cookies. This means that the malicious hacker can change the logged in user’s password and invalidate the session of the victim while the hacker maintains access. Advisory Timeline ================ 1. Multiple XSS: ================ 17-02-2015 – Discovered in NextGen Gallery 2.0.66.33 version 17-02-2015 – Reported to plugins@wordpress.org 18-02-2015 – plugins@wordpress.org responded saying, "Thank you, we'll inform NGG about this." 04-09-2015 – Reported the Same vulnerability not fixed in NextGen Gallery 2.1.10 version 11-09-2015 - Discovered again in NextGen Gallery 2.1.15 version along with path variable 14-09-2015 - Reported on Multiple XSS on version 2.1.15 directly to photocrati Vendor 2. LFI: Path Traversal attack ================ 17-02-2015: Reported to WP Plugins on version on 2.0.66.33 18-02-2015: Acknowledged by WP Plugin, saying that vendor will be informed. 28-08-2015: Again Reported to WP Plugins on version 2.1.7 01-09-2015: Vulnerability status has been updated in the same. 14-09-2015: Reported the same Vulnerability exist on version 2.1.15 directly to photocrati Vendor Mitigations ================ https://www.owasp.org/index.php/Cross-site_Scripting_(XSS) https://www.owasp.org/index.php/Path_Traversal Disclosure policy ================ This vulnerability will be published if we do not receive a response to this report with 10 days. Credits & Authors ================ sathish@cybersecurityworks.com from cybersecurityworks Pvt Ltd About Cybersecurityworks ================ Cybersecurity Works is basically an auditing company passionate working on findings & reporting security flaws & vulnerabilities on web application and network. As professionals, we handle each client differently based on their unique requirements. Visit our website for more information. *Note: As per our disclosure policy, the mentioned vulnerability was disclosed in public after so many failure in developer response during follow ups happened in the month of October & November. (27-10-2015, 02-11-2015 & 12-11-2015).* -- ---------- Cheers !!! Team CSW Research Lab