About
## The problem it solves
## What We Built
Think of VulnScan as a security checkup for your code and your website. You give it a link, either to a live website or a GitHub repository, and it runs through a series of automated checks to find security problems. When it is done, it gives you a report that shows exactly what is wrong, how serious each problem is, and where to find it.
The system works from three different entry points so developers can scan from wherever they are working:
- **Web dashboard** - go to the website, paste a URL or GitHub link, get a report
- **Chrome extension** - browse to any GitHub repo and scan it directly from the browser toolbar without leaving the page
- **Pre-commit hook** - a script that runs automatically before every git commit and blocks it if it finds secrets like API keys or passwords in the code
All three connect to the same backend and produce the same style of risk report.
## Challenges we ran into
# Challenges
## NVD false positives
The dependency scanner originally queried the National Vulnerability Database using package names as keywords. NVD does full-text search across all CVE descriptions, so searching for the npm package `ai` returned IBM AIX OS vulnerabilities from 1999, and searching for `cors` returned unrelated PHP CVEs. A scan of OWASP Juice Shop produced 19 findings, most of them garbage.
Fixed by replacing NVD with the GitHub Advisory Database, which ties each advisory to an exact ecosystem and package name. The same scan returned 5 real findings after the switch.
---
## GitHub Advisory API parameter format
The initial integration assumed the `affects` parameter accepted `ecosystem/package-name` format (e.g. `npm/body-parser`). This returned zero results. The correct format is just the package name, with ecosystem filtering done client-side by checking the `vulnerabilities[].package` fields in each advisory response.
---
## Passport.js crashing on missing credentials
Adding GitHub OAuth caused the server to crash on startup with `OAuth2Strategy requires a clientID option` if `GITHUB_CLIENT_ID` was not set. The strategy was registered at module load time unconditionally. Fixed by wrapping the registration in a check for the environment variables so OAuth degrades gracefully when not configured.
---
## Stale server process masking fixes
After switching from NVD to GitHub Advisory, scans were still returning old false positives. Direct unit tests confirmed the new code was correct. The cause was a stale Node.js process from a previous session still holding port 3001, while the new server was silently crashing due to the passport issue above. The `end.sh` script was updated to kill any process holding the port rather than relying only on saved PIDs.
---
## MongoDB migration breaking the scan summary
The original store used a synchronous in-memory Map. After migrating to Mongoose, every store call became async. The non-obvious failure was in `buildSummary`, which was a synchronous function calling `getScan` without await. It received a Promise instead of the scan document and returned a summary of all zeros. The function had to be made async and awaited at the call site.
---
## XSS detection requiring an API key
XSS detection was originally handled entirely by Claude Haiku, making it conditional on having an Anthropic API key. Since XSS detection is a core requirement in the problem statement, a regex-based scanner was added that runs unconditionally. It covers `innerHTML` assignments, PHP echo of request parameters, jQuery `.html()` with variables, `eval()`, `dangerouslySetInnerHTML`, and Python `render_template_string`. Claude runs on top of this as an additional layer when the key is available.
Screenshots
Team
From the public Devfolio project page. Votes, swipes and the judge score are hackfeed's own.









