Skip to content
DoS Disclosed report Beginner

Assigning a non-existing role to user causes exception when opening project page

A user with permission to approve access requests could assign a role value that does not exist by tampering with the role dropdown. When the requesting user later opened the project, the application threw an uncaught exception because it could not recognise the role.

jackds Follow

Originally disclosed on HackerOne

  • Fixed in 7 hours
  • Disclosed after 39 hours

Reproduction:

  • Create a new private project
  • Log in as another user and go the the newly create project page. Request access there.
  • Switch back to original user and check pending requests.
  • At this point I was able to assign a non-existing role (I changed the dropdown list and chose 10 as value). Grant user access then.
  • Log in again a the user that requested access. The dashboard indicates that the request was accepted.
  • Click on the project. The following error is given:

Fatal error: Uncaught exception 'Exception' with message 'Unknown role 10' in /var/www/vhosts/lvps178-77-99-228.dedicated.hosteurope.de/httpdocs_localize/classes/Repository.php:358 Stack trace: #0 /var/www/vhosts/lvps178-77-99-228.dedicated.hosteurope.de/httpdocs_localize/classes/UI.php(1136): RepositoryPermissions->isInvitationMissing() #1 /var/www/vhosts/lvps178-77-99-228.dedicated.hosteurope.de/httpdocs_localize/classes/UI.php(204): UI::getPage_Project(Array, Array) #2 /var/www/vhosts/lvps178-77-99-228.dedicated.hosteurope.de/httpdocs_localize/classes/UI.php(179): UI::findPage(6, Array, Array) #3 /var/www/vhosts/lvps178-77-99-228.dedicated.hosteurope.de/httpdocs_localize/index.php(158): UI::getPage(6) #4 {main} thrown in /var/www/vhosts/lvps178-77-99-228.dedicated.hosteurope.de/httpdocs_localize/classes/Repository.php on line 358

The original report as published on HackerOne, by jackds. 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 server trusted the role value sent by the browser without validating that it matched a known role.

Impact

The affected user could not open the project because the page crashed with a fatal error; the text does not show any wider impact.

What the attacker needed

A private project; two user accounts; ability to approve access requests

How it was found

  1. Create a new private project.
  2. Log in as another user, open the project page and request access.
  3. Switch back to the original user and open the pending requests.
  4. Change the role dropdown value to a non-existing number and grant access.
  5. Log in as the requesting user and click on the project.
  6. Observe the fatal error about an unknown role.

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.

An administrator approving a request can submit a role value that does not exist by altering the dropdown. The project page then crashes when it tries to use that role.

What is DoS?

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.

More by jackds

View all

6 more disclosed reports, best first.

More from Localize

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Denial of service

The lesson behind this report.

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.