gitleak validation v1 #26
@@ -25,6 +25,12 @@ app.get('/', (req, res) => {
|
||||
`);
|
||||
});
|
||||
|
||||
app.get('/api/search', (req, res) => {
|
||||
const termo = req.query.q || '';
|
||||
// Vulnerabilidade Crítica: XSS Refletido
|
||||
res.send(`<html><body><h1>Resultados para: ${termo}</h1></body></html>`);
|
||||
});
|
||||
|
||||
// Serve a pasta frontend
|
||||
app.use(express.static(path.join(__dirname, '../frontend'), { extensions: ['html'] }));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user