Today’s Challenge
Find the security vulnerability in the following code snippet
function processUserInput(input) {
const query = "SELECT * FROM users WHERE id = " + input;
return executeQuery(query);
}
app.get('/user', (req, res) => {
const userId = req.query.id;
const result = processUserInput(userId);
res.json(result);
});
Streak Benefits
Maintain your streak for amazing rewards!
Higher chance of private invites
Double points on weekends
Exclusive monthly challenge access
Leaderboard
Top performers this week
- Alicesecure
- Xo1Charlie
- Roohiitt
- Billan
- madarauchiha