Coder Social home page Coder Social logo

commentdump's Introduction

Rationale

Over many years of penetration testing web applications, I have noticed that comments are likely to contain sensitive information. Comments can contain hardcoded credentials, references to internal systems and identifiers, references to sensitive or deprecated functionality, information about the developpers, etc. It can be rather time consuming to go through all the sources of a web application manually, and it may be more difficult to detect patterns when analysis is spread out over multiple pages. This tool exists to allow analysts to quickly profile a web application's comments with just 1 click. Based on the content and verbosity of the comments, analysts can quickly determine if the target application is more likely to contain additional vulnerabilities. In some scenarios, the tool may identify information disclosure vulnerabilities without further effort. Finally, the ability to identify interesting keywords was added to assist testers with rapid identification of potential attack vectors during initial content discovery phase.

This tool will have additonal functionality added periodically

CommentDump V3

This is a tool I developed to assist with web application penetration testing. The tool is a browser extension that works in chromium based browsers (chrome, edge, opera, etc.) The tool allows the analyst to rapidly browse through all comments from the current page and loaded resource files by isolating them and dumping the output to the developer console. The tool uses regular expression to identify comments in all formats (inline, multi-line, etc.) and provides the location of the source file for easy reference. Finally, the tool includes a built-in list of "interesting" keywords that will be highlighted if detected in a comment. The built-in list can be overridden with custom keywords by supplying a comma separated list to the input box and clicking extract.

CommentDump Screenshot

Installation

  1. git clone https://github.com/PN-Tester/commentDump/
  2. In chrome, navigate to chrome://extensions
  3. select the "Developer mode" switch in the upper right-hand corner
  4. Select "Load unpacked" button which appears in upper left-hand corner
  5. Select the commentDump folder and hit enter

Usage

  1. Open developer tools window and navigate to "console". This is where output from the extension goes.
  2. Click the extension icon to open extension pop-up
  3. Optionally, enter a comma separated list of keywords to detect in the box labelled "Enter Keywords". Leaving this blank will use default list.
  4. Click "extract". Console window is automatically cleared before results appear.

commentdump's People

Contributors

pn-tester avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.