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.
Uniform Resource Locator.
var Url = require("url");
var url = new Url("https://www.example.com/path/to/page?pa=A1&pa=A2&pb=B#hash");
console.log(url);
console.log(url.getParam("pa")); // "A1"
console.log(url.getParams("pa")); // ["A1", "A2"]
Constructor.
origin
: readonly, and not changed when protocol, hostname, port modified!
Until one day most of all browseres supports Object.defineProperty()
.
Use getOrigin()
instead.protocol
: read+write.username
: read+write.password
: read+write.host
: readonly, not changed same the origin
property. Use getHost()
instead.hostname
: read+write.port
: read+write.path
: read+write.search
: readonly! Please use setParam()
, addParam()
, delParam()
,
and clearParams()
method to modify query.hash
: read+write.Get the origin info.
Get the host info.
Get named name
param string the first.
Get named name
params string of all.
Delete named name
params.
Add params named name
.
Add or replace param values named name
.
Clear all param datas.
Return url string.
Static method.
MIT
FAQs
Uniform Resource Locator.
The npm package aurl receives a total of 54 weekly downloads. As such, aurl popularity was classified as not popular.
We found that aurl 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.