Skip to content
OAuth / SSO Disclosed report Intermediate

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.

akhil-reni Follow

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

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

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.

More by akhil-reni

View all

13 more disclosed reports, best first.

More from Shopify

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

OAuth and single sign-on flaws

The lesson behind this report.

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.