Metasploit auxiliary scanner that passively fingerprints NGINX Server headers and flags versions within the CVE-2026-42945 affected range without sending exploit traffic.
Metasploit Framework auxiliary scanner
Author: Patrick Hoogeveen (x0xr00t)
Team: Team Sl0ppyRoot
Project: Sl0ppyRoot Security Tools
Module version: 1.0
Assessment target: CVE-2026-42945
Important: This module performs a passive, version-based exposure assessment. It sends one ordinary HTTP
GETrequest per target. It does not exploit the target, test command execution, or attempt denial of service. A version match is not proof that a target is exploitable.
NGINX Rift collects a normal HTTP response and checks whether an explicitly disclosed NGINX version falls within the upstream version range associated with CVE-2026-42945.
The vulnerability is configuration-dependent. A remote Server header
cannot establish whether the affected rewrite configuration exists,
whether a vendor backported the fix, or whether a reverse proxy has
altered the response. The module therefore uses conservative result
labels and preserves inconclusive observations as inconclusive.
Server response header.The module encodes these upstream version thresholds:
Threshold Version
Lower bound used by the module 0.6.27
Last version in the encoded affected range 1.30.0
Stable fix threshold 1.30.1
Mainline fix threshold 1.31.0
These are upstream version comparisons, not a definitive package-level verdict. Distribution maintainers may backport fixes without changing the upstream-looking version string. Always verify the installed package build and vendor advisory.
Save nginx_rift_2026.rb under your local Metasploit module tree:
mkdir -p ~/.msf4/modules/auxiliary/scanner/http/
cp nginx_rift_2026.rb ~/.msf4/modules/auxiliary/scanner/http/nginx_rift_2026.rb
ruby -c ~/.msf4/modules/auxiliary/scanner/http/nginx_rift_2026.rb
The syntax check should return:
Syntax OK
Start or return to msfconsole, then reload local modules:
reload_all
use auxiliary/scanner/http/nginx_rift_2026
show info
show options
If Metasploit does not find the module, confirm the file is in the exact
path above, the filename ends in .rb, and your Metasploit installation
supports local modules under ~/.msf4/modules/.
Only scan systems you own or are explicitly authorized to assess.
use auxiliary/scanner/http/nginx_rift_2026
show options
set RHOSTS 192.0.2.10
set RPORT 80
set TARGETURI /
run
Replace 192.0.2.10 with the authorized target. It is a
documentation-only example address.
set RHOSTS 192.0.2.10
set RPORT 443
set SSL true
set TARGETURI /
run
If the target IP hosts multiple websites, specify the intended virtual host:
set RHOSTS 192.0.2.10
set RPORT 443
set SSL true
set VHOST app.example.test
set TARGETURI /
run
Use a hostname that you are authorized to assess. VHOST overrides the
HTTP Host header.
set TIMEOUT 20
run
TIMEOUT must be between 1 and 120 seconds. The default is 10 seconds.
set SHOW_EVIDENCE true
run
Evidence is enabled by default. Metasploit's verbose output controls
(-v / -vv, depending on your console invocation) may also be useful
for troubleshooting.
By default, the module stores assessment notes when database reporting is available, including inconclusive observations:
set REPORT_UNKNOWN true
set REPORT_POTENTIAL false
run
To avoid creating notes for inconclusive or non-NGINX observations:
set REPORT_UNKNOWN false
To also create a Metasploit vulnerability record for a version-only potential exposure:
set REPORT_POTENTIAL true
REPORT_POTENTIAL is disabled by default. Enabling it does not make the
finding confirmed; the record explicitly identifies it as potential
exposure.
Option Default Description
RHOSTS Required by Metasploit Target host or scanner
target range.
RPORT 80 Target TCP port. Use
443 for typical HTTPS
targets.
SSL false Use TLS/HTTPS. Enable
for HTTPS targets.
TARGETURI / Path requested for
passive fingerprinting.
TIMEOUT 10 HTTP request timeout in
seconds; valid range is
1--120.
FOLLOW_REDIRECTS true Follow HTTP redirects
before evaluating the
response.
VHOST Empty Optional HTTP Host
header override.
USER_AGENT Sl0ppyRoot-NginxRiftScanner/2.1.0 User-Agent sent with
the ordinary GET
request.
REPORT_UNKNOWN true Save inconclusive and
non-NGINX observations
as database notes when
possible.
REPORT_POTENTIAL false Create a vulnerability
record for version-only
potential exposure.