GithubHelp home page GithubHelp logo

msa360 / cgs-chrome-ext Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 53 KB

chrome extension for csf gym reservation

JavaScript 91.02% HTML 8.98%
cegep-ste-foy cgs chrome-extension extension webbrowser csfoy cegep gym gym-website reservation-system

cgs-chrome-ext's Introduction

CGS chrome extension

Use CGS to override existing reservation of csfoy gym.

The CGS extension is based on an unpatched vulnerability of the csfoy gym website. The website uses an api to register gym reservations. Althought the server has some security checks before accepting the reservation, it contains a security hole allowing anyone to make a post request to the website's api and modify other reservations.

How It works?

The csfoy gym website uses php as its backend. It is easily detectable by the extension of its files or because of the generation of the PHPSESSIONID cookie. After analysing the requests made by the webpage when a reservation is updated, one can obsverve that their API is using a certain UserID. The vulnerability lies in this UserID. When a post request is made to the url to update a reservation, the post request needs to have a conected PHPSESSIONID cookie, and a form-data containing the reservation details (ex: time and day) and also the UserID. The time and day must be valid and one cannot include a time that is already outdated, so they are verified by the server. The UserID althought isn't verified. The server doesn't verify if the included UserID matches the UserID assoiated with the PHPSESSIONID cookie. So one can just put it's own UserID or another random UserID (ex: a number around 10 000).

cgs-chrome-ext's People

Contributors

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