T09 · Insecure Skill Coding Practices
- Location
index.html:247- Finding
Stored Cross-Site Scripting Through Guestbook and GitHub Messages
- Content
View full analysis
({ name: m.author || '匿名', message: m.content || '', time: m.time || '', source: 'web', })); ``` ```javascript // functions/api/messages.js return issues .filter(issue => !issue.pull_request && /留言|来访|hello|hi|你好/i.test(issue.title) ) .map(issue => ({ name: issue.user?.login || 'GitHub 访客', message: issue.title + (issue.body ? `\n${issue.body}` : ''), time: issue.created_at, source: 'github', url: issue.html_url, })); ``` ```javascript // index.html const res = await fetch('/api/messages'); if (!res.ok) throw new Error('not ready'); const data = await res.json(); if (data && data.messages && data.messages.length > 0) { wall.innerHTML = '' + data.messages.map(m => '' + '- Remediation
View remediation
