Хранимая XSS на странице "Виджет для авторизации"
A stored cross-site scripting vulnerability existed on the VK widget authorisation documentation page, where an attacker could create an application with a malicious name containing JavaScript. When a victim visited the page via browser history, the script executed, potentially allowing the attacker to run arbitrary code in the victim's browser.
- Triaged in 8 hours
- Fixed in 9 days
- Disclosed after 3 months
## Summary by the program
Self-XSS на странице документации виджета.
## Summary by the researcher
На счет того Self-XSS это или нет - оставляю на усмотрение общественности. Но лично мое мнение - команда vk тут все же ошибается.
Для эксплуатации уязвимости атакующий должен был:
Создать приложение с именем javascript:alert(1);//
Добавить атакуемого пользователя в администраторы приложения
Сделать атакуемого пользователя главным администратором
Уязвимость воспроизводилась, когда атакуемый попадал на страницу https://vk.com/dev/Login через историю. Например, пере�
одил на другой сайт (не важно какой), а затем нажимал в браузере кнопку "назад".
В �
оде исправления уязвимости она переродилась из �
ранимой в reflected и воспроизводилась при использовании этого url https://vk.com/dev.php?aid=6216706&method=Login&url=javas%03cript%3Aalert(1)%3B//
В �
оде дальнейши�
исправлений было найдено множество способов и�
обойти. Том числе использовались такие векторы:
https://vk.com/dev.php?aid=6216706&method=Login&url=Java%0aScript:alert(2)%3B//
https://vk.com/dev.php?aid=6216706&method=Login&url=%03JavaScript:alert(1)//
и менее опасный:
https://vk.com/dev.php?aid=6216706&method=Login&url=data:text/html,%3Cscript%3Ealert(1)%3B%3C/script%3ENot written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
What the attacker needed
Attacker can create an application; victim is added as admin of the app; victim visits page via history
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 report has not been written yet. The Original tab links to the source.
This report describes a stored cross-site scripting (XSS) flaw. In XSS, an attacker injects malicious code into a website, which then runs in the browsers of people who visit that page. Here, the attacker could name an application with JavaScript code, and when a victim navigated to a specific documentation page using the browser's back button, that code executed.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.