Code RoomUnsanitized HTML injection
MediumPrep Room Coding #2381

Unsanitized HTML injection

Code reviewSecurityMid–Senior~18 min

Review this front-end code that renders server-provided content.

What a strong answer looks like

Separate real bugs from style. Rank issues by severity, point at the root cause rather than the symptom, and suggest a concrete fix, specific and kind.

0:00 of about 18 min
Mark a line and say what kind of problem it is.0 findings
1const html = await fetchSnippet(id);
2document.querySelector('#area').innerHTML = html;
Which questions mattered is sealed until you submit. Telling you now would just be handing over the edge cases.