edgeone-pages-website-skeleton
Audited by Socket on Sep 22, 2026
3 alerts found:
Anomalyx2SecurityNo clear malicious behavior or supply-chain malware is present. The code implements a legitimate AI chat flow, but it has significant security and reliability concerns: sensitive history is exposed in URLs, session ownership validation is not shown, malformed history can cause failures, the POST message path does not match the server implementation, and rate limiting is race-prone. Validate and size-limit history, enforce server-side ownership and authorization, use a proper POST/SSE API design without putting history in URLs, parse the request body, and use an atomic or durable rate-limit mechanism before deployment.
未发现恶意代码、数据窃取或供应链攻击迹象。该片段包含多个高影响支付安全和可靠性问题:验签函数引用未定义的 request,且微信支付 V3 验签算法实现不正确;幂等锁在确认 SUCCESS 前写入;内部幂等接口未展示认证;缺少订单金额、商户、币种和交易状态一致性校验。应在生产使用前修复并进行支付回调重放、伪造、并发和异常状态测试。
未发现明显恶意代码、数据外传、后门或破坏性行为。代码属于认证模块,但存在若干安全实现风险:Cookie 多值头格式、JWT 编码和时间单位兼容性、未展示 HMAC 密钥配置、sessionId 校验缺失,以及较宽的认证绕过白名单。应重点确认 /api/ai/chat 和支付通知端点的独立授权/签名校验,并验证 RT 轮换的原子性。