Computer scienceBackendNode.jsSecurity

Path traversal

Type of vulnerability

Report a typo

In the insecure code snippet provided, what vulnerability is present?

fs.readFile(filePath, (err, data) => {
  if (err) {
    res.status(500).send('Error reading file');
  } else {
    res.send(data);
  }
});
Select one option from the list

Create a free account to access the full topic