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.
@transferwise/cookie-consent-js
Advanced tools
Cookie consent mechanism to be shown to all EU users across transferwise.com
This package generates a webjar to be served by our cookie-consent-service.
To include the consent mechanism on your page, simply add a script tag to your page:
<script src="/cookie-consent.js"></script>
For as long as your page is served from transferwise.com
you should now see the cookie consent mechanism on your page.
The script itself includes all necessary CSS. One caveat is that the page must provide the TransferWise brand fonts:
font-family: averta, avenir w02, avenir, Helvetica, Arial, sans-serif;
The cookie banner will look for the locale to use in the following places, in order:
localeData
cookiewindow.config.lang
window.navigator.language
en
It uses the first 2 characters of the locale string as the language. In most cases, the locale will just be a 2-letter string. If it finds a 5-character language+country string, it will use the first 2 characters of that e.g. es-ES
=> es
.
To setup the development environment, first run yarn start
to start the server. This will serve index.html
from localhost:5000
.
To build the dist and watch the source files for changes, run yarn build:dev
.
package.json
cookie-consent-service
and edit gradle.properties to match the new cookie-consent-js
versioncookie-consent-service
is merged, it will post a docker tag to #conversion-alerts. Deploy with Octopus.FAQs
Cookie consent mechanism
The npm package @transferwise/cookie-consent-js receives a total of 0 weekly downloads. As such, @transferwise/cookie-consent-js popularity was classified as not popular.
We found that @transferwise/cookie-consent-js 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.