Daily security quiz #2
Question for 2026-11-02. Read the code and pick the most serious security vulnerability.
This Express route serves uploaded files for download. What is the most serious vulnerability?
const path = require('path');
app.get('/download', (req, res) => {
const file = req.query.name;
const target = path.join(__dirname, 'uploads', file);
res.sendFile(target);
});