Skip to content

Conversation

@alexandravaron
Copy link

No description provided.

@sonar-nautilus
Copy link

Quality Gate failed Quality Gate failed

Failed conditions
10 New issues
2 Security Hotspots
0.0% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE SonarQube for IDE


app.post("/api/execute", (req, res) => {
const userCommand = req.body.command;
exec("ls -la " + userCommand, (error, stdout, stderr) => {

Check failure

Code scanning / SonarQube

OS commands should not be vulnerable to command injection attacks Critical

Change this code to not construct the OS command from user-controlled data. See more on SonarQube
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants