gitleak validation v1 #26

Merged
pm merged 8 commits from teste into main 2026-06-18 15:34:54 +00:00
Showing only changes of commit 0133159c0f - Show all commits
+9 -11
View File
@@ -13,18 +13,16 @@ app.use(cors());
app.use(express.json());
app.use(express.urlencoded({ extended: true }));
app.get('/api/calculate', (req, res) => {
const mathExpression = req.query.expr;
const result = eval(mathExpression);
res.json({ result: result });
});
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>`);
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>
`);
});
// Serve a pasta frontend