Skip to content

Implement stricter checks for allowed characters in pseudo-header values #1611

@mkauf

Description

@mkauf

The checks for the allowed characters in pseudo-headers like ":method" and ":path" should be improved.

":method" must be a token. The definition for "token" is here. Note that e.g. spaces and tabs are not allowed, and the value must not be empty. (Update: the "not empty" check is already implemented.)

The rules for ":path" are more complex, but here also spaces and tabs are not allowed, and the value must not be empty for http/https. (Update: the "not empty" check is already implemented.)

These checks are important to prevent HTTP/2 downgrading attacks. Please read the research paper HTTP/2: The Sequel is Always Worse for more information.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions