T09 · Insecure Skill Coding Practices
- Location
scripts/loan_calculator.py:29- Finding
Unbounded and Insufficiently Validated Numeric Inputs Permit Denial of Service
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This is a simple local loan calculator with some localization and input-validation issues, but no evidence of hidden access, data theft, persistence, or destructive behavior.
Use this only as a lightweight local calculator. Review outputs carefully for financial decisions, and avoid forwarding unbounded or untrusted loan terms unless additional validation or timeouts are added.
scripts/loan_calculator.py:29Unbounded and Insufficiently Validated Numeric Inputs Permit Denial of Service
This code file contains natural-language strings such as "等额本息" and later "等额本金" that are surfaced in output, while the rest of the CLI is in English. Under the policy, forcing a specific language without user opt-in is a natural-language policy violation unless the locale restriction is explicitly documented and justified.
The returned "method" value is hard-coded to "等额本金", which forces a non-default locale in program output. There is no indication that the user can choose the output language or that the skill is region-specific.
The file is primarily written in English, but the closing promotional section switches to Chinese-only text such as '出品' and '免费检测你的品牌在AI搜索中有没有存在感' without user opt-in or any explanation that the skill is region- or language-specific. This can violate language/locale policy expectations because it imposes a specific language for part of the user-facing content.