Giter Club home page Giter Club logo

angular-xss's Introduction

Cross Site Scripting

  • Step 1: Open terminal and switch to project directory
cd /root/angular-xss/xss
  • Step 2: Build the docker images for both frontend and the API
docker-compose build
  • Step 3: Start the app
docker-compose up -d
  • Step 4: Access the app on http://<your-server-ip>:4200

Note: To fetch server ip type in serverip in the terminal

  • Step 5: Signup as an admin, Enter some random email id and password, also enable the Signup as an admin checkbox

  • Step 6: Now it's time to login as an Admin, While logging in as an Admin enable Signin as an admin flag

  • Step 7: After successful login you should see Add New Movies option in the Navigation bar

  • Step 8: Now create some movies using that option

  • Step 9: While creating a new movies entry in the Movie Link input you can add an XSS payload like javascript:alert("Hacked!")

  • Step 10: If you are successful in creating the movie now access the Movies tab

  • Step 11: Now click on the Click Here button to see an attack taking place, This should pop up with an alert box stating that it is Hacked!

  • Step 12: You can repeat from Step 9 this time you try with a different payload like javascript:alert(window.localStorage.getItem('token'))

  • Step 13: If you are successful in the attack then you should see an alert box with a JWT token value.

Teardown

  • Step 1: Switch to project directory
cd /root/angular-xss/xss
  • Step 2: Bring down the app
docker-compose down

angular-xss's People

Contributors

sumgang45 avatar

Watchers

Abhay Bhargav 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.