question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Module statics are like unhardened primordials

See original GitHub issue

commons.js mostly exports primordials that will get hardened at lockdown. However, it also defines and exports some of its own functions such as

https://github.com/endojs/endo/blob/ef031843b445a4a9df7b717fba7a315371eadae0/packages/ses/src/commons.js#L91-L96

https://github.com/endojs/endo/blob/ef031843b445a4a9df7b717fba7a315371eadae0/packages/ses/src/commons.js#L154-L156

https://github.com/endojs/endo/blob/ef031843b445a4a9df7b717fba7a315371eadae0/packages/ses/src/commons.js#L243

which are potentially as global as shared primordials, and which it does not itself harden, or effectively harden by manual freezing. In theory this is not a security problem because these are not actually shared primordials, and should not be implicitly accessible from non-start compartments. This may be correct, but is an unnecessary hazard. Since commons.js must initialize before lockdown, it cannot actually use harden to fix this hazard. However, it should manually freeze enough to get the same effect. In particular, uncurryThis should freeze the function it returns.

I noticed this during https://github.com/endojs/endo/pull/888 which does not itself do anything to fix this hazard, but does propagate this hazard to one additional function.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
erightscommented, Sep 17, 2021

See https://github.com/endojs/endo/pull/892

Doesn’t stop

Crazy idea, could lockdown harden all object properties of the module namespace object of commons.js?

because we could still harden the values of those properties, addressing the immediate point.

0reactions
erightscommented, Dec 24, 2022

What is the status of this?

Read more comments on GitHub >

github_iconTop Results From Across the Web

endo/NEWS.md at master · endojs/endo - ses - GitHub
Allows Compatment importHook implementations to return aliases: module ... the unhardened domain property appearing on shared objects like callbacks and ...
Read more >
Untitled
What does prednisolone 5mg look like, 7220 jd hp, How many miles in 130 km, ... 2l2s2r, Unhardened tool steel, Whistle baby song...
Read more >
Zero Trust Platform Foundation. Quis Custodiet Ipsos Custodes?
12 nodes. Belief solidifies confidence and trust for people to be bind to function in a system or protocol. Trust is conditional and...
Read more >
NASA SBIR/STTR Program Solicitation Details
The NASA SBIR program will NOT move a completed proposal package between SBIR subtopics other programs such as STTR. NASA uses a Subtopic...
Read more >
radiation hardened magnets: Topics by Science.gov
The DDR2 module has been guaranteed with SEL immune and TID > 100Krad(Si), ... It is anticipated that as few as two of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found