nextcloud/lib/private/Security
Daniel Calviño Sánchez 41f2d912d2 Allow "wasm-unsafe-eval" in CSP
If a page has a Content Security Policy header and the `script-src` (or
`default-src`) directive does not contain neither `wasm-unsafe-eval` nor
`unsafe-eval` loading and executing WebAssembly is blocked in the page
(although it is still possible to load and execute WebAssembly in a
worker thread).

Although the Nextcloud classes to manage the CSP already supported
allowing `unsafe-eval` this affects not only WebAssembly, but also the
`eval` operation in JavaScript.

To make possible to allow WebAssembly execution without allowing
JavaScript `eval` this commit adds support for allowing
`wasm-unsafe-eval`.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2023-08-10 02:38:41 +02:00
..
Bruteforce Refactors "strpos" calls in lib/private to improve code readability. 2023-05-15 15:17:19 +03:30
CSP Allow "wasm-unsafe-eval" in CSP 2023-08-10 02:38:41 +02:00
CSRF Update php licenses 2021-06-04 22:02:41 +02:00
FeaturePolicy Update php licenses 2021-06-04 22:02:41 +02:00
IdentityProof Refactors lib/private/Security. 2023-06-26 15:03:13 +03:30
Normalizer Type hint in IpAddress 2021-11-22 17:36:26 +01:00
RateLimiting Refactors lib/private/Security. 2023-06-26 15:03:13 +03:30
VerificationToken Refactors lib/private/Security. 2023-06-26 15:03:13 +03:30
Certificate.php Update php licenses 2021-06-04 22:02:41 +02:00
CertificateManager.php log failures to read certificates during listing 2023-05-31 14:40:45 +02:00
CredentialsManager.php Update php licenses 2021-06-04 22:02:41 +02:00
Crypto.php Use typed version of IConfig::getSystemValue as much as possible 2023-04-05 12:50:08 +02:00
Hasher.php Use typed version of IConfig::getSystemValue as much as possible 2023-04-05 12:50:08 +02:00
RemoteHostValidator.php Refactors "strpos" calls in lib/private to improve code readability. 2023-05-15 15:17:19 +03:30
SecureRandom.php Validate requested length is random string generator 2022-05-12 13:58:18 +02:00
TrustedDomainHelper.php Refactors "strpos" calls in lib/private to improve code readability. 2023-05-15 15:17:19 +03:30