Coder Social home page Coder Social logo

h1702_2018_web_challenge_pyscript's Introduction

h1702_2018_web_challenge

Python script used to automate the retrival of id of the flag

h1702-web challenge was quite interesting although I was not able to retrive the flag.

Take-aways from the challenge:

  • Inspect Source code.
  • Bruteforce directories.
  • Read the documention of the discovered service (if any).
  • Analyze the application behaviour.
  • Inspect and focus on the web headers.

Brief Summary of the challenge: -Browsing the IP address(http://159.203.178.9) of the challenge greeted us with a welcome page giving us a hint to bruteforce directory/pages.

-One page was identified http://159.203.178.9/README.html which contained documentation of the secure note service running. It provided valid JWT token of the user. Also readme page contained a hint of the 2nd version of the api in use which use to sort notes created on basis of their ID unlike its 1st version which used to sort on the basis of note's creation date.

-The JWT's library in the server suffered with a attack of using algorithm to sign JWT as "NONE". Thereby we could easily manipulate the id from 2 to 1 in JWT.

-User with id as 1 had a note with epoch 1528911533 was the flag for whoes ID was supposed to be retrived so that we could read the flag.

Automating the retrival of ID with a python script executing a linear search instead of a binary search(much easier).

Please note the First letter E was mannually found and hardcoded in the script for ease..

h1702_2018_web_challenge_pyscript's People

Contributors

tango-j avatar

Watchers

James Cloos 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.