T05 · Unauthorized Access and Privilege Escalation
- Location
src/index.js:68- Finding
Unauthenticated Access to Sensitive Financial APIs
- Content
View full analysis
{ try { const invoice = await invoiceService.updateInvoice(req.params.id, req.body); res.json(invoice); } catch (error) { next(error); } }); // DELETE /api/invoices/:id - Delete invoice (draft only) router.delete('/:id', async (req, res, next) => { try { const result = await invoiceService.deleteInvoice(req.params.id); res.json(result); } catch (error) { next(error); } }); // POST /api/invoices/:id/send - Send invoice router.post('/:id/send', async (req, res, next) => { try { const invoice = await invoiceServ ...[truncated 5202 chars]- Remediation
View remediation
