
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/leanflutter/clipboard_watcher
This plugin allows Flutter apps to watch clipboard changes.
English | 简体中文
Platform | Support |
---|---|
Linux | ✔️ Fully supported |
macOS | ✔️ Fully supported |
Windows | ✔️ Fully supported |
iOS | 14+ Needs user permission to read data copied from others apps Old versions are fully supported out of the box |
Android | 10+ Only works when the app is in the foreground Old versions are fully supported out of the box |
Add this to your package's pubspec.yaml file:
dependencies:
clipboard_watcher: ^0.2.0
class HomePage extends StatefulWidget {
const HomePage({Key? key}) : super(key: key);
@override
_HomePageState createState() => _HomePageState();
}
class _HomePageState extends State<HomePage> with ClipboardListener {
@override
void initState() {
clipboardWatcher.addListener(this);
// start watch
clipboardWatcher.start();
super.initState();
}
@override
void dispose() {
clipboardWatcher.removeListener(this);
// stop watch
clipboardWatcher.stop();
super.dispose();
}
@override
Widget build(BuildContext context) {
// ...
}
@override
void onClipboardChanged() async {
ClipboardData? newClipboardData = await Clipboard.getData(Clipboard.kTextPlain);
print(newClipboardData?.text ?? "");
}
}
Please see the example app of this plugin for a full example.
LiJianying 💻 | Ademar 💻 | Amritpal Singh 💻 | J-P Nurmi 💻 | Leo Peng 💻 |
|
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.