Skip to content

Commit

Permalink
XSS reparado
Browse files Browse the repository at this point in the history
  • Loading branch information
jlorias committed Sep 10, 2024
1 parent b0b3077 commit 79ab09f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@ router.get('/search', (req, res) => {
const query = req.query.q;

// Vulnerable rendering
res.send(`<h1>Search Results for: ${query}</h1>`);
//res.send(`<h1>Search Results for: ${query}</h1>`);
//Se corrige vulnerabilidad
res.send({ query: query });

});

Expand Down

0 comments on commit 79ab09f

Please sign in to comment.