SiteShadow
Back to vulnerability library

QP10 Excessive Duplication

What this means

SiteShadow flagged significant copy/paste duplication across files (repeated helpers, repeated security logic, repeated validation). Duplication becomes a security problem when fixes are applied in one place but missed elsewhere.

Why it matters

Duplicated logic increases the chance of inconsistent security fixes.

Safer examples

1) Centralize security-critical logic

Put auth, authorization checks, input validation, and encoding helpers in one shared module.

2) Prefer shared middleware/policies

Avoid copy/pasting "check auth" blocks across endpoints.

3) Add tests for the shared helper

When security logic is centralized, tests protect all call sites at once.

How SiteShadow detects it (high level)

References

---

← Back to Vulnerability Library

Request access View coverage