CSRF that makes any linkedin user follow attacker controlled accounts by simply clicking https://www.linkedin.com/comm/mynetwork/discovery-see-all/*
A CSRF vulnerability in a LinkedIn discovery page allowed an attacker to make any logged-in member follow an attacker-controlled account simply by clicking a crafted link, without any confirmation. The link used a publicly available user identifier to target the victim.
Originally disclosed on HackerOne
- Triaged in 27 hours
- Fixed in 4 months
- Paid in 5 days
- Disclosed after 7 months
Summary by the program
The researcher identified a CSRF issue which could potentially trick a member into following an account without additional confirmation by clicking a specially crafted URL.
Summary by the researcher
The PoC link was as follows -
https://www.linkedin.com/comm/mynetwork/discovery-see-all/?usecase=EMAIL_MIXED_RECOMMENDATIONS&entityUrn=urn:li:fs_DiscoveryEntity:(urn:li:member:<USER-ID>,PEOPLE_FOLLOW)&trk=eml-edge-discover&midToken=AQGOWzyQBc3Qug&midSig=0U3avif_ryOWI1&trkEmail=eml-email_edge_discover_01-recommended_edges-4-cta_pf-null-h3akrx~lgrx0iea~dl-null-neptune/mynetwork.discovery~see~all&lipi=urn:li:page:email_email_edge_discover_01;CJWMj7vwSYGntneNwUgFrQ==
Here <USER-ID> is the fsd_profile value that is publicly available. Using this crafted link it was possible to make any user on linkedin follow us once they click on it.
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 discovery endpoint performed a state-changing follow action on a GET request without a CSRF token or origin check.
What the attacker needed
Victim is logged in to LinkedIn; victim clicks the crafted link; attacker knows victim's public user ID
How it was found
- Obtain the victim's publicly available user identifier.
- Craft a URL to the discovery-see-all endpoint containing the victim's identifier and the follow action.
- Send the crafted URL to the victim.
- The victim clicks the link while logged in and follows the attacker's account without confirmation.
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.
A CSRF attack tricks your browser into performing an action you did not intend, such as following someone, just by visiting a link. Here, clicking the crafted link made the victim follow the attacker without confirmation.
What is CSRF?
Another site makes a signed-in user's browser perform an action they did not intend.