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.
A (really) simple SOAP library. It does not depend on a WSDL. All namespaces, operations, actions and headers are 100% within your control.
const handsoap = require('handsoap');
const url = 'MY URL';
const body = {
some: {
data: 'here'
}
};
const options = {
httpHeaders: {
http: 'Header'
},
soapHeaders: {
soap: 'Header'
},
namespaces: [
'MyNameSpace': 'My.Name.Space',
'MyNameSpace2': 'My.Name.Space.2'
]
}
handsoap.request(url, operation, action, body, options, auth).then((response) => {
// Success
}, (err) => {
// Error
});
// definition ES5
const handsoap = require('handsoap');
HandSoapWrapper = function(url, options, auth) {
this.url = url;
this.options = options;
this.auth = auth;
};
HandSoapWrapper.prototype._wrapRequest = function(operation, action, body) {
return handsoap.request(this.url, operation, action, body, this.options, this.auth);
}
HandSoapWrapper.prototype.myOperation = function(body) {
const operation = 'ns1:MyOper';
const action = 'MyAction';
return this._wrapRequest(operation, action, body);
}
// definition ES6
class HandSoapWrapper {
constructor(url, options, auth) {
this.url = url;
this.options = options;
this.auth = auth;
}
_wrapRequest(operation, action, body) {
return handsoap.request(this.url, operation, action, body, this.options, this.auth);
}
myOperation(body) {
const operation = 'ns1:MyOper';
const action = 'MyAction';
return this._wrapRequest(operation, action, body);
}
}
// usage
const url = 'MY URL';
const options = {
httpHeaders: {
http: 'Header'
},
soapHeaders: {
soap: 'Header'
},
namespaces: [
'MyNameSpace': 'My.Name.Space',
'MyNameSpace2': 'My.Name.Space.2'
]
};
const auth = {
user: 'user',
pass: 'pass'
};
const handSoapWrapper = new HandSoapWrapper(url, options, auth);
handSoapWrapper.myOperation(body).then((response) => {
// Success
}, (err) => {
// Error
});
FAQs
A (really) simple soap client
The npm package handsoap receives a total of 1 weekly downloads. As such, handsoap popularity was classified as not popular.
We found that handsoap 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.