Skip to content

Java Script vulnerability scanning tool, to use with Chrome developer console. Scans current site for common vulnerabilities. (Configurable)

Notifications You must be signed in to change notification settings

knightdoc/Chrome-Dev-Vulnerability-Scan-Tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

Chrome-Dev-Vulnerability-Scan-Tool

Java Script vulnerability scanning tool, to use with Chrome developer console. Scans current site for common vulnerabilities. (Configurable) This is a personal proof-of-concept and my first time working with JavaScript. The project is still a work in progress.

Notes This tool is read only and safe to use it does not modify page data or send requests. It runs entirely in browser and does not require any dependencies. Designed for manual inspection ideal for quick audits, CTFs, bug bounty triage, and dev review.

Web Security Scanner (JavaScript Console Tool)

This tool is a lightweight, JavaScript based cybersecurity scanner designed to be run directly from the DevTools Console in any modern browser. It helps developers and security professionals identify potential security risks and oversights in web applications—quickly and without installing anything.


##What It Does

The scanner performs the following checks on the current webpage:

Scans Included

  1. Global Variable Scan

    • Detects potentially sensitive variable names like token, key, password, auth, etc.
  2. Inline Script Comment Check

    • Identifies // and /* */ comments in inline <script> tags, which may leak development info or credentials.
  3. Dangerous Function Detection

    • Flags use of risky JavaScript methods such as:
      • eval()
      • Function()
      • setTimeout() / setInterval() with string input
      • document.write()
  4. Console Logging Detection

    • Finds leftover console.log(), console.debug(), console.warn() statements that could expose app behavior or user data.
  5. Sensitive Pattern Detection

    • Detects patterns matching:
      • JWT tokens
      • Base64-encoded data
      • IPv4 addresses
  6. jQuery Version Check

    • Identifies loaded jQuery versions and warns if the version is older than 3.5, which may contain known vulnerabilities.

Configuration

All checks can be toggled on/off via the scanConfig object at the top of the script:

##```javascript const scanConfig = { globalVarScan: true, scriptComments: true, dangerousFunctions: true, consoleLogs: true, detectTokens: true, detectBase64: true, detectIPs: true, checkJQueryVersion: true };


How to Use Open the webpage you want to audit in your browser

Open the DevTools Console:

Press F12 or Ctrl + Shift + I (Windows/Linux)

Press Cmd + Option + I (Mac)

Paste the entire script

Hit Enter and review the grouped results in the console

All findings will be color coded and organized using console.group().


v1.0.3 – Initial Release Console based security scanner All scan types fully configurable Inline and external script analysis No external dependencies


Planned for Future Versions Bookmarklet packaging Chrome extension version JSON/txt report export (if allowed) React/Angular/DOM framework detection CI/CD integration version for pipelines


MIT License © 2025 Use freely, modify respectfully

About

Java Script vulnerability scanning tool, to use with Chrome developer console. Scans current site for common vulnerabilities. (Configurable)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published