Attach Pinterest account - no State/CSRF parameter in Oauth Call back
The OAuth callback for attaching a Pinterest account lacked a state/CSRF parameter, so an attacker could link their own Pinterest account to a victim's profile. This would let the attacker monitor the victim's activities.
Originally disclosed on HackerOne
- Triaged in 34 hours
- Fixed in 2 days
- Paid in 15 days
- Disclosed after 15 days
Hello
There is no csrf protection for oauth call backs to attach a pinterest account. An attacker can escalate this to attach his account with the victims profile and monitor his activities.
Vulnerable URL: https://pinterest-commerce.shopifyapps.com/auth/pinterest/callback?code=fe373552c348b50000b4951184e86224ddde63c4
Vulnerable request:
GET /auth/pinterest/callback?code=fe373552c348b50000b4951184e86224ddde63c4 HTTP/1.1
Host: pinterest-commerce.shopifyapps.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:43.0) Gecko/20100101 Firefox/43.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Referer: https://www.pinterest.com
Cookie: <redacted>
Connection: keep-alive
Regards, WeSecureApp
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
Impact
An attacker could attach their own Pinterest account to a victim's profile and monitor the victim's activities.
What the attacker needed
Victim has a Pinterest account to attach
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.
When you connect two accounts, the website should use a secret code (called a state parameter) to make sure the request really came from you. Without it, an attacker can trick your browser into linking their account to yours. Then they can see what you do.
What is OAuth / SSO?
Mistakes in OAuth, OpenID Connect, SAML or token handling that leak codes and tokens or link an attacker's identity to a victim's account.