Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
solr-proxy
Advanced tools
Reverse proxy to secure Solr, rejecting requests that might modify the Solr index.
Reverse proxy to make a Solr instance read-only, rejecting requests that have the potential to modify the Solr index.
This is a rewrite of solr-security-proxy with some bug fixes and additional features.
For use from the command line:
npm install -g solr-proxy
For use in another application:
npm install solr-proxy
From the command-line:
solr-proxy
Options are:
--port Listen on this port [default: 8008]
--backendPort Solr backend port [default: 8080]
--backendHost Solr backend host [default: "localhost"]
--validPaths Allowed paths (comma separated) [default: "/solr/select"]
--invalidParams Blocked parameters (comma separated) [default: "qt,stream"]
--validMethods Allowed HTTP methods (comma separated) [default: "GET"]
--quiet, -q Do not write messages to STDOUT
--version, -v Show version
--help, -h Show this message
To start the server from your application:
var SolrProxy = require('solr-proxy');
SolrProxy.start();
You can pass a port number as the first argument to start()
. You may pass a
falsy value (such as null
or undefined
) if you wish to use the port number
specified specified in the listenPort
property in the options object (second
argument). If the port is not specified in either argument, the default value of
8008
is used.
You can pass an options object as the second argument to start()
.
var defaultOptions = {
validHttpMethods: ['GET'], // all other HTTP methods will be disallowed
validPaths: ['/solr/select'], // all other paths will be denied
invalidParams: ['qt', 'stream'], // blocks requests with params qt or stream.* (all other params are allowed)
backend: { // proxy to solr at this location
host: 'localhost',
port: 8080
}
};
To enable TLS for your proxy, include an ssl
object within the options
object.
var options = {
ssl: {
key: fs.readFileSync('key.pem'),
cert: fs.readFileSync('cert.pem'),
}
};
var proxy = SolrProxy.start(null, options);
To enable verbose logging, set environment variable DEBUG
to include solr-proxy
.
solr-proxy has the following default rules:
/solr/select
pathqt
and stream.*
query parameters.MIT
FAQs
Reverse proxy to secure Solr, rejecting requests that might modify the Solr index.
The npm package solr-proxy receives a total of 7 weekly downloads. As such, solr-proxy popularity was classified as not popular.
We found that solr-proxy demonstrated a not healthy version release cadence and project activity because the last version was released 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.
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.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.