RatPanel can perform remote command execution without authorization
tnb-labs panel
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| github.com/tnborg/panel Go |
|
|
| github.com/TheTNB/panel Go |
|
tnb-labs panel
| Product | Affected | Fixed in |
|---|---|---|
| github.com/tnborg/panel Go |
|
|
| github.com/TheTNB/panel Go |
|
| No fix yet |
| github.com/TheTNB/panel/v2 Go |
| No fix yet |
| github.com/tnb-labs/panel Go |
|
|
RatPanel is a server operation and maintenance management panel. In versions 2.3.19 through 2.5.5, when an attacker obtains the backend login path of RatPanel (including but not limited to weak default paths, brute-force cracking, etc.), they can execute system commands or take over hosts managed by the panel without logging in. In addition to this remote code execution (RCE) vulnerability, the flawed code also leads to unauthorized access. RatPanel uses the CleanPath middleware provided by github.com/go-chi/chi package to clean URLs, but but the middleware does not process r.URL.Path, which can cause the paths to be misinterpreted. This is fixed in version 2.5.6.
From the CVE record · GitHub_M
RatPanel misinterprets URL paths because its CleanPath middleware does not process r.URL.Path. A remote attacker who obtains the backend login path can execute system commands, take over managed hosts, or gain unauthorized access without logging in; no user interaction is described.
Check deployments of RatPanel 2.3.19 through 2.5.5 and the affected Go packages github.com/tnborg/panel, github.com/TheTNB/panel, github.com/TheTNB/panel/v2, and github.com/tnb-labs/panel at the listed affected versions.