REDHAT-BUG-2526857: Medium severity Ericsson inets vulnerability
The modauth module in OTP's inets httpd server, when configured with dets or mnesia authentication backends and multiple directory configuration blocks, collapses all directory blocks into a single shared user/group namespace. A user added to one protected directory is accepted as valid for all other protected directories on the same server instance.
This issue affects OTP from OTP 17.0 before OTP 27.3.4.17, from OTP 28.0 before OTP 28.5.0.6, and from OTP 29.0 before OTP 29.0.6, corresponding to inets from 5.10 before 9.3.2.7, from 9.4 before 9.6.2.3, and from 9.7 before 9.7.2. Whether OTP before OTP 17.0, corresponding to inets before 5.10, is affected is unknown.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Erlang/OTPto a version that resolves this vulnerability.Fixed in 27.3.4.17 - Upgrade
Upgrade
Erlang/OTPto a version that resolves this vulnerability.Fixed in 28.5.0.6 - Upgrade
Upgrade
Erlang/OTPto a version that resolves this vulnerability.Fixed in 29.0.6
Event History
Frequently Asked Questions
Which deployments are exposed to this issue?
Deployments using OTP inets httpd with mod_auth configured with either dets or mnesia authentication backends and more than one directory configuration block are exposed. The issue concerns protected directories hosted by the same server instance.
What must an attacker have to gain access to another protected directory?
The attacker needs credentials for a user added to one protected directory. Due to the shared user/group namespace, that user may then be accepted for other protected directories on the same server instance.
Are all OTP and inets versions affected?
Affected ranges are OTP 17.0 through before 27.3.4.17, OTP 28.0 through before 28.5.0.6, and OTP 29.0 through before 29.0.6. The corresponding inets ranges are 5.10 through before 9.3.2.7, 9.4 through before 9.6.2.3, and 9.7 through before 9.7.2.2; whether earlier releases are affected is unknown.
How can administrators determine whether their configuration is affected?
Review the inets httpd configuration for mod_auth using dets or mnesia backends and multiple directory configuration blocks. If users are intended to be isolated by directory, test whether an account created for one protected directory is accepted by another directory on the same server instance.