SSRF/XSPA в форме загрузки видео по URL
The video-by-URL upload form did not properly filter the supplied URL and placed no limit on the number of requests, so an attacker could make the server issue requests to arbitrary hosts. This allowed SSRF of the XSPA kind, including port scanning of remote hosts and of the loopback interface from Mail.ru servers.
- Fixed in 12 days
- Paid in 14 days
- Disclosed after 7 months
## Summary by the program
Недостаточная фильтрация URL и отсутствие ограничений по количеству запросов в форме загрузки видео по ссылке позволяет выполнить атаку SSRF типа XSPA, сканирование удаленны�
портов от серверов mail.ru (например, photo55.mail.ru), сканирование loopback и т.д.
Базовый запрос:
```
POST /dk?cmd=videoCommand&a=grabMovie HTTP/1.1
Host: ok.ru
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:39.0) Gecko/20100101 Firefox/39.0
Accept: application/json, text/javascript, */*; q=0.01
Accept-Language: ru-RU,ru;q=0.8,en-US;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
TKN: dFrdkb3Y0AiaauwIqGQ4sCyHgrQsROiT
X-Requested-With: XMLHttpRequest
Referer: http://ok.ru/video/top
Content-Length: 38
Cookie: COOKIES
link=URL
```Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
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.
The site lets you paste a link to a video and it fetches that link for you. Because it did not check where the link pointed, a user could make the site's own servers visit internal addresses and report back whether ports were open. This is called SSRF: tricking a server into making requests on your behalf.
What is DoS?
A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.