Advisory

GHSA-p9xf-74xh-mhw5

Also known as: CVE-2023-37477, GO-2023-1940

Summary

1Panel command injection vulnerability in Firewall ip functionality

Details

Summary
An OS command injection vulnerability exists in 1Panel firewall functionality. A specially-crafted HTTP request can lead to arbitrary command execution. An attacker can make an authenticated HTTP request to trigger this vulnerability.

Details
1Panel firewall functionality /hosts/firewall/ip endpoint read user input without validation, the attacker extends the default functionality of the application, which execute system commands.

PoC
the payload ; sleep 3 # will lead server response in 3 seconds
image

the payload ; sleep 6 # will lead server response in 6 seconds
image

Impact
An attacker can execute arbitrary code on the target system, which can lead to a complete compromise of the system.

Patches

The vulnerability has been fixed in v1.4.3.

Workarounds

It is recommended to upgrade the version to v1.4.3.

References

If you have any questions or comments about this advisory:

Open an issue in https://github.com/1Panel-dev/1Panel
Email us at [email protected]

Severity

High Basis: The source's own band: HIGH

Dates

Published
2023-07-18 19:10 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

github.com/1Panel-dev/1Panel

Go · All systems

Affected

  • introduced 0, fixed 1.4.3 (semver)

Fixed versions

1.4.3

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences