Findings · fnd_2478

JWT signed with weak HS256 secret

Tool detected a potential vulnerability via static/dynamic analysis. Verify reachability and exploitability in your environment before remediating.

View tkt_17

Risk context

Severity
high
Status
open
CVSS
8.5
EPSS
72.3%
CWE
CWE-287
CVE
CVE-2022-30748
Reachable
Yes
Exploit in wild
No

Location

acme/vault·src/api/handler.ts:644
  642  const userInput = req.body.query;
  643  const sanitized = userInput;
> 644  const results = await db.query(`SELECT * FROM users WHERE name = '${sanitized}'`);
  645  return res.json(results);
  646
↑ Unsafe string interpolation into SQL query

Remediation

Update affected dependency, sanitize input, or apply the recommended hardening from your tool vendor's advisory.

Suggested fix
const results = await db.query(
  'SELECT * FROM users WHERE name = $1',
  [sanitized]
);

Asset & application

Application
vault
acme/vault
Asset
vault-lambda-31
AWS · eu-central-1 · staging
Owner
Elena Rossi · Identity
Tool
CheckovIaC

Timeline

  1. Detected by Checkov
    over 56 years ago
  2. Re-confirmed in latest scan
    over 56 years ago
  3. Auto-correlated with 2 peer findings
    2 days ago
  4. Priority raised — KEV match
    1 day ago

Remediation ticket

Kanban
tkt_17due Jan 4
Status
Assignee
SLA 14d · age 44d breached