Skip to content

StrictHttpFirewall containsOnlyPrintableAsciiCharacters blocks safe characters #5190

Closed
@jd3nn1s

Description

@jd3nn1s

Summary

An encoded space in a URL is treated as a non-printable ASCII character and therefore is rejected by StrictHttpFirewall with no obvious way to allow without switching to HttpFirewall.

Actual Behavior

Request:
http://testhost.test/v1/config/IDE%20Settings/key/Color

Exception:
The requestURI was rejected because it can only contain printable ASCII characters

containsOnlyPrintableAsciiCharacters() rejects space even though it is a printable character. I do not know if space is an attack vector for bypassing security rules but it seems unlikely. Certainly space is considered a printable ASCII character.

Expected Behavior

Request is accepted.

Configuration

Version

4.2.4

Metadata

Metadata

Assignees

Labels

in: webAn issue in web modules (web, webmvc)type: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions