owasp zap v2
DevSecOps Enterprise Pipeline / security-gate-and-deploy (pull_request) Failing after 1m33s
DevSecOps Enterprise Pipeline / security-gate-and-deploy (pull_request) Failing after 1m33s
This commit is contained in:
@@ -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'] }));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user