Tale Of Forgotten Disclosure
AI Generated Summary
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 presentation, Tale of Forgotten Disclosure, walks through a real-world case study of a DOM-based XSS vulnerability in the jQuery prettyPhoto library. The deck follows the story from a compromised WordPress site through the disclosure grind to the eventual fix, sizes the impact across the WordPress plugin ecosystem, and closes with lessons for developers, sysadmins, and DevOps, mapping the whole episode to OWASP A9, Using Components with Known Vulnerabilities.
Summary
The scenario slide frames the absurdity: a vulnerability present in code last updated in March 2013, publicly disclosed in August 2014, and interestingly, someone had posted a pull request back in January 2013. Yet until May 2015 it was not patched, even though a new release of the library shipped after the pull request was in place.
The story starts with information received about a compromised site and an investigation that identifies a JavaScript-based DOM-XSS, with the culprit named as the facebook-page-photo-gallery WordPress plugin. The immediate remediation is simple: remove the plugin, XSS fixed, issue closed, end of story, for that one site at least. The presenter emails the WordPress plugins team and receives a response, but the library behind the plugin needs attention too, so the deck moves to discovery, with the maxim that discovery requires experimentation, and a look at the repository.
The crux of the issue is shown as source code: the getHashtag() function in jquery.prettyphoto.js reads location.href, checks for the #prettyPhoto hash, and passes the substring through decodeURI() without sanitization, letting attackers inject payloads through the URL fragment. Versions 3.1.4 and 3.1.5 are confirmed vulnerable; older versions were not checked. After a Google-driven impact survey (the Google Ahoy slide) reveals an interesting fact about scale, the presenter contacts the author, spreads the word across multiple channels over repeated slides, and finally some action follows. The relieved slide declares let the world be in peace and lets get back to work, but seven days later the plugins still are not fixed, prompting the exasperated why you no fix.
The WordPress ecosystem numbers quantify the problem: 35 plugins found bundling the library, with total plugin downloads of 28,82,520 (2.88 million) and 3,37,780 active installations. The vulnerability definition is broader than WordPress: any application or website that has jquery.prettyphoto.js, with versions 3.1.4 and 3.1.5 confirmed vulnerable. The fix is equally terse: upgrade to 3.1.6.
The closing section extracts lessons. For developers: never ignore pull requests and security issue bug reports, and proactively test software, at least publicly accepting the security issue once a fix is released. For developers, sysadmins, and DevOps: never ignore an update from a shared library, keep an eye on how shared resources are holding up, and monitor your dependencies. Tooling slides (the three How slides) show dependency tracking approaches, but the honest verdict is that it is not yet enough: we still lack a method to track every third party library, and manual tracking is still required. The references tie the whole story back to OWASP Top 10 2013 A9, Using Components with Known Vulnerabilities.
Key Themes
- A forgotten fix: the pull request predates the public disclosure by more than a year, and a new release shipped without incorporating it.
- DOM-based XSS mechanics: getHashtag() decodes the #prettyPhoto URL fragment with decodeURI() and no sanitization, making the URL fragment an injection channel.
- Incident response myopia: removing the plugin closed the ticket while the vulnerable library kept shipping inside 35 other plugins.
- Disclosure grind: plugins team contact, author contact, and repeated public spreading of the word before any maintainer action appeared.
- Ecosystem scale: 35 WordPress plugins, 2.88 million total downloads, and 337,780 active installations carried the vulnerable library.
- Blast radius beyond WordPress: any site or application including jquery.prettyphoto.js 3.1.4 or 3.1.5 was vulnerable.
- Simple fix, slow adoption: upgrading to 3.1.6 solved it, yet downstream consumers stayed unpatched even after release.
- Dependency tracking limits: existing tools fall short for every third party library, so manual tracking remains necessary.
- OWASP A9 mapping: the case is a textbook instance of using components with known vulnerabilities.
Notable Points
- Timeline: code last updated March 2013, pull request January 2013, public disclosure August 2014, still unpatched May 2015.
- The investigation traced the XSS to the facebook-page-photo-gallery WordPress plugin, and removing it fixed that site’s issue.
- The vulnerable code is the getHashtag() function in jquery.prettyphoto.js, which uses decodeURI() on URL fragment data without sanitization.
- Versions 3.1.4 and 3.1.5 are confirmed vulnerable; older versions were not checked.
- 35 WordPress plugins bundled the library, totaling 28,82,520 downloads and 3,37,780 active installations.
- The fix is upgrading prettyPhoto to version 3.1.6.
- Seven days after the maintainer finally acted, the downstream plugins remained unfixed.
- Lessons for developers: never ignore pull requests and security bug reports; publicly accept security issues when fixes are released.
- Lessons for developers, sysadmins, and DevOps: never ignore shared library updates, watch shared resources, monitor dependencies.
- The talk concludes that manual tracking is still required because no method covers every third party library.
- The reference mapping is to OWASP Top 10 2013 A9, Using Components with Known Vulnerabilities.
Notable Quotes
“Interestingly someone posted a pull request in Jan 2013”
“Till may 2015 it was not patched even though there was a new release after the pull request was in place.”
“XSS Fixed; Issue closed”
“End of Story”
“DISCOVERY REQUIRES EXPERIMENTATION”
“WHY YOU NO FIX”
“Never ignore pull requests and security issue bug report.”
“Manual tracking is still required.”


































