Bug Bounty Report August 18, 2021

HackerOne #6910 — CSRF Allowing Attacker to Remotely Change Any User's Area Code on Siklu

Source: HackerOne Report #6910

Vulnerability Summary

A CSRF vulnerability on siklu.com allowed an attacker to change any authenticated user's area code setting without their knowledge or consent. The vulnerability existed because the account settings endpoint lacked proper CSRF token validation.

Technical Details

The vulnerability was located in the user account settings page where users can modify their phone area code preferences. The form submission endpoint did not validate:

An attacker could craft a malicious webpage that, when visited by a logged-in Siklu user, automatically submits a request to change the user's area code to a value chosen by the attacker.

Impact

Remediation

The vulnerability was resolved by implementing proper CSRF protection:

  1. Added synchronizer CSRF tokens to all state-changing requests
  2. Implemented SameSite=Strict cookie attributes
  3. Added Origin and Referer header validation as a defense-in-depth measure

Key Takeaways for CSRF Defense