
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Simple CGI HTTP Proxy.
X-Forwarded-For
header with the client IP address;User-Agent
header with the client' User-Agent
string;gzip
-ed content;stderr
;urllib2
for Python 2 and urllib.request
for Python 3.Install from PyPI using pip
:
$ pip install cgiproxy
Performs GET
request.
Arguments:
url
- The request URL as str
.headers
- Optional HTTP request headers as dict
.Returns:
(content, status_code, response_headers)
Performs HEAD
request.
Arguments:
url
- The request URL as str
.headers
- Optional HTTP request headers as dict
.Returns:
(content='', status_code, response_headers)
Performs POST
request. Converts query to POST
params if data
is None
.
Arguments:
url
- The request URL as str
.data
- Optional HTTP POST data as URL-encoded str
.headers
- Optional HTTP request headers as dict
.Returns:
(content, status_code, response_headers)
Gets HTTP status code.
Arguments:
url
- The request URL as str
.headers
- Optional HTTP request headers as dict
.Returns:
Gets HTTP response headers.
Arguments:
url
- The request URL as str
.headers
- Optional HTTP request headers as dict
.Returns:
dict
.import cgiproxy
status = cgiproxy.get_http_status('https://www.pageportrait.com/')
print(200 == status)
headers = cgiproxy.get_response_headers('https://komito.net/')
print(headers.get('content-type'))
content, status, headers = cgiproxy.do_head('https://www.dtm.io/')
print('' == content)
print(200 == status)
print(headers.get('content-type'))
content, status, headers = cgiproxy.do_get('https://www.dtm.io/', headers={
'User-Agent': 'Mozilla/5.0 (compatible; Darwin/18.2.0) cgiproxy/18.12',
'X-Custom-Header': 'value'
})
print('' != content)
print(200 == status)
print(headers.get('content-type'))
content, status, headers = cgiproxy.do_post('https://example.com/', data='aaa%3Dbbb%26ccc%3Dddd')
print('' != content)
print(200 == status)
print(headers.get('content-type'))
FAQs
The simple HTTP proxy.
We found that cgiproxy demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 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
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.