owasp zap config v16 #21

Merged
pm merged 3 commits from teste-bloqueio into main 2026-06-13 10:44:17 +00:00
2 changed files with 5 additions and 5 deletions
Showing only changes of commit 85e6d4b66a - Show all commits
+3 -3
View File
@@ -23,9 +23,9 @@ app.get('/careers', (req, res) => res.sendFile(path.join(__dirname, '../frontend
app.get('/contact', (req, res) => res.sendFile(path.join(__dirname, '../frontend/contact.html')));
// ==========================================
// ROTA VULNERÁVEL (Armadilha infalível para o OWASP ZAP)
// VULNERÁVEL (OWASP ZAP)
// ==========================================
app.get('/api/search', (req, res) => {
/*app.get('/api/search', (req, res) => {
const termo = req.query.q || '';
// A vulnerabilidade crítica: devolver o input diretamente no HTML
res.send(`
@@ -37,7 +37,7 @@ app.get('/api/search', (req, res) => {
</body>
</html>
`);
});
});*/
// Configuração do transporte de E-mail (Mocks de teste vs Produção)
let transporter;
+2 -2
View File
@@ -93,12 +93,12 @@
</div>
</div>
</main>
<div style="display: none;">
<!--<div style="display: none;">
<form action="/api/search" method="GET">
<input type="text" name="q" value="teste">
<button type="submit">Pesquisar</button>
</form>
</div>
</div>-->
<footer class="bg-slate-900 text-slate-400 py-12 text-center">
<p>&copy; 2026 Apex Solutions. All rights reserved.</p>
</footer>