T09 · Insecure Skill Coding Practices
- Location
references/sales_entry.html:326- Finding
DOM-Based Cross-Site Scripting Through Imported Sales Data
- Content
View full analysis
Dish count${o.recs.length?new Set(o.recs.map(r=>r.dish)).size:0}Days${o.nDays}Total sales${o.totalQty}`; const topRows=o.top.map((d,i)=>`${i+1}${d.dish}${d.qty}${(d.share*100).toFixed(1)}%${Math.round(d.avg)}`).join(''); document.getElementById('topT').innerHTML=`RankDishTotal salesShareDaily average${topRows}`; const slowRows=o.slow.map(d=>`${d.dish}${d.qty}${(d.share*100).toFixed(1)}%${Math.round(d.avg)}`).join(''); document.getElementById('slowT').innerHTML=`DishTotal salesShareDaily average${slowRows}`; document.getElementById('trendNote').innerHTML=o.trendOverall!=null?`Overall daily sales trend: ${o.trendOverall>=0?'up':'down'} ${(Math.abs(o.trendOverall)*100).toFixed(1)}%`:'Insufficient data to determine a trend.'; document.getElementById('catBars').innerHTML=o.catList.map(c=>`Daily average${Math.round(o.avgDaily)}${c.category} ${(c.share*100).toFixed(1)}%Sales ${c.qty} · ${c.n} dishes · Avera ...[truncated 3369 chars]- Remediation
View remediation
