ses 0.15.23 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +54 -0
- package/NEWS.md +16 -1
- package/README.md +22 -1
- package/dist/lockdown.cjs +636 -502
- package/dist/lockdown.mjs +636 -502
- package/dist/lockdown.umd.js +636 -502
- package/dist/lockdown.umd.min.js +1 -1
- package/dist/ses.cjs +636 -502
- package/dist/ses.mjs +636 -502
- package/dist/ses.umd.js +636 -502
- package/dist/ses.umd.min.js +1 -1
- package/package.json +6 -6
- package/src/commons.js +2 -16
- package/src/compartment-evaluate.js +2 -7
- package/src/compartment-shim.js +3 -11
- package/src/enablements.js +14 -9
- package/src/eval-scope.js +90 -0
- package/src/global-object.js +40 -1
- package/src/make-evaluate.js +110 -0
- package/src/make-hardener.js +31 -19
- package/src/make-safe-evaluator.js +28 -35
- package/src/scope-constants.js +17 -13
- package/src/sloppy-globals-scope-terminator.js +53 -0
- package/src/strict-scope-terminator.js +91 -0
- package/src/whitelist.js +0 -1
- package/src/make-evaluate-factory.js +0 -71
- package/src/scope-handler.js +0 -211
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,60 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [0.17.0](https://github.com/endojs/endo/compare/ses@0.16.0...ses@0.17.0) (2022-10-24)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### ⚠ BREAKING CHANGES
|
|
10
|
+
|
|
11
|
+
* **ses:** Prevent surprising global unscopables behavior
|
|
12
|
+
* **ses:** Divide scope proxy into four layers
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
* **ses:** Revocable evalScope ([0187d1e](https://github.com/endojs/endo/commit/0187d1e3532cfc2f052619c46a8a6331a8c15ae8))
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Bug Fixes
|
|
20
|
+
|
|
21
|
+
* **ses:** Prevent surprising global unscopables behavior ([dcb8f5d](https://github.com/endojs/endo/commit/dcb8f5da2a453ac72b7f2cc3208f591a9c298402))
|
|
22
|
+
* **ses:** Protect necessary eval admission before it has been admitted ([3d022b1](https://github.com/endojs/endo/commit/3d022b1e1b34ff9b86cf6af236c499bfbe291298))
|
|
23
|
+
* **ses:** Typo in compartmentEvaluate ([d66db7a](https://github.com/endojs/endo/commit/d66db7a67fab6bdd36d18a931c6a9163e842c3fe))
|
|
24
|
+
* **ses:** Typo in scope-constants ([a4ee1ea](https://github.com/endojs/endo/commit/a4ee1ea5e54d894ad3a3ce0c5e42507f026199e6))
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
### Code Refactoring
|
|
28
|
+
|
|
29
|
+
* **ses:** Divide scope proxy into four layers ([37c4b4a](https://github.com/endojs/endo/commit/37c4b4a22996e33dd4b2a48c67ce649ba88e5528))
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
## [0.16.0](https://github.com/endojs/endo/compare/ses@0.15.23...ses@0.16.0) (2022-10-19)
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
### Features
|
|
37
|
+
|
|
38
|
+
* Add links to resources and community portals ([b0fef82](https://github.com/endojs/endo/commit/b0fef82192d476c43e9e10d5ad696cdad5bcb0b5))
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
### Bug Fixes
|
|
42
|
+
|
|
43
|
+
* **ses:** Fail safe when getOwnPropertyDescriptor reports absence of a known property ([5fa3b50](https://github.com/endojs/endo/commit/5fa3b506dc3d8826d0d213a9514e554986823a1d))
|
|
44
|
+
* **ses:** Harden all non-integer typed array properties, even if canonical ([88cab0b](https://github.com/endojs/endo/commit/88cab0be4cf816dc578f2ff441fd9bcda0aa5cf5))
|
|
45
|
+
* **ses:** Lock down all typed array expando properties ([dc82f5d](https://github.com/endojs/endo/commit/dc82f5d2908b3507965562c7c1b3bf12d852af8f))
|
|
46
|
+
* minor improvements to some override comments ([#1327](https://github.com/endojs/endo/issues/1327)) ([678285a](https://github.com/endojs/endo/commit/678285a3345adec894f265ba56c2fa6636f846b8))
|
|
47
|
+
* **marshal:** Return a special error message from passStyleOf(typedArray) ([dbd498e](https://github.com/endojs/endo/commit/dbd498e30a5c3b0d2713d863bc7479ceef39cd79)), closes [#1326](https://github.com/endojs/endo/issues/1326)
|
|
48
|
+
* delete broken objectFromEntries ([#1306](https://github.com/endojs/endo/issues/1306)) ([d83be67](https://github.com/endojs/endo/commit/d83be675d23a928f287d6d9118f7258f0abd855a))
|
|
49
|
+
* **ses:** expand the scope this-value test ([3d50c1a](https://github.com/endojs/endo/commit/3d50c1ac073250406a8b38735610ca6d86fdd680))
|
|
50
|
+
* **ses:** Fix incompatible spelling ([c32fdf1](https://github.com/endojs/endo/commit/c32fdf10bdc1a21096ba190c384fa9f08f85f1f3))
|
|
51
|
+
* **ses:** scope tests - expand Symbol.unscopables fidelity test ([bb542f7](https://github.com/endojs/endo/commit/bb542f78a1520a8e54e981d224dee28b171518d6))
|
|
52
|
+
* **ses:** scope tests - expand Symbolunscopables fidelity test ([c603c5a](https://github.com/endojs/endo/commit/c603c5aa4a1ba271cf17d754df789a52aa7debfb))
|
|
53
|
+
* **ses:** scope tests - move teardown into ava teardown call ([e59f682](https://github.com/endojs/endo/commit/e59f6829e3061adcd8fbf78cde84cf3f9abc5bf8))
|
|
54
|
+
* **ses:** scope tests - rename variables to match purpose ([18d64c3](https://github.com/endojs/endo/commit/18d64c31315e47c798443f78a3bcfb77f4698366))
|
|
55
|
+
* **ses:** this-value scope test includes optimizable props ([9c3fea3](https://github.com/endojs/endo/commit/9c3fea3dfd2d72f0fc13455bc1e54de455ead83e))
|
|
56
|
+
* **ses:** this-value scope test includes unscopables fidelity test ([0be95ac](https://github.com/endojs/endo/commit/0be95acdb9a5251d1c37061bb5ae59180e298f65))
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
|
|
6
60
|
### [0.15.23](https://github.com/endojs/endo/compare/ses@0.15.22...ses@0.15.23) (2022-09-27)
|
|
7
61
|
|
|
8
62
|
|
package/NEWS.md
CHANGED
|
@@ -1,6 +1,21 @@
|
|
|
1
1
|
User-visible changes in SES:
|
|
2
2
|
|
|
3
|
-
# v0.
|
|
3
|
+
# v0.17.0 (2022-10-24)
|
|
4
|
+
|
|
5
|
+
- Previous versions of SES would leak the proxy used to isolate evaluated
|
|
6
|
+
code to functions added to the global object by guest code.
|
|
7
|
+
The value of `this` in such functions should be `undefined`, but that is not
|
|
8
|
+
possible to emulate in this shim.
|
|
9
|
+
This version changes the value of `this` in such functions to be the same as
|
|
10
|
+
`globalThis` of the compartment, as would be correct in sloppy mode.
|
|
11
|
+
- Removes experimental support for "known scope proxies".
|
|
12
|
+
|
|
13
|
+
# v0.16.0 (2022-10-19)
|
|
14
|
+
|
|
15
|
+
- When hardening a typed array, detects and locks down properties named as
|
|
16
|
+
number-coercible strings that are not index properties.
|
|
17
|
+
|
|
18
|
+
# v0.15.23 (2022-09-27)
|
|
4
19
|
|
|
5
20
|
- Fixes the unhandled promise rejection logic to report unhandled rejections
|
|
6
21
|
when the promise is collected. Because of a bug it previously only reported
|
package/README.md
CHANGED
|
@@ -32,6 +32,19 @@ SES starts where the Caja project left off
|
|
|
32
32
|
https://github.com/google/caja/wiki/SES, and goes on to introduce compartments
|
|
33
33
|
and modernize the permitted JavaScript features.
|
|
34
34
|
|
|
35
|
+
Please join the conversation on our [Mailing List][SES Strategy Group] and
|
|
36
|
+
[Matrix][Endo Matrix].
|
|
37
|
+
We record a [weekly conference call][SES Strategy Recordings] with the Hardened
|
|
38
|
+
JavaScript engineering community.
|
|
39
|
+
|
|
40
|
+
_Hardened JavaScript_, Kris Kowal:
|
|
41
|
+
|
|
42
|
+
[](https://www.youtube.com/watch?v=RoodZSIL-DE)
|
|
43
|
+
|
|
44
|
+
_Don't add Security, Remove Insecurity_, Mark Miller:
|
|
45
|
+
|
|
46
|
+
[](https://www.youtube.com/watch?v=u-XETUbxNUU)
|
|
47
|
+
|
|
35
48
|
## Install
|
|
36
49
|
|
|
37
50
|
```sh
|
|
@@ -689,7 +702,11 @@ report available on the
|
|
|
689
702
|
[Agoric blog](https://agoric.com/blog/technology/metamask-agoric-hardened-js-security-review/)
|
|
690
703
|
that includes links to recordings of code walk-throughs and technical
|
|
691
704
|
discussion, and issues are tagged
|
|
692
|
-
[audit-SEStival](https://github.com/endojs/endo/
|
|
705
|
+
[audit-SEStival](https://github.com/endojs/endo/issues?q=label%3Aaudit-sestival).
|
|
706
|
+
The [video recordings of the MetaMask and Agoric collaborative
|
|
707
|
+
review](https://www.youtube.com/playlist?list=PLzDw4TTug5O2d1XOdB7VNCZbIxRZu3gov).
|
|
708
|
+
provide useful background for future audits, reviews, and for learning more
|
|
709
|
+
about how the `ses` shim constructs a Hardened JavaScript environment.
|
|
693
710
|
|
|
694
711
|
In addition to vulnerability assessments, active efforts to [formally verify
|
|
695
712
|
the Agoric kernel](https://agoric.com/blog/technology/the-path-to-verified-blds-how-informal-systems-and-agoric-are-using-formal-methods-analysis-to-improve-software-integrity/)
|
|
@@ -711,3 +728,7 @@ For non-security bugs, please use the [regular Issues page][SES Issues].
|
|
|
711
728
|
[SES proposal]: https://github.com/tc39/proposal-ses
|
|
712
729
|
[SECURITY.md]: https://github.com/endojs/endo/blob/master/packages/ses/SECURITY.md
|
|
713
730
|
[SES Issues]: https://github.com/endojs/endo/issues
|
|
731
|
+
[SES Strategy Group]: https://groups.google.com/g/ses-strategy
|
|
732
|
+
[SES Strategy Recordings]: https://www.youtube.com/playlist?list=PLzDw4TTug5O1jzKodRDp3qec8zl88oxGd
|
|
733
|
+
[Endo Matrix]: https://matrix.to/#/#endojs:matrix.org
|
|
734
|
+
|