Mahdi Manaa

Published On: 07 Feb 2025

Unauthorized Access to User Profiles and Data Without Login

Other
Twitter | Web
---
LOW INFORMATIVE

Attempting to access X accounts without being logged in, users are prompted to log in before viewing profiles. However, by following specific steps, it is possible to access these profiles without logging in, indicating a potential security issue.

Description

When accessing a user’s profile (e.g., x.com/userexample) without being logged in, the profile briefly loads before the login prompt appears, blocking further access. During this brief moment, actions such as downloading the profile picture are possible. This indicates a potential issue with session handling or authentication flow, allowing unauthorized users to momentarily view and interact with profiles.

Impact

This issue lets unauthorized users view profiles and download pictures, bypassing access controls. It exposes sensitive data, weakens authentication, and creates significant security and privacy risks.




Reproduction Steps

Step
1

Access the user profile URL (e.g., x.com/userexample) without being logged in (Do not choose an account like x.com/elonmusk which is accessible without being logged in).

Step
2

Use a tool (I used Burp Suite) to intercept the HTTP requests.

Step
3

Manually control the requests, forwarding them one by one.

Step
4

As you forward the requests, the profile begins to load briefly before the login prompt appears.

Step
5

Once the profile is fully loaded, right-click on the profile picture and select "Save As."

Step
6

Continue forwarding the requests to complete the process.

Step
7

Successfully save the profile picture to your device without being logged in, highlighting a potential issue in the authentication flow.

Unauthorized Access to User Profiles and Data Without Login

This issue lets unauthorized users view profiles and download pictures, bypassing access controls that twitter implemented on non logged in users.

Timeline
.
Mahdi 05 Feb 2025

Manaa Reported to Twitter

.
Twitter 05 Feb 2025

HackerOne Thank you for your submission. I hope you are well. Your report is currently being reviewed and the HackerOne triage team will get back to you on ... See More

.
Twitter 05 Feb 2025

HackerOne Thank you for your report regarding the ability to briefly view and download profile pictures of protected x.com accounts before the login promp ... See More

INFORMATIVE