Coder Social home page Coder Social logo

servicenow's Introduction

ServiceNow Widget-Simple-List Misconfiguration Scanner

Overview

This tool scans for misconfigurations in the ServiceNow widget-simple-list plugin. It checks whether the target instance is vulnerable to data exposure risks due to misconfigured settings.

Important Note

For an in-depth understanding of the attack technique and exploitation, consult the technical details available here.

Pre-requisites

  • Python 3.x
  • Required Python libraries: requests

You can install the required libraries using pip:

pip install requests

Usage

  1. Clone the repository to your local machine.
  2. Navigate to the directory containing servicescan.py.
  3. Choose one of the following methods to run the script using Python 3:

Method 1: Single URL

python3 servicescan.py --url https://redacted.service-now.com

Method 2: Multiple URLs from a File

python3 servicescan.py --file urls.txt

Fast-Check Option

Perform a fast check that only scans for the table kb_knowledge using the --fast-check argument:

python3 servicescan.py --url https://redacted.service-now.com --fast-check

Using a Proxy

To use a proxy server, use the --proxy option:

python3 servicescan.py --url https://redacted.service-now.com --proxy http://host:port

Example Output

If the target instance is found to be vulnerable, you'll receive an output similar to the following:

https://redacted.service-now.com/api/now/sp/widget/widget-simple-list?t=incident is EXPOSED, found at least 167 items
https://redacted.service-now.com/api/now/sp/widget/widget-simple-list?t=oauth_entity is EXPOSED, found at least 3 items
Headers to forge requests:
X-UserToken: 76a458ffdbf5[REDACTED]0c02ba13393b764
Cookie: JSESSIONID=7EB7[REDACTED]B5D07E; glide_user_route=glide.4884750d[REDACTED]ca0436e4; glide_node_id_for_js=3143935013eaa5a1e[REDACTED]8a698b419c40837dfce63002d5;

Note: A table may be public but not necessarily expose sensitive information. Always verify that the disclosed data is indeed confidential before taking any action.

Credits and Contributors

  • Aaron Costello - Researcher who provided the technical details and exploitation method. Website
  • bsysop - Tool Creator
  • Aaron Ringo - Code Refactor and implementation of --proxy and --file implementations
  • Nathan Sanders - Filtering improvement to detect accurate leaking data
  • Daniel Müller - Implemented requests without the X-UserToken header.

Disclaimer

This tool is intended for educational and ethical testing purposes only. The authors are not responsible for any misuse or damage caused by this tool.

servicenow's People

Contributors

aringo-bf avatar bsysop avatar chdanielmueller avatar pysanders avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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.