
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).
copy-button
Advanced tools
<copy-button></copy-button>
A web-component that is not relying on Flash to copy stuff into the clipboard. Experience may vary, based on browser support, with downgrading to using prompt.
npm i --save copy-button
after which you're good to use copy-button &
You can also use it from wzrd.in CDN and drop
<script src='https://wzrd.in/standalone/copy-button@latest'></script>
into your html
After having script ran, you're good to use <copy-button></copy-button>
in your markup.
If you're not specifying inner content, it would default to 'Click to copy to clipboard', otherwise provided content would be inserted into the button. Can use icons here, etc. See example
If you specify target-text
attribute on button, provided value will be copied to clipboard. Example
If you specify target-element
attribute on button, value or text of provided DOM node will be copied to clipboard (it will be retrieved using document.getElementById
if value will be specified as #specifiedID
or document.querySelectorAll in other cases). See examples
Built on top of document.registerElement polyfill & copy-to-clipboard
FAQs
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.