Arbitrary code execution in CraftBeerPi 4
PiBrewing CraftBeerPi 4 · CraftBeerPi - Brewing Controller CraftBeerPi 4
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| PiBrewing CraftBeerPi 4 |
| No fix yet |
| CraftBeerPi - Brewing Controller CraftBeerPi 4 |
| No fix yet |
Original description
URL GET parameter "logtime" utilized within the "downloadlog" function from "cbpi/http_endpoints/http_system.py" is subsequently passed to the "os.system" function in "cbpi/controller/system_controller.py" without prior validation allowing to execute arbitrary code.This issue affects CraftBeerPi 4: from 4.0.0.58 (commit 563fae9) before 4.4.1.a1 (commit 57572c7).