
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
github.com/risto-stevcev/purescript-sqlite
bower install purescript-sqlite
npm install sqlite3
instance loremIsForeign :: IsForeign Lorem where
read obj = do
n <- readProp "info" obj
pure $ Lorem { info: n }
instance showLorem :: Show Lorem where
show (Lorem a) = a.info
data Lorem = Lorem { info :: String }
main :: forall e. Eff (err :: EXCEPTION, console :: CONSOLE, sqlite :: SQLITE | e)
(Canceler ( sqlite :: SQLITE, console :: CONSOLE | e ))
main = launchAff $ do
db <- connect ":memory:" ReadWriteCreate
run db "CREATE TABLE IF NOT EXISTS lorem (info TEXT)"
run db ("INSERT INTO lorem VALUES (${value})" <-> [ "value" /\ "fooish!" ])
rows <- get db "SELECT * from lorem" :: SqlRows Lorem
close db
case rows of
Left err -> log (message err)
Right rows' -> log $ show rows'
This example logs [fooish!]
to the console.
For more examples, see the unit tests and examples folder.
FAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.