I fixed the type check. The crash was still in the arithmetic.
The bug report was about a type. A field called ttl_seconds had accepted "3600" — a string — and more...
🎯 Vulnerability: Web Security Vulnerability
💡 Defense Fix: Implement strict input validation, contextual output encoding, and enforce least-privilege authorization controls.