Brocade Fabric OS ≤ v8.0.2c rbash escape to read system files
The restricted shell (rbash) on Brocade Fabric OS allowed the grep command, which could be used with an empty pattern to read arbitrary system files. An authenticated attacker could read files such as /etc/group, depending on their privileges.
Broadcom offers a number of products and networking solutions such as switches, extensions etc. These products come with their own operating system, i.e. the Fabric OS.
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
Impact
An authenticated user could read system files they were not intended to access, with the extent depending on their privileges.
What the attacker needed
Authenticated access to the device; ability to log in via SSH or Telnet
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.
A restricted shell is a limited command-line environment that only lets you run certain commands. Here, the developers left the 'grep' command available, which is normally used to search text. By giving it an empty search pattern, it printed the entire contents of any file the user could access, bypassing the restriction.
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.