Skip to content
Access control Disclosed report Intermediate

Insecure Invitation Link Handling

The invitation sign-up flow did not check that the email address accepting an invitation matched the address the link was sent to. An attacker could change the email in the sign-up request to any address, even one they did not own, and end up logged in as that address while skipping email verification.

h4xk_403 Follow

Originally disclosed on HackerOne

Medium 5.3 View original
  • Triaged in 12 days
  • Fixed in 4 months
  • Disclosed after 4 months

Summary:

This report outlines a critical security vulnerability in the invitation link handling process of ''satismeter.com''. The issue allows unauthorized users to join an organization using invitation links sent to different email addresses. If exploited, this vulnerability can lead to unauthorized access, privilege escalation, data breaches, and other severe impacts. Vulnerability Details Description The invitation system is designed to send unique links to specific email addresses, allowing them to join an organization. However, it was discovered that these links can be used by email addresses other than the intended recipients. This flaw occurs because the system does not adequately verify that the email address using the invitation link matches the email address to which the link was sent.

NOTE: when you want to create account it will ask for email verification, but in the scenario described down i was able to bypass verification process

Steps To Reproduce:

1-victim send an invitation to attacker 2-in attacker mailbox click on the invite you had received 3-turn on burp 4-set up your password and turn the interception on 5- click signup and go to burp forward the request till you reach POST /graphql HTTP/2 with body

{"operationName":"SignUp","variables":{"input":{"email":"[email protected]","link":null,"password":"wxxxxxxx","source":"invitation"}},"query":"mutation SignUp($input: SignUpInput!) {\n  auth {\n    signUp(input: $input)\n    __typename\n  }\n}"}

6-in the email parameter change the email to any email you want even one you don't own and finish signup process and you are now logged in with email that doesn't belong to you and have bypassed email verification

Supporting Material/References:

  • [attachment / reference]

F3410870

Recommendations Immediate Actions Token Validation: Ensure that the invitation link token is cryptographically tied to the specific email address. The token should include the email address and a unique identifier. Email Address Verification: Verify that the email address of the user attempting to accept the invitation matches the email address associated with the token. Multi-Factor Authentication: For high-privilege roles, require additional verification steps, such as a one-time password (OTP) sent to the invited email address. Long-term Enhancements Single-Use Tokens: Ensure that tokens are single-use and invalidate them after they are used. Link Expiration: Set an expiration time for invitation links to limit their validity period.

Impact

Potential Risks Unauthorized Access: Unauthorized users can join the organization and gain access to sensitive information. Privilege Escalation: If the invitation grants high-privilege roles (e.g., owner), unauthorized users can perform actions restricted to these roles, potentially compromising the entire system. Data Breach: Confidential and sensitive data may be exposed, leading to data breaches and loss of proprietary information. Operational Disruption: Unauthorized changes to configurations, deletion of data, or disruption of services can impact business operations. Email verification bypass.

Attachments

bandicam_2024-07-04_13-40-31-849.mp4 From the original on HackerOne

The original report as published on HackerOne, by h4xk_403. 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 sign-up mutation trusted the email supplied by the client and did not tie the invitation token to the invited address or re-check ownership of the new address.

Impact

An unauthorised person could join an organisation through an invitation meant for someone else, potentially gaining whatever role the invite granted, and could bypass email verification.

What the attacker needed

Victim sends an invite to the attacker; attacker can intercept their own requests; attacker has a valid invitation link

The fix

The invitation token should be cryptographically tied to the invited email address and the server should verify that the address accepting it matches, with single-use and expiring tokens.

How it was found

  1. The victim sends an invitation to the attacker's email address.
  2. The attacker opens the invitation link from their mailbox.
  3. The attacker turns on an intercepting proxy.
  4. The attacker sets a password and enables interception before submitting the sign-up form.
  5. The attacker forwards the sign-up request until the GraphQL sign-up call is captured.
  6. The attacker changes the email in the request to any address, even one they do not own, and completes sign-up, ending up logged in as that address without email verification.

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 a company invites someone by email, the link should only work for that person. Here the site never checked that the person finishing sign-up was using the invited email address. So someone could swap in a different email, even one they do not control, and still get an account inside the organisation without proving they own that address.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More by h4xk_403

View all

1 more disclosed report, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.