Skip to content
This repository has been archived by the owner on Oct 19, 2022. It is now read-only.

Merge changes from upstream v.1.1.5 #52

Merged
merged 10 commits into from
Sep 11, 2018
Merged

Merge changes from upstream v.1.1.5 #52

merged 10 commits into from
Sep 11, 2018

Conversation

papermana
Copy link

Changes upstream include a version bump for webpack-dev-server and a fix for a security issue on Windows — and that's pretty much it.

gaearon and others added 10 commits June 23, 2018 13:37
* add react-testing-library documentation/examples

* make react-testing-library a heading

* fix typo
* Use file name whitelist to prevent RCE

Use a whitelist to validate user-provided file names. This doesn't cover
the entire range of valid filenames but should cover almost all of them
in practice. Allows letters, numbers, periods, dashes, and underscores.
Opting to use a whitelist instead of a blacklist because getting this
wrong leaves us vulnerable to a RCE attack.

* Allow alphabet characters from all languages

Updated the whitelist to /^[\p{L}0-9/.\-_]+$/u, which matches
alphanumeric characters, periods, dashes, and underscores. Unicode
property support is stage 4 so I've inlined the transpiled version.

* Only use file name whitelist on Windows

* Log error message if file name does not pass whitelist
@papermana papermana merged commit 1fabf9f into master Sep 11, 2018
@papermana papermana deleted the merge-from-upstream branch September 11, 2018 08:12
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants