Skip to content
Business logic Disclosed report Beginner

Drivers can change profile picture

The Uber Rider app allows a user with driver credentials to change their profile picture even though drivers should not be able to do so. An attacker could set an inappropriate image as their driver profile picture.

rohk Follow

Originally disclosed on HackerOne

Bounty$500 View original
  • Triaged in 10 hours
  • Fixed in 2 months
  • Paid in 3 months
  • Disclosed after 6 months

Riders are able to change their profile picture whenever they want and they should be allowed to either way.

When a rider becomes a driver they should not be able to change their profile picture due to the fact they can change their pictures to something inappropriate.

Replicate: Login into the Uber Rider app with your driver information (which should be the same as rider either way) Go to Settings Edit Account (Put in password) Change Photo - Press Save An error will occur saying "Failed to update account details" but the new picture will be applied

The original report as published on HackerOne, by rohk. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

The original is short, so this covers everything it reports, then explains this kind of bug in general: how it works, how to test for it and how it is fixed. The general sections are about the bug class, not this target. Written with AI and checked against the original; the original is the record. 5 min read.

What the report shows

The target is the Uber Rider app, and the feature in question is the profile picture. Riders are allowed to change their profile picture whenever they want, and the report opens by saying that this is fine. The problem appears when a rider becomes a driver: at that point the account should no longer be able to change its own picture, because a driver could set something inappropriate as the image shown to riders.

The researcher, rohk, found that the restriction was not actually enforced. Logging into the Rider app with driver credentials, which the report says are the same as the rider credentials, the picture could still be changed. The report gives these steps to replicate it:

  1. Log into the Uber Rider app with your driver information (which should be the same as rider either way).
  2. Go to Settings.
  3. Edit Account (put in password).
  4. Change Photo, then press Save.

On the final step an error appears saying "Failed to update account details", but the new picture is applied anyway. The error message appears even though the new picture is applied.

The report records a bounty of 500.00 USD. It does not give a severity rating or a CVSS score, and it does not describe how the issue was fixed.

Root cause

The report does not state a cause; the restriction on driver accounts was simply not enforced. The rider-facing flow is permitted to change the picture, and the same flow apparently keeps working after the account gains driver status, .

The error message is a second, related signal. The client shows "Failed to update account details" while the picture is saved, .

Impact

The report frames the impact in terms of content: a driver can set a profile picture to something inappropriate, and that picture is what riders see. The practical effect is that a driver can still change the profile picture.

How this kind of bug works

This is a broken function-level authorisation problem, sometimes called a missing role check. An application often has several roles on the same account, for example a user who is also a driver, a seller, a moderator or a staff member. Each role carries its own rules about which fields may be edited. When the rules are applied in the client, or only on one of the entry points, a user who holds a more restricted role can still reach the unrestricted path.

The typical pattern is that the same backend endpoint serves several front ends. The rider app, the driver app and the web portal may all call the same account update handler. If the handler trusts a role or context value supplied by the client, or simply does not look at the role at all, the restriction disappears. A second common pattern is a check that runs after the database write, so the request is rejected in the response but the change is already committed.

Defences are straightforward in principle: enforce the rule on the server for every request, derive the role from the authenticated session rather than from client input, validate before writing, and make the write and the validation part of the same transaction so a rejected request leaves no trace.

How to test for it

  1. Map the roles. Create or obtain accounts in each role the application supports, including accounts that hold more than one role at once, since the interesting cases are usually the transitions.
  2. Identify the profile and settings endpoints. Use a proxy to capture every request made while editing account details, including the picture upload, the save action and any password confirmation step.
  3. Compare across roles. Replay the request captured from the less restricted role using the session of the more restricted one. Change only the session credential, keeping the body, path and method identical.
  4. Look at the response and the state. A positive result is not just a success status: reload the profile in a separate session and confirm the change persisted. Always verify the stored state rather than trusting the response.
  5. Try the reverse direction too. Fields that a driver may edit but a rider may not are equally worth testing, as are transitions such as upgrading, downgrading or having a role removed.

Common false positives: the client shows a cached or optimistic value that is not actually stored; the change is accepted but reverted by a background job; the endpoint returns success but silently ignores the field; or the account used for testing was never actually in the restricted role. Confirm each of these by re-reading the state from the server.

How it is fixed

The standard fix is a server-side authorisation check on the account update handler that derives the caller's role from the session and rejects changes to fields the role may not edit. The check must run before the write, and the write should be transactional so a failure leaves nothing behind. Client-side hiding of the edit control is not a fix on its own. Error handling should also be corrected so the client does not report failure for a change that succeeded, or success for one that did not.

Hunting notes

Role-transition features are where this bug class tends to hide: onboarding flows, upgrade and downgrade paths, multi-role accounts, and any product where one app serves several user types. Settings pages that require a password confirmation are worth attention, because the confirmation suggests the developers knew the action was sensitive and may have relied on it instead of a role check.

Recon signals include a single account endpoint referenced by several clients, role or context parameters in request bodies, and error messages that do not match the resulting state. Capturing the same action from two apps and diffing the requests often reveals a shared handler.

To make the report land, show the before and after state from the server, name the role that should have been blocked, and keep the reproduction minimal. Where the impact is content-related rather than data-related, say so plainly and avoid overstating it.

The original is short, so this covers everything it reports, then explains this kind of bug in general: how it works, how to test for it and how it is fixed. The general sections are about the bug class, not this target. Written with AI and checked against the original; the original is the record. 7 min read.

What happened, in plain words

Uber has a Rider app, used by people who order rides. The same person can hold both roles on one account, and the report says the login details are the same for both.

Every account has a profile picture, the small image shown next to your name. Riders are free to change theirs whenever they like, and the report says that is fine. Drivers are different: once a rider becomes a driver, the account should no longer be able to change its own picture, because a driver could upload something inappropriate and that image is what riders would see. This is a policy rule, a bit like a company saying that only certain staff may edit the photo on a public staff directory.

The researcher, rohk, found that the rule was not actually enforced. Logging into the Rider app with driver credentials, the picture could still be changed. The report gives these steps to reproduce it:

  1. Log into the Uber Rider app with your driver information (which should be the same as rider either way).
  2. Go to Settings.
  3. Edit Account (put in password).
  4. Change Photo, then press Save.

On the last step something odd happens: an error appears saying "Failed to update account details", but the new picture is applied anyway. The app tells you the change failed, but the new picture is applied anyway.

The report records a bounty of 500.00 USD. It gives no severity rating or CVSS score, and it does not describe how the issue was fixed.

Why it works

The report does not state a cause; the restriction on driver accounts was simply not enforced. The rider flow is allowed to change the picture, and that same flow apparently keeps working after the account gains driver status.

It helps to picture how a mobile app talks to a company's computers. When you tap Save, the app sends a request, a message over the internet asking the server to do something, here to store your new picture. The server decides whether to obey. If the app merely hides a button, the request can still be sent by other means, and the server has no idea it should have said no. That is the difference between a lock on the door and a sign saying "do not enter".

The error message is a second, related signal. The app shows "Failed to update account details" while the picture is saved, .

Impact

The report frames the impact in terms of content: a driver can set a profile picture to something inappropriate, and that picture is what riders see. The practical effect is that a driver can still change the profile picture.

In general, how this kind of bug works

This is a broken function-level authorisation problem, sometimes called a missing role check. Authorisation means deciding whether a logged-in user is allowed to do a particular thing; a role is the label that says what kind of user they are, such as rider, driver, seller, moderator or staff member. Each role carries its own rules about which fields may be edited.

When the rules are applied in the app, or only on one of the entry points, a user who holds a more restricted role can still reach the unrestricted path. The typical pattern is that the same server endpoint, a specific address that accepts a particular kind of request, serves several front ends. The rider app, the driver app and the web portal may all call the same account update handler. If the handler trusts a role or context value supplied by the app, or simply does not look at the role at all, the restriction disappears. A second common pattern is a check that runs after the database write, so the request is rejected in the reply but the change is already committed.

Defences are straightforward in principle: enforce the rule on the server for every request, derive the role from the authenticated session rather than from client input, validate before writing, and make the write and the validation part of the same transaction so a rejected request leaves no trace. A session is the server's memory of who you are after you log in; a transaction is a group of database changes that either all happen or none do, like a bank transfer that must debit one account and credit another together.

In general, how to test for it

  1. Map the roles. Create or obtain accounts in each role the application supports, including accounts that hold more than one role at once, since the interesting cases are usually the transitions.
  2. Identify the profile and settings endpoints. Use a proxy, a tool that sits between your browser or app and the server and records every message, to capture every request made while editing account details, including the picture upload, the save action and any password confirmation step.
  3. Compare across roles. Replay the request captured from the less restricted role using the session of the more restricted one. Change only the session credential, keeping the body, path and method identical.
  4. Look at the response and the state. A positive result is not just a success status: reload the profile in a separate session and confirm the change persisted. Always verify the stored state rather than trusting the reply.
  5. Try the reverse direction too. Fields that a driver may edit but a rider may not are equally worth testing, as are transitions such as upgrading, downgrading or having a role removed.

Common false positives: the app shows a cached or optimistic value that is not actually stored; the change is accepted but reverted by a background job; the endpoint returns success but silently ignores the field; or the account used for testing was never actually in the restricted role. Confirm each of these by re-reading the state from the server.

In general, how it is fixed

The standard fix is a server-side authorisation check on the account update handler that derives the caller's role from the session and rejects changes to fields the role may not edit. The check must run before the write, and the write should be transactional so a failure leaves nothing behind. Hiding the edit control in the app is not a fix on its own. Error handling should also be corrected so the app does not report failure for a change that succeeded, or success for one that did not.

In general, where to look

Role-transition features are where this bug class tends to hide: onboarding flows, upgrade and downgrade paths, multi-role accounts, and any product where one app serves several user types. Settings pages that require a password confirmation are worth attention, because the confirmation suggests the developers knew the action was sensitive and may have relied on it instead of a role check.

Recon signals include a single account endpoint referenced by several clients, role or context parameters in request bodies, and error messages that do not match the resulting state. Capturing the same action from two apps and comparing the requests often reveals a shared handler.

To make the report land, show the before and after state from the server, name the role that should have been blocked, and keep the reproduction minimal. Where the impact is content-related rather than data-related, say so plainly and avoid overstating it.

Glossary

  • Authorisation: the decision about whether a logged-in user is allowed to perform a particular action.
  • Role: a label describing what kind of user an account is, such as rider or driver, which carries its own permissions.
  • Role check: code that verifies the user's role before allowing an action.
  • Broken function-level authorisation: a flaw where a function or endpoint does not properly check whether the caller may use it.
  • Endpoint: a specific address on a server that accepts a particular kind of request.
  • Request: a message sent by an app or browser to a server asking it to do something.
  • Response: the server's reply to a request.
  • Session: the server's record of who you are after you log in, usually referenced by a cookie or token.
  • Cookie: a small piece of data a site stores in your browser and sends back with later requests.
  • Token: a value used to prove identity or permission, often sent with requests.
  • Client: the app or browser on the user's side, as opposed to the server.
  • Server side: logic that runs on the company's computers, where checks cannot be bypassed by editing the app.
  • Transaction: a group of database changes that either all succeed or all fail together.
  • Proxy: a tool that sits between your app or browser and the server and records the messages passing through.
  • Replay: resending a captured request, possibly with a different session, to see how the server responds.
  • False positive: a finding that looks like a bug but is not, because the real state or behaviour differs from what first appeared.
  • CVSS: a standard scoring system for rating the severity of a vulnerability.
  • Bounty: a payment made by a company to a researcher who reports a valid security issue.

More by rohk

View all

4 more disclosed reports, best first.

More from Uber

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.