Skip to content

[BUG][UI] Web UI crash if single char '*' is set in the 'Access-Control-Allow-Headers value' #2747

@thelittlefireman

Description

@thelittlefireman

What happened?

Hi,
Access Control Allow headers should allow the value '*' for wildacard https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Access-Control-Allow-Headers but the regex in the CORS plugin does not allow that

"regex": "^(\\*|(?![, ])(,? ?([\\w\\-]+))*)?$",

Moreover on the UI if you set a '*' in the 'Access-Control-Allow-Headers value' my chrome tab is crashing.

How to reproduce?

start a simple instance with bunkerweb ui and try to add a '*' in the 'Access-Control-Allow-Headers value' field, the tab crash and/or it's rejected by the regex.

Configuration file(s) (yaml or .env)

Relevant log output

BunkerWeb version

1.6.4

What integration are you using?

Docker

Linux distribution (if applicable)

Synology

Removed private data

  • I have removed all private data from the configuration file and the logs

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions