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.
github.com/andy-cywang/account-manager
A web app backend manages merchant accounts
Operations can only be performed after login.
URL
/login
Method:
POST
URL Params
None
Data Params
Required:
{ username : "admin", password : "admin" }
Create an merchant
URL
/merchant/create
Method:
POST
URL Params
None
Data Params
{
logo: string,
members: map {
"key": {
"email": string,
"name": string
}
}
Get all merchants from database.
URL
/merchant/all
Method:
GET
URL Params
None
Data Params
None
Add a memeber to merchant specified by merchant ID
URL
/merchant/member/add
Method:
POST
URL Params
None
Data Params
{
"merchantID": string,
"members": map {
"key": {
"email": string,
"name": string
}
}
}
Update a member from a merchant specified by merchant ID
URL
/merchant/member/update
Method:
PUT
URL Params
None
Data Params
{
"merchantID": string,
"members": map {
"key": {
"email": string,
"name": string
}
}
}
Delete a member from a merchant specified by merchant ID
URL
/merchant/member/delete
Method:
DELETE
URL Params
None
Data Params
{
"merchantID": string,
"members": map {
"key": {
"email": string,
"name": string
}
}
}
Get all member from a merchant specified by merchant ID
URL
/merchant/member
Method:
GET
URL Params
merchantID
Data Params
None
Update a merchant's logo
URL
/merchant/logo
Method:
PUT
URL Params
None
Data Params
{
"merchantID": string,
"logo": string
}
Run docker-compose up
. This will bring up the server together with mongo DB.
Login at host:8080/login
by given the admin credential username:password - "admin":"admin"
.
All set, you are now free to make API calls.
FAQs
Unknown package
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.