CSRF vulnerability allows disabling Gmail contacts link for user referrals
A user settings endpoint that disables a linked Google account accepted requests without verifying they were intentional, so a crafted page could trigger the action for a logged-in victim. An attacker could disable a victim's linked account by getting them to visit a malicious page.
- Triaged in 7 days
- Fixed in 17 months
- Paid in 14 months
- Disclosed after 3.1 years
##Summary:
#Hi team
when user add ==Referrals== to his account use https://crm.na1.insightly.com/users/referrals he will get id to his linked account so when he try to disable the linked account in ==CONNECTED APPLICATION SETTINGS== in the end point https://crm.na1.insightly.com/users/usersettings ==request== contain the id will be send https://crm.na1.insightly.com/Users/GoogleDisable/2023554 The vulnerable endpoint allows an authenticated user to change the email address associated with their account and ==Remove it==(disableit) However, it does not sufficiently verify that requests were intentionally performed by the user (e.g. by checking the values of HTTP headers a).
#Step's 1-First we need to account to confirm the issue account ==A== and ==B== 2-Go to https://crm.na1.insightly.com/users/referrals and add Google Referrals to both account's use two account's 3-Now the linked account will have two id not the same 4-From account ==A== Go to https://crm.na1.insightly.com/users/usersettingstry to disable the linked account and capitsher the request use ==Burp proxy== 5- Generate the POC use the Disable Request 6-when open the link from account ==B== the bug will be exploite
#Proof-of-Concept (PoC) This is the code used for the demonstration video attached to this report
<html>
<!-- CSRF PoC - generated by Burp Suite Professional -->
<body>
<script>history.pushState('', '', '/')</script>
<form action="https://crm.na1.insightly.com/Users/GoogleDisable/2026462">
<input type="hidden" name="_pjax" value="#main" />
<input type="submit" value="Submit request" />
</form>
</body>
</html>
when send the request the id will auto been change so victim linked account will be disabled
Impact
An attacker can exploit this vulnerability in order to disable account linked or take over accounts by associating them with an address controlled by the attacker, then performing a password reset. In order for the attack to be successful, the target user account must be associated with an unconfirmed email address, and the target user must visit an attacker-controlled website while logged in.
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 disable a victim's linked account, and the report also claims account takeover via password reset, though that requires an unconfirmed email address and the victim visiting an attacker-controlled site while logged in.
What the attacker needed
Victim logged in; victim visits attacker page
How it was found
- Create two accounts to confirm the issue.
- Add Google referrals to both accounts from the referrals page.
- Note that each linked account gets a different identifier.
- From one account, disable the linked account in user settings and capture the request with a proxy.
- Build a proof-of-concept page from the captured disable request.
- Open the page while logged in as the other account to trigger the bug.
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 log in to a website, your browser sends a small token (a cookie) with every request so the site knows who you are. If the site acts on a request without checking that you actually meant to send it, another website you visit can quietly make your browser send that request for you. Here, that let an attacker switch off a linked Google account on the victim's profile.
What is CSRF?
Another site makes a signed-in user's browser perform an action they did not intend.