Skip to content

ECSoC_2026: Sanitize URL scanner result rendering #195

Description

@Babin123456

Problem

The scanner result card inserts dynamic URL and threat values into HTML.

Current Behavior

User-entered URLs and API-derived threat labels are interpolated into innerHTML.

Why This Improvement Is Needed

Scanner output may include user-controlled values. Rendering those values without escaping can create unsafe UI behavior and makes future changes riskier.

Proposed Solution

Add a small HTML escaping helper and sanitize result titles, descriptions, URLs, and threat tags before rendering.

Expected Outcome

The scanner result UI remains visually identical while handling dynamic values safely.

Additional Notes

This branch intentionally keeps the existing result-card structure.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions