SiteShadow
Back to vulnerability library

CWE-628 Function Call with Incorrectly Specified Arguments

What this means

SiteShadow flagged a function call where arguments are likely incorrect, unsafe, or not validated (wrong ordering, wrong types, missing required flags). This is often how security controls get accidentally disabled (e.g., passing an "insecure" option, disabling verification, or turning on permissive parsing).

Why it matters

Incorrect arguments can cause unexpected behavior or vulnerabilities.

Safer examples

1) Prefer named/explicit options over positional arguments

Named options reduce "wrong parameter" mistakes.

2) Avoid insecure flags and "compatibility" switches

Don't pass flags like verify=False, "allowInsecure", "disableValidation", etc., especially based on environment variables.

3) Add tests for security-relevant behavior

For example, tests that ensure TLS verification is on, JWT verification is enforced, and auth middleware runs.

How SiteShadow detects it (high level)

References

---

← Back to Vulnerability Library

Request access View coverage