Skip to content

Viewer server does not validate Content-Type on POST requests #38

@rohitg00

Description

@rohitg00

Problem

POST requests parse body as JSON without checking the Content-Type header. This reduces defense in depth.

Location

src/viewer/server.ts:686

Suggested Fix

Validate that Content-Type header contains application/json before parsing POST body.

Metadata

Metadata

Assignees

No one assigned

    Labels

    mediumMedium prioritysecuritySecurity vulnerability or hardening

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions