luci-proto-wireguard: fixed a vulnerability in the checkPeerHost method
authorTom Haley <[email protected]>
Wed, 4 Dec 2024 19:19:25 +0000 (22:19 +0300)
committerPaul Donald <[email protected]>
Thu, 5 Dec 2024 17:13:59 +0000 (18:13 +0100)
commitff6460ccf122358e97ecb7e2c4abb7740d4f626c
treeac0484598db9183a22dbd871848c2fa4c4fed216
parent987bb6597c3f3378a0a9dc87f2c15426ed858eed
luci-proto-wireguard: fixed a vulnerability in the checkPeerHost method

shellquote method is introduced so an injected code cannot be executed by the popen command.

Signed-off-by: Tom Haley <[email protected]>
(cherry picked from commit 101ea169c6af90c0aeaff6655b906b6d40155924)
protocols/luci-proto-wireguard/root/usr/share/rpcd/ucode/luci.wireguard