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.
With pip::
$ pip install WSGIProxy2
Install optionnal backends::
$ pip install requests urllib3
Create a proxy::
from wsgiproxy import HostProxy proxy = HostProxy(application_url)
Then use it. Here is an example with WebOb but you can use it like a classic WSGI application::
... ...from webob import Request req = Request.blank('/form.html') resp = req.get_response(proxy) print(resp.text)
The Proxy application accept some keyword arguments. Those arguments are passed to the client during the process.
If no client as specified then python httplib is used. It's recommended to use a more robust client able to manage a connection pool and stuff.
Use urllib3 <http://pypi.python.org/pypi/urllib3>
_::
proxy = HostProxy(application_url, client='urllib3')
Use requests <http://pypi.python.org/pypi/requests>
_. This client support response streaming::
proxy = HostProxy(application_url, client='requests')
remove stale dep on six
use github actions as CI
Add OPTIONS to defaults allowed methods
Drop restkit support
Drop py26 support
fix tests.
change the way requests iter response
Make allowed_methods check optional
Return the data not gzip decoded when using request
Initial release
FAQs
A WSGI Proxy with various http client backends
We found that WSGIProxy2 demonstrated a healthy version release cadence and project activity because the last version was released less than 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.