
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
Proxy tool based on NodeJS for front-end development.
npm install --save-dev uuaper
| name | detail |
|---|---|
targer | proxy url |
debug | default: false |
headers | request headers |
mock | mock local files, default: false |
cache | cache dir, only cache content-type is json request |
server | build-in server settings, include(port, staticPath, proxyPath) |
auth | auth logic |
| name | detail |
|---|---|
getAuth(cb) | you auth logic |
forwardCookie(cb) | before make sure cookie |
retry(res, data) | retry logic |
| auth setting | auth bird-auth |
const uuaper = require('uuaper');
const uupp = new uuaper({
target: 'http://xxx.xxx.com/',
headers: {
cookie: 'xxx'
},
debug: true,
server: {
port: 1337,
staticPath: __dirname,
proxyPath: ['/aaa'] // 需要转发的context路径,譬如/aaa下面的所有请求都走proxy
}
});
const express = require('express');
const app = express();
const uuaper = require('uuaper');
app.use('/api', new uuaper({
target: 'http://xxx.github.com/',
debug: true,
headers: {
refer: 'http://xxx.com'
},
cache: './cache'
}));
const uuaper = require('uuaper');
const uupp = new uuaper({
target: 'http://xxx.xxx.com/',
auth: {
username: 'xxx',
password: 'xxx',
server: 'http://xxx.xxx.com/authorize?service=xxxx',
retry: function(res, data) {
return +res.statusCode === 403;
}
}
});
const uuaper = require('uuaper');
const uupp = new uuaper({
target: 'http://xxx.xxx.com/',
auth: {
username: 'xxx',
password: 'xxx',
type: 1, // default 1 is username and password; 3 is username and verification code.
server: 'http://xxx.xxx.com/authorize?service=xxxx',
retry: function(res, data) {
return +res.statusCode === 403;
},
getAuth: function(cb) {
cb('your cookies');
}
}
});
const uuaper = require('uuaper');
const uupp = new uuaper({
target: 'http://xxx.xxx.com/',
auth: {
type: 'passport',
username: 'xxx',
password: 'xxx',
server: 'https://passport.qatest.xxx.com/', //default passport.xxx.com
forwardCookie: function (cb) {
// use `uuaper.client` do something to get extrenal cookie
uuaper.client.get('xxx.xxxx.com', function () {
cb && cb(uuaper.client.get_cookies_string());
});
}
}
});
bird-auth 版本,移除无效依赖包。limit settingauth logiccontent-type处理优化content-type为stream判断rejectUnauthorized: false处理https证书问题FAQs
Proxy tool based on nodejs for front-end development
We found that uuaper demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.