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);
}
});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);
}
});Create a free account to access the full topic