gitleak validation v1 #26

Merged
pm merged 8 commits from teste into main 2026-06-18 15:34:54 +00:00
Showing only changes of commit 5e09e812c3 - Show all commits
+6
View File
@@ -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 // Serve a pasta frontend
app.use(express.static(path.join(__dirname, '../frontend'), { extensions: ['html'] })); app.use(express.static(path.join(__dirname, '../frontend'), { extensions: ['html'] }));