C0c0n Source Code Review
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.
At c0c0n 2014, the talk “My tryst with Source Code Review” told the story of the CodeVigilant project, a community collaboration to find and responsibly disclose vulnerabilities in open-source software. The deck walks through the hands-on journey: why bug bounties proved disappointing, how the project formed, the automation-first methodology the team built for the WordPress plugin and theme ecosystem, the 250-plus issues found in phase one, and the practical lessons about why both open-source and commercial scanners fell short on CMS code.
Summary
A year earlier, the main line of work was blackbox penetration testing, with time invested in bug bounties that ended unconvinced; code review sat in the ice box of pending things to learn, until a #nullblr meet brought a meeting with fellow researcher Prajal Kulkarni, who was planning something similar, and the project started.
CodeVigilant was defined as a community collaboration effort to make open-source software more secure: find bugs, responsibly disclose them, preferably get the software updated, and publish on the website after a sufficient interval. The team picked the WordPress ecosystem, plugins and themes first with core as a future check. The manual top-ten plan collapsed within days; the re-roll was to download all plugins and themes and focus on vulnerability types rather than individual plugins. Tooling followed: a WordPress information extractor and downloader, plus a simple Python script that became the released error_finder tool on GitHub.
The WordPress role model shaped the strategy: unauthenticated issues are the prime concern, subscriber and contributor level issues come second, and editors and admins already have unescaped HTML access. Phase one therefore targeted unauthenticated issues, starting with OWASP A3, Cross Site Scripting. The first attempt assumed grepping for echo $_GET would find the bugs; the working approach extracted all GET, POST, and REQUEST parameters and accessed the URLs with those parameters in place. A second lesson: XSS only works when the content type is text/html, so the team wrote scripts that capture proper response types. Work on OWASP A9 found mainly outdated SWF binaries and old library files bundled in plugins, while inspathx error messages yielded directory traversal by-products. The result was 250 plus issues across various WordPress plugins.
Phase two targeted authenticated issues such as SQL injection, admin console XSS and CSRF, with all 30K plugins needing mapping against each type of user access, and a script for that was in progress. The team had grown to four people, adding Chaitu and Madhu Akula. The audience received a take-home list of PHP functions to look for in their own codebases. The offer was explicit: join the team for continuous contribution with an author page at codevigilant and keep any bounty earned, or send one-off findings for coordination and credited advisories.
The scanner section explained the gap. Among open-source tools only rips worked marginally well, and its web view hung regularly; one commercial cloud product that required code upload missed simple XSS and SQLi, as the open-source tools also did. The likely reason: WordPress and other CMSes use their own wrapper functions instead of calls like mysql_query, which scanners do not recognize; after results were shared, the vendor kind of vanished.
Key Themes
- Bug bounties as a starting point: small surface area, mostly trivial XSS and header findings, and blackbox-only access pushed the search toward source code review.
- Collaboration over solo grinding: a chance meeting at #nullblr turned a parked idea into a community project with responsible disclosure as the core rule.
- Automate the corpus, not the plugin list: after a manual top-ten attempt stalled, downloading everything and attacking one vulnerability type across the ecosystem became the working method.
- Roles define impact: mapping WordPress’s six user roles to plugin behavior set the priority order from unauthenticated issues down to subscriber and contributor level ones.
- Lessons hidden in the demos: grep alone misses parameterized reflections, and content type decides whether XSS fires at all.
- Scanners and CMS code: open-source tools like rats and rips and a commercial cloud product all missed simple XSS and SQLi because CMS wrapper functions are invisible to them.
- A community offer: contribution comes with an author page and any bounty earned, and one-off findings get coordinated, disclosed, and credited.
Notable Points
- CodeVigilant was co-started with Prajal Kulkarni after a meeting at a #nullblr meet, and grew to a four-person team with Chaitu and Madhu Akula.
- The project targets the WordPress ecosystem, with plugins and themes as the current focus and core as a future check.
- Phase one produced 250 plus issues in various WordPress plugins, all unauthenticated or low-privilege findings.
- The released tooling includes the error_finder script at github.com/Codevigilant/error_finder, plus a WordPress information extractor and downloader written as a Python script with grep and cut friendly output.
- Phase 1 targeted OWASP A3 (Cross Site Scripting): first attempt grepped for echo $_GET, the second extracted all GET/POST/REQUEST parameters and requested URLs with those parameters in place.
- The content-type lesson: XSS works only with text/html responses, and fails against JSON, XML, and JavaScript responses.
- OWASP A9 work found outdated SWF binaries and old library files bundled within plugins; inspathx error messages also yielded directory traversal by-products.
- Phase 2 targets authenticated issues (SQL injection, stored and reflected XSS in the admin console, CSRF) and requires mapping all 30K plugins to WordPress user roles; the mapping script was in progress.
- Scanner results: rats and other open-source tools largely failed, rips worked marginally but its web view hung repeatedly, and one commercial cloud product also missed simple XSS and SQLi. The suspected reason is CMS wrapper functions scanners do not recognize, and the vendor did not respond after results were shared.
- Contributor offer: an author page at codevigilant with any bounty earned kept, coordination for one-off findings with credit in published advisories; project links: codevigilant.com, github.com/Codevigilant, facebook.com/Codevigilant, twitter.com/Codevigilant.
Notable Quotes
“With enough expert eyes all bugs are shallow”
“No commercials Source code review tools were harmed during the exercise.”
“Surface area is pretty small and its blackbox most of the time.”
“Focus on vulnerability type and not on individual plugin”
“Either build a lexical parser tokenize whole source code or play intelligent”
“If Content type is text/html XSS works”
“WordPress stand of FPD is clear so no point reporting it.”
“I don’t play name shame game hence no names here.”


















































