GavinRay97 / haskell-scripted-wai

BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Duktape misc. notes dump (so I can close a few tabs) #1

Open jberryman opened 2 years ago

jberryman commented 2 years ago
jberryman commented 2 years ago

Things we'll want to change or add in haskell bindings:

GavinRay97 commented 2 years ago

Thank you Brandon, this is super valuable!

jberryman commented 2 years ago

I'm going to keep adding notes here @GavinRay97 , as I think of them. Also need to start a fork anyway to make more progress on the typescript POC

jberryman commented 2 years ago

More on security

There are two threat model scenarios:

But eval() complicates the first scenario. We might wish to prohibit eval in duktape in order to protect customers in scenario 1 from injection attacks (which also breaks the threat model because it could allow an escalation from scenario 1 to scenario 2)

Not clear if we can actually do this without breaking code everywhere, but we'd need to shim/overwrite:

jberryman commented 2 years ago

Weird behavior related to cyclic objects to investigate

jberryman commented 2 years ago

duktape to test:

to check:

misc: