Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
This package implements a template compiler for dynamic HTML documents. In particular, it supports the XSS rule language which is used to associate elements with dynamic content.
The XSS rule language uses a CSS-compliant syntax to let you match HTML elements using CSS selectors and set up dynamic content definitions.
To associate a template with a rule file, use the tag::
XSS files contain rules like the following::
html > head > title { name: document-heading; structure: true; attributes: document-attributes; mode: content; }
This rule will associate the tag with the dynamic content identifier "document-heading", escape the inserted content and apply the dynamic attributes bound to the "document-attributes" identifier.
See the file template.txt
within the package for documentation on
how to render templates and provide dynamic content and attributes.
Brief explanation of the properties in the XSS format::
@name dynamic content slot name @structure if set to true, inserts content without escaping @attributes inserts dynamic attributes into tag @mode one of ('content', 'append', 'prepend')
If a resource location adapter is available (see
chameleon.html.interfaces.IResourceLocation
), references resources
(e.g. images, stylesheets, javascripts) will be "rebased" to the URL
returned by the component.
FAQs
Dynamic HTML template compiler with XSS language support.
We found that chameleon.html demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers 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 malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.