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 simple dev HTTP/HTTPS proxy for replacing CORS headers.
Download the appropriate version for your platform from UNCORS releases page. Once downloaded, the binary can be run from anywhere. You don’t need to install it into a global location. This works well for shared hosts and other systems where you don’t have a privileged account.
Ideally, you should install it somewhere in your PATH
for easy use. /usr/local/bin
is the most probable location.
We currently offer images for Docker https://hub.docker.com/r/evg4b/uncors
docker run -p 3000:3000 evg4b/uncors --source http://local.github.com --target //github.com
Prerequisite Tools
Fetch from GitHub
UNCORS uses the Go Modules support built into Go 1.11 to build. The easiest way to get started is to clone UNCORS source code in a directory outside of the GOPATH, as in the following example:
mkdir $HOME/src
cd $HOME/src
git clone https://github.com/evg4b/uncors.git
cd uncors
go install
If you are a Windows user, substitute the $HOME environment variable above with %USERPROFILE%
.
./uncors --port 8080 --target 'https://github.com' --source 'http://localhost'
--source
- Local host with protocol for to the resource from which proxying will take place.--target
- Target host with protocol for to the resource to be proxyed.--http-port
- Local HTTP linthing port.--https-port
- Local HTTPS linthing port.--cert-file
- Path to HTTPS certificate file.--key-file
- Path to matching for certificate private key.sequenceDiagram
participant Client
participant Uncors
participant Server
alt Handling OPTIONS queries
Client ->> Uncors: Access-Control-Request
Uncors ->> Client: Allow-Control-Request
end
alt Handling Data queries
Client ->> Uncors: GET, POST, PUT... query
Note over Uncors: Replacing url with target<br/> in headers and cookies
Uncors-->>Server: Real GET, POST, PUT... query
Server->>Uncors: Real responce
Note over Uncors: Replacing url with source<br/> in headers and cookies
Uncors-->>Client: Data responce
end
FAQs
A simple dev HTTP/HTTPS reverse proxy for replacing CORS headers.
The npm package uncors receives a total of 269 weekly downloads. As such, uncors popularity was classified as not popular.
We found that uncors demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
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.