Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
delete-all-cookies
Advanced tools
This library exposes a function to clear all cookies that affect the currently loaded web page.
This is accomplished by iteratively removing all cookies for the current path, then the parent path, and so on, for the current domain, parent domain, and so on, as well as cookies without explicit path and domain specification.
Sample interactive usage:
// in source:
window.clearCookies = require('delete-all-cookies')(window)
// ES 6:
import deleteAllCookiesFactory from 'delete-all-cookies'
window.clearCookies = deleteAllCookiesFactory(window)
// then, in console:
clearCookies()
Usage in browsers:
<script src="https://unpkg.com/delete-all-cookies/index.js"></script>
<script>
deleteAllCookies(window)
</script>
Released under the MIT license.
The code is derived from several Stack Overflow answers to the question of clearing all cookies affecting the current web page.
FAQs
Removes all cookies affecting the current site/domain/path
The npm package delete-all-cookies receives a total of 301 weekly downloads. As such, delete-all-cookies popularity was classified as not popular.
We found that delete-all-cookies 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
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.