snclient icon indicating copy to clipboard operation
snclient copied to clipboard

external script, nasty characters & argument injection

Open k9fr4n opened this issue 1 year ago • 3 comments

hello

i defined a command in "[/settings/external scripts/scripts]" section that uses a binary check-ping.exe

check_ping = bin/check-ping.exe /host '$ARG1$'

I set the parameter "allow nasty characters" to false for in the category "[/settings/external scripts]"

but i can pass this kind of command:

./check_nrpe -H X.X.X.X -c check_ping -a "google.fr' || echo coucou ||'''"
coucou

Can you check if the option "allow nasty characters" is fonctionnal for external script ?

Regards

k9fr4n avatar Sep 27 '24 15:09 k9fr4n