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.
بِسْ� ِ اللهِ الرَّحْ� َنِ الرَّحِي� ِ، الْحَ� ْدُ لِلَّهِ الَّذِي هَدَانَا لِهَذَا وَ� َا كُنَّا لِنَهْتَدِيَ لَوْلَا أَنْ هَدَانَا اللهُ، وَالصَّلَاةُ وَالسَّلَا� ُ عَلَى خَيْرِ خَلْقِ اللهِ � ُحَ� َّدِ بْنِ عَبْدِ اللهِ، الَّذِي بُعِثَ لِيُتَ� ِّ� َ � َكَارِ� َ الْأَخْلَاقِ وَلِيُعَلِّ� َنَا سَبِيلَ الْحِكْ� َةِ وَالتَّقْوَى.…
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
- Create an end user in Company 1 with command-line permissions on a device.
- Intercept the request that assigns the end user to the device, which contains a device identifier.
- Replace the Company 1 device identifier with a device identifier from Company 2.
- 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.