From 5929b935c1ae12a493e34563a8b8cd03d6b2deee Mon Sep 17 00:00:00 2001 From: pm Date: Tue, 16 Jun 2026 01:14:24 +0100 Subject: [PATCH] SonarQube Validation v5 --- tests/core.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/core.test.js b/tests/core.test.js index bc38cee..2f2f3e6 100644 --- a/tests/core.test.js +++ b/tests/core.test.js @@ -37,7 +37,7 @@ describe('Enterprise Application Flow & API Validation', () => { }); // OWASP ZAP (/api/search) - it('Should reflect the search query in the HTML response (/api/search) - Vulnerable to XSS', async () => { + /* it('Should reflect the search query in the HTML response (/api/search) - Vulnerable to XSS', async () => { const maliciousPayload = ''; const response = await request(app).get(`/api/search?q=${maliciousPayload}`); @@ -45,7 +45,7 @@ describe('Enterprise Application Flow & API Validation', () => { // Verifica se o payload é refletido exatamente como entrou (confirmando a vulnerabilidade) expect(response.text).toContain(`Resultados para: ${maliciousPayload}`); }); - }); + });*/ // ========================================== // 2. API BUSINESS LOGIC & VALIDATION TESTS