Now Hacked
EN

Daily security quiz #6

Question for 2026-11-06. Read the code and pick the most serious security vulnerability.

EasyJavaScript (Node.js)2026-11-06

This administrative feature uses ping to check whether a server is up (Linux server). What is the most serious vulnerability?

const { exec } = require('child_process');
 
app.get('/admin/ping', (req, res) => {
  exec(`ping -c 1 ${req.query.host}`, (err, stdout) => {
    res.type('text/plain').send(stdout);
  });
});

Past questions