Giter Club home page Giter Club logo

netsec_assignment8's Introduction

Week 8 Assignment

Walkthrough

Blue

1.Session Hijacking: I loged in on one window and use developer tools to copy the session id. In another window, I useed the tool provided to change session id to the one copied from victim.

  1. SQL injection: In the url public/staff/salespeople/show.php?id=??, I injected the sql code ' or sleep (6)=0--' instead of the user id. This makes the page hold for 6 seconds because the database is paused for 6 seconds.

Green

  1. Username enumeration I tried using a correct username with a wrongpassword, and a incorrect name with wrong password. A correct username shows as bold while and incorrect username shows a a regular when trying to login. This reveals the valid usernames.

  2. XSS Script can be inserted in the feedback box of the contact us. I inserted a <IMG SRC=javascript:alert('XSS')> script. When log in as admin and check feedback the script runs showing an alert.

Red:

  1. IDOR The url public/salesperson.php?id=?? uses enumerated user ids. I kept trying different numbers until I got to id 10 which is supposed to be private. The developers believed that not giving a link to this user would be enough but they also should hava blocked access to this user information.

  2. CSRF I created an html page which tricks an admin into clicking submit. The html sends the action "https://35.184.88.145/red/public/staff/salespeople/edit.php?id=6" to modify the user information when the admin who is logged in clicks submit on my page. In my page I include hidden input tags to change first_name, last_name, phone, and email.

netsec_assignment8's People

Contributors

csc5nz avatar

Watchers

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