Skip to content
Access control Write-up Intermediate

Unauthorized Privilege Escalation: Gaining Command Line Access on

A technician with permissions on one company's devices could add an end user to a device belonging to a different company by changing the device identifier in the request. This granted the end user command-line access to the other company's device, bypassing the intended isolation between companies.

Sp1der0x Follow

Published on sp1der0x.medium.com

بِسْ� ِ اللهِ الرَّحْ� َنِ الرَّحِي� ِ، الْحَ� ْدُ لِلَّهِ الَّذِي هَدَانَا لِهَذَا وَ� َا كُنَّا لِنَهْتَدِيَ لَوْلَا أَنْ هَدَانَا اللهُ، وَالصَّلَاةُ وَالسَّلَا� ُ عَلَى خَيْرِ خَلْقِ اللهِ � ُحَ� َّدِ بْنِ عَبْدِ اللهِ، الَّذِي بُعِثَ لِيُتَ� ِّ� َ � َكَارِ� َ الْأَخْلَاقِ وَلِيُعَلِّ� َنَا سَبِيلَ الْحِكْ� َةِ وَالتَّقْوَى.…

Sp1der0x, on sp1der0x.medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the server did not verify that the device identifier in the request belonged to the same company as the technician, allowing cross-company device access.

Impact

A technician could gain command-line access to devices in another company, breaking the isolation between companies.

What the attacker needed

Technician account with device permissions; Two companies with separate devices; Ability to intercept and modify requests

How it was found

  1. Create an end user in Company 1 with command-line permissions on a device.
  2. Intercept the request that assigns the end user to the device, which contains a device identifier.
  3. Replace the Company 1 device identifier with a device identifier from Company 2.
  4. Send the modified request; the system accepts it and grants the end user command-line access to the Company 2 device.

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 write-up has not been written yet. The Original tab links to the source.

In this system, a technician is a user who manages devices for one company. The system failed to check that the device being modified actually belonged to that company. By changing a number in the request, the technician could give someone command-line access to a device in a different company.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More by Sp1der0x

View all

1 more disclosed report, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.