
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).
Most common string manipulations for a webapp
Because every time I create a new webapp, I think about how I should process user-generated content. Should convert urls to links and images? Should I allow certain tags? Should I convert all new lines to <br/> tags? Well, now all that is as simple as calling a single method.
Say you got this string
s = "Hello, glorious owner of the website\nI hope <b>you</b> like my message"
Oh my god, what am I going to do with it?
# try this
s.prep.newlines_to_br.html_escape
# which is equivalent to this (block notation)
s.prep { |s| s.newlines_to_br; s.html_escape }
Result:
Hello, glorious owner of the website
I hope <you> like my message
Fuck yeah.
Please read RDoc to see all of the available methods of StringMaster class: http://rdoc.info/gems/string_master/frames
FAQs
Unknown package
We found that string_master demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.