Perl

Perl : Executing the sudo command inside the application

Classification

CWE/SANS Top 25 2011

Overview

Inside the application, code is executed with sudo, which can lead to escalation of privileges.

The sudo command allows users, after entering a password, to execute commands on behalf of a superuser (“root”) or other users. Running a script using this command can potentially be a security hole, especially if there are vulnerabilities in the script being run. In addition, running the application will require a password from the user or a special configuration of the sudoers file each time.

MEDIUM

DerScanner Severity Score

Check your Perl code for this vulnerability, free

Request a free pilot of DerScanner. We give you access and help with the first scan. It works in the cloud and on-premise.

Try it on your code, free

By submitting this form, I acknowledge that DerScanner may process my personal data I provided above for purposes explained above. More details about the processing.