Skip to content
XSS Disclosed report Intermediate

Хранимая 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.

abr1k0s Follow

Originally disclosed on HackerOne

  • 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%3E

The original report as published on HackerOne, by abr1k0s. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not 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.

More by abr1k0s

View all

4 more disclosed reports, best first.

More from VK.com

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.