Skip to content

Block opaque 416 responses to range requests #1906

@yoshisatoyanagisawa

Description

@yoshisatoyanagisawa

What is the issue with the Fetch Standard?

The current Fetch Standard specifies that for an opaque response with the range-requested flag set, but without an originating Range header in the request, a 206 Partial Content status code should result in a network error. This is a crucial security check designed to prevent XS-Leak attacks that could reveal resource sizes.

However, this check is limited to 206 status codes and does not apply to 416 Range Not Satisfiable responses, which are also used for failed Range requests.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions