T09 · Insecure Skill Coding Practices
- Location
scripts/query-vulns.py:55- Finding
NVD API Key Exposed Through Command-Line Arguments
- Content
View full analysis
list: start_utc = start_date.astimezone(timezone.utc) if start_date.tzinfo else start_date.replace(tzinfo=timezone.utc) end_utc = end_date.astimezone(timezone.utc) if end_date.tzinfo else end_date.replace(tzinfo=timezone.utc) params = { "keywordSearch": keyword, "resultsPerPage": 100, } headers = {} if api_key: headers["apiKey"] = api_key delay = NVD_DELAY_WITH_KEY if api_key else NVD_DELAY_NO_KEY ``` The same behavior occurs for CVE-specific queries: ```python def query_nvd_cve(cve_id: str, api_key: str = Non ...[truncated 2551 chars]- Remediation
View remediation
