Skip to content
Info disclosure Disclosed report Beginner

Private account causes displayed through API

The API endpoint for user profiles returned the list of causes a user is interested in, even when the user had a private profile. Any authenticated user could retrieve this information for any other user, despite the privacy setting.

ech0re Follow

Originally disclosed on HackerOne

  • Triaged in 12 days
  • Fixed in 18 days
  • Disclosed after 31 days

Summary:

Any authenticated user can see which causes a private account user is interested in, by sending a GET request to the API, even though this information is not displayed anywhere on the profile page.

In the profile settings, the following message is displayed for "Private Supporter" option :
People will be able to find and request to follow you, but only followers you accept will be able to see which organizations you support.

Nothing is mentionned about the causes we're interested in, but as a private account, it would make sense to not disclose this information.

The fact that this information is not displayed on the web profile page makes me think that it is unintentional to send it as reponse to API requests from any user.

Steps To Reproduce:

To reproduce this issue, I simply sent an API GET request to /api/users/<user_id_or_username>

  1. On https://www.every.org/settings/profile page, submit the form by clicking on "Update" button and get the send request with all csrf and cookie headers
  2. The first line will be PATCH /api/me HTTP/1.1, simply modify this to GET /api/users/any_username and re-send the request (you do not need to keep the body json data)
  3. Read the API Json response, especially the "causes":[{"entityName":"Cause Follow","causeCategory":"SOME_CATEGORY"}] part

Example:

I have two accounts : https://www.every.org/@bug.hunter ([email protected]) - "Attacker" https://www.every.org/@bug.hunter3 ([email protected]) - PRIVATE profile

This is bug.hunter3 private profile, interested in "Education" cause :

causes.png
causes.png From the original on HackerOne

This is an API GET request sent with bug.hunter account CSRF-Token (no cookie needed) :

GET /api/users/bug.hunter3 HTTP/1.1
Host: www.every.org
User-Agent: Mozilla/5.0 (---------------------------------) Gecko/20100101 Firefox/74.0
Accept: */*
Accept-Language: fr,fr-FR;q=0.8,en-US;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate
Referer: https://www.every.org/settings/profile
Content-Type: application/json
X-CSRF-Token: <csrf_token_here>
Origin: https://www.every.org
Content-Length: 0
Connection: close
Cookie: 

This is the reponse body :

{
  "message": "Found user",
  "data": {
    "user": {
      "entityName": "User",
      "id": "e03bb4c9-c904-46d5-92db-59b235743690",
      "firstName": "bug",
      "lastName": "hunter3",
      "profileImageUrl": "",
      "username": "bug.hunter3",
      "locationAddress": "",
      "isPrivate": true,
      "followedByCurrentUserStatus": "none",
      "followingCurrentUserStatus": "none",
      "causes": [
        {
          "entityName": "Cause Follow",
          "causeCategory": "EDUCATION"
        }
      ]
    },
    "followInfo": {
      "entityName": "Follow Info",
      "userId": "e03bb4c9-c904-46d5-92db-59b235743690",
      "followerCount": 0,
      "followingCount": 0
    }
  }
}

As we can see, I was able to know that bug.hunter3 is interested in "Education" cause, even though it is a private profile and I am not following it.

Additional information:

Please note that bug.hunter2 ([email protected]) is also my account which wasn't of any use here. I created it to test another vulnerability.

PS: The link reference in top of this submit page does not redirect to your security page. Indeed, there is a link to https://hackerone.com/every_org while your security page is https://hackerone.com/everydotorg.

Do not hesitate to ask any information you would need and I'll be happy to help.

Impact

Following cause category information disclosure of any account (even private account that we do not follow).

The original report as published on HackerOne, by ech0re. 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 API endpoint did not check the target user's privacy setting before including the causes field in the response.

Impact

Any authenticated user could learn which causes any other user, including private accounts, is interested in, even without following them.

What the attacker needed

An authenticated account; knowledge of the target username

How it was found

  1. On the profile settings page, submit the form and capture the outgoing request with its CSRF and cookie headers.
  2. Change the request method and path from PATCH /api/me to GET /api/users/any_username, keeping the CSRF token.
  3. Send the modified request and read the JSON response, noting the causes array.

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 private profile is meant to hide certain details from strangers. Here, the website's API (the interface apps use to talk to the server) still sent back the list of causes the user supported, even though the profile was set to private. Anyone with an account could ask for that data and see it.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More from Staging.every.org

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.