Skip to content
Commit 6f7736c4 authored by Jo-Philipp Wich's avatar Jo-Philipp Wich
Browse files

luci-mod-system: prevent comment injection in mtdbackup endpoint

Rework the parameter handling to both prevent a crash when no parameter is
given and to prevent root command injection through the mtd index part of
the parameter value.

Fixes: 9840d310

 ("modules: add backup module for mtdblock devices")
Signed-off-by: default avatarJo-Philipp Wich <jo@mein.io>
parent aa2e0e24
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment