T09 · Insecure Skill Coding Practices
- Location
src/utils/request.js:76- Finding
API Credential Exposed in URL Query Strings
- Content
View full analysis
{ return await postJson( "/api/xiaohongshu/note-search/keyword", { _: Date.now(), token: token }, { keyword, type, sort, time, limit }, ); }, ``` Polling requests expose the same credential: ```js const res = await getJson("/api/xiaohongshu/note-search/info", { _: Date.now(), token: token, keyword, type, sort, time, limit, }); ``` ### Technical Analysis The `GUAIKEI_API_TOKEN` is serialized into the query string for task creation and polling requests. Although the connection uses HTTPS, HTTPS only protects the request from passive network interception. It does not prevent the URL from being recorded af ...[truncated 1716 chars]- Remediation
View remediation
