Web Exploitation
Challenge
Link
Login! (100 pts)
Description
Solution
...
app.post('/login', (req, res) => {
const { username, password } = req.body;
if (username.length > 6) return res.send('Username is too long');
const user = USER_DB[username];
if (user && user.password == password) {
if (username === 'guest') {
res.send('Welcome, guest. You do not have permission to view the flag');
} else {
res.send(`Welcome, ${username}. Here is your flag: ${FLAG}`);
}
} else {
res.send('Invalid username or password');
}
});
...

Too Faulty (150 pts)
Description
Solution








Buggy Bounty (275 pts)
Description
Solution


















Last updated