Slides
Abstract
This presentation takes you to a tour of how not to handle vulnerability disclosures and how not to add a third party library in your system without keeping a track on the upstream.
This presentation takes you to a tour of how not to handle vulnerability disclosures and how not to add a third party library in your system without keeping a track on the upstream.
AI Generated Content Disclaimer
Note: This summary is AI-generated and may contain inaccuracies, errors, or omissions. If you spot any issues, please contact the site owner for corrections. Errors or omissions are unintended.
The Null Meet Bangalore session, Tale of Forgotten Disclosure, walks through the real-world case of a DOM-based Cross-Site Scripting (XSS) vulnerability in the jQuery prettyPhoto library, a widely used JavaScript lightbox bundled inside dozens of WordPress plugins and countless websites. The talk traces the disclosure timeline from first discovery through the long wait for a patch, and closes with lessons on dependency management, responsible disclosure, and the risks of running components with known vulnerabilities (OWASP A9).
The session opened with the scenario that framed the whole talk. A vulnerability sat in code last updated in March 2013, was publicly disclosed in August 2014, and had an unmerged fix submitted as a pull request back in January 2013. A new release of the library shipped after that pull request, yet the fix was still not included, and the bug remained unpatched through May 2015.
The trail started with information received about a compromised WordPress site running the facebook-page-photo-gallery plugin. Investigation traced the problem to the prettyPhoto library bundled inside the plugin, specifically a JavaScript-based DOM-XSS in jquery.prettyphoto.js. The crux was the getHashtag() function, which pulled the #prettyPhoto URL fragment and passed it through decodeURI() without any sanitization, letting an attacker inject payloads through the hash parameter. Removing the plugin fixed that one site, XSS gone, issue closed, but the library itself was still out there.
The talk then replayed the disclosure effort: an email to the WordPress plugins team and the response that came back, a look at the prettyPhoto repository, a Google search for other affected sites, and the slow process of contacting the author and spreading the word through multiple channels and contacts until some action finally came from the maintainer. Even then, seven days later the fix still had not landed.
Scale made the delay matter. Research found 35 WordPress plugins bundling the vulnerable library, with 2,882,520 total plugin downloads and 337,780 active installations. Anything shipping jquery.prettyphoto.js 3.1.4 or 3.1.5 was vulnerable; older versions were not checked. The fix itself was simple, an upgrade to prettyPhoto 3.1.6, but many plugins and sites stayed unpatched long after release.
The closing lessons split by audience. Developers should never ignore pull requests or security bug reports, should test their software proactively, and should acknowledge a security issue once a fix is public rather than burying it. Developers, sysadmins, and DevOps should never ignore updates from shared libraries, should keep an eye on how shared resources are holding up, and should monitor dependencies. The demo tooling shown could not track every third-party library, so manual tracking was still required, and the whole case mapped to OWASP Top 10 2013 item A9, using components with known vulnerabilities.
“DISCOVERY REQUIRES EXPERIMENTATION”
“LET THE WORLD BE IN PEACE AND LETS GET BACK TO WORK”
“WHY YOU NO FIX”
“Never ignore pull requests and security issue bug report.”
“Proactively test software and at-least if a fix is released publicly accept security issue.”
“We still lack method to track it for every third party library.”