gitleak validation v1 #26
+1
-11
@@ -14,19 +14,9 @@ app.use(express.json());
|
|||||||
app.use(express.urlencoded({ extended: true }));
|
app.use(express.urlencoded({ extended: true }));
|
||||||
|
|
||||||
|
|
||||||
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>
|
|
||||||
`);
|
|
||||||
});
|
|
||||||
|
|
||||||
app.get('/api/search', (req, res) => {
|
app.get('/api/search', (req, res) => {
|
||||||
const termo = req.query.q || '';
|
const termo = req.query.q;
|
||||||
// Vulnerabilidade Crítica: XSS Refletido
|
// Vulnerabilidade Crítica: XSS Refletido
|
||||||
res.send(`<html><body><h1>Resultados para: ${termo}</h1></body></html>`);
|
res.send(`<html><body><h1>Resultados para: ${termo}</h1></body></html>`);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user