Skip to content

Disallow control characters in user-id and password to be RFC-compliant. #55

@issuefiler

Description

@issuefiler

var USER_PASS_REGEXP = /^([^:]*):(.*)$/

basic-auth/index.js

Lines 114 to 115 in e8a29f9

// decode user pass
var userPass = USER_PASS_REGEXP.exec(decodeBase64(match[1]))


Which, RFC 7617 forbids.

RFC 7617 — “Basic” HTTP Authentication Scheme

The user-id and password MUST NOT contain any control characters (see “CTL” in Appendix B.1 of RFC5234).

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