SiteShadow
Back to vulnerability library

QP07 Clean Code Principles Practices

What this means

SiteShadow flagged signals that basic "clean code" principles may be ignored (unclear naming, tangled responsibilities, hidden side effects). This tends to increase the likelihood of security bugs.

Why it matters

Ignoring basic principles increases defects and hidden security risk.

Safer examples

1) Keep security boundaries explicit

Validate at the boundary, authorize at the point of use, and keep those concerns visible.

2) Prefer small functions with clear names

Make it obvious what a function expects and guarantees.

3) Avoid hidden side effects

Side effects make it easy to accidentally bypass checks.

How SiteShadow detects it (high level)

References

---

← Back to Vulnerability Library

Request access View coverage