Open Redirect in Host Authorization Middleware Detection
| Reporter | Title | Published | Views | Family All 34 |
|---|---|---|---|---|
| CVE-2021-44528 | 10 Jan 202214:10 | – | attackerkb | |
| CVE-2021-44528 | 10 Jan 202216:21 | – | circl | |
| Rails Action Pack 输入验证错误漏洞 | 10 Jan 202200:00 | – | cnnvd | |
| CVE-2021-44528 | 7 Jan 202200:00 | – | cve | |
| CVE-2021-44528 | 7 Jan 202200:00 | – | cvelist | |
| [SECURITY] [DSA 5372-1] rails security update | 13 Mar 202303:06 | – | debian | |
| CVE-2021-44528 | 7 Jan 202200:00 | – | debiancve | |
| Debian DSA-5372-1 : rails - security update | 14 Mar 202300:00 | – | nessus | |
| Linux Distros Unpatched Vulnerability : CVE-2021-44528 | 30 Aug 202500:00 | – | nessus | |
| actionpack Open Redirect in Host Authorization Middleware | 14 Dec 202121:19 | – | github |
10
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Specially crafted "X-Forwarded-Host" headers in combination with certain "allowed host" formats can cause the ."""
import re
from kittysploit import *
from lib.protocols.http.http_client import Http_client
class Module(Scanner, Http_client):
__info__ = {
'name': 'Open Redirect in Host Authorization Middleware Detection',
'description': 'Specially crafted "X-Forwarded-Host" headers in combination with certain "allowed host" formats can cause the Host Authorization middleware in Action Pack to redirect users to a malicious website.',
'author': ['KittySploit Team'],
'severity': 'medium',
'tags': ['web', 'scanner', 'cve', 'cve2021', 'seclists', 'redirect', 'rubyonrails', 'vuln'],
'agent': {
'risk': 'active',
'effects': ['network_probe'],
'expected_requests': 1,
'reversible': True,
'approval_required': False,
'produces': ['tech_hints', 'risk_signals', 'endpoints'],
'cost': 1.0,
'noise': 0.3,
'value': 1.0,
'requires': {
'min_endpoints': 0,
'min_params': 0,
'tech_hints_any': [],
'tech_hints_all': [],
'specializations_any': [],
'risk_signals_any': [],
'auth_session': False,
'capabilities_any': [],
'capabilities_all': [],
'confidence_min': {},
'confidence_min_any': {},
'endpoint_pattern_any': [],
'param_any': [],
'api_surface_ready': False,
},
'chain': {
'produces_capabilities': [
{
'capability': 'admin_surface',
'from_detail': '',
},
],
'consumes_capabilities': [],
'option_bindings': {},
'suggested_followups': ['auxiliary/scanner/http/login_page_detector'],
},
},
'references': [
'https://seclists.org/oss-sec/2021/q4/att-160/7-0-host-authorzation-open-redirect.patch',
'https://nvd.nist.gov/vuln/detail/CVE-2021-44528',
'https://github.com/rails/rails/commit/0fccfb9a3097a9c4260c791f1a40b128517e7815',
'https://www.debian.org/security/2023/dsa-5372',
'https://security.netapp.com/advisory/ntap-20240208-0003/',
],
'cve': 'CVE-2021-44528',
}
def run(self):
r = self.http_request(method="GET", path='/', allow_redirects=False)
if not r or r.status_code not in (301, 302, 307, 308):
return False
headers = "\n".join(f"{k}: {v}" for k, v in r.headers.items())
header_regexes = ('(?m)^(?:Location\\s*?:\\s*?)(?:https?:\\/\\/|\\/\\/|\\/\\\\\\\\|\\/\\\\)(?:[a-zA-Z0-9\\-_\\.@]*)interact\\.sh\\/?(\\/|[^.].*)?$',)
if (any(re.search(rx, headers, 0) for rx in header_regexes)):
self.set_info(
severity='medium',
reason="Open Redirect in Host Authorization Middleware detected",
path='/',
)
return True
return False
Data
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation
28 Jul 2026 11:27Current
CVSS 25.8
CVSS 3.16.1
EPSS0.04182