I Hacked FIDE.com — Call me Hacknus Carlsen!
The rating calculations page reflected unsanitised user input from the id_number parameter, allowing an attacker to inject a script that executed in a victim's browser. An attacker could run arbitrary JavaScript in the context of the FIDE site, potentially stealing data or defacing pages.
medium.com
Published on medium.com
As a chess player, I have faced all kinds of pain — blundering my queen, losing to a 900-rated player, and watching my online chess rating drop. But instead of breaking my keyboard in frustration, I decided to take revenge differently — by hacking FIDE.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the id_number parameter was reflected into the page without output encoding or input filtering.
Impact
An attacker could run harmful scripts in users' browsers, with risks of data theft, scams, and site defacement.
What the attacker needed
Victim clicks a crafted link
The fix
The site was fixed by properly filtering user input and using secure coding practices.
How it was found
- Open the rating calculations page with an id_number parameter.
- Put a crafted value in the id_number parameter that closes the existing HTML and adds a script.
- Load the URL and observe the script executing as a pop-up.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
Cross-site scripting (XSS) is when a website takes something a user typed or put in a link and shows it back on the page without cleaning it first. If that input contains code, the browser runs it as if the website itself had written it. Here, a crafted link made a pop-up appear, which shows an attacker could run their own code in someone else's browser.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.