T09 · Insecure Skill Coding Practices
- Location
index.js:780- Finding
SiYuan credentials and private note data may be transmitted over plaintext HTTP
- Content
View full analysis
0; let authMode = requireAuth ? 'Token(header)' : 'No Auth'; if (hasBasicAuth) { headers.Authorization = basicAuthHeader.Authorization; authMode = 'Basic Auth'; if (requireAuth) { if (SIYUAN_ALLOW_TOKEN_IN_QUERY) { requestUrl += `${requestUrl.includes('?') ? '&' : '?'}token=${encodeURIComponent(SIYUAN_API_TOKEN)}`; authMode = 'Basic Auth + Token(query)'; } else { headers['X-SiYuan-Token'] = SIYUAN_API_TOKEN; authMode = 'Basic Auth + Token(header:x-siyuan-token)'; } } } else if (requireAuth) { headers.Authorization = `Token ${SIYUAN_AP ...[truncated 2932 chars]- Remediation
View remediation
