Gitleaks Validation #25

Merged
pm merged 18 commits from validation_stage into main 2026-06-16 15:34:30 +00:00
Showing only changes of commit f386e25432 - Show all commits
-17
View File
@@ -14,23 +14,6 @@ app.use(express.json());
app.use(express.urlencoded({ extended: true }));
// ==========================================
// ROTA LIMPA (Passa no SonarQube, chumba no ZAP)
// ==========================================
// Modificamos a rota principal temporariamente para o ZAP encontrar o link e atacar
app.get('/', (req, res) => {
res.send(`
<html>
<body>
<h1>Bem-vindo a Apex Solutions</h1>
<a href="/api/search?q=teste">Pesquisar</a>
</body>
</html>
`);
});
// A rota vulnerável a XSS que o SonarQube (versão gratuita) ignora, mas o ZAP destrói
app.get('/api/search', (req, res) => {
const termo = req.query.q || '';
// Vulnerabilidade Crítica: XSS Refletido