T09 · Insecure Skill Coding Practices
- Location
append-fund.js:9- Finding
Hard-Coded Feishu Credentials and Document Token
- Content
View full analysis
{ const data = JSON.stringify({ app_id: FEISHU_APP_ID, app_secret: FEISHU_APP_SECRET }); const options = { hostname: 'open.feishu.cn', path: '/open-apis/auth/v3/tenant_access_token/internal', method: 'POST', headers: { 'Content-Type': 'application/json', 'Content-Length': data.length } }; const req = https.request(options, (res) => { let body = ''; res.on('data', (chunk) => body += chunk); res.on('end', () => { try { const result = JSON.parse(body); resolve(result.tenant_access_token); } catch (e) { reject(e); } }); }); ``` ### Technical Analysis The package distributes a Feishu application ID, application secret, and fixed document ...[truncated 1997 chars]- Remediation
View remediation
