-
Notifications
You must be signed in to change notification settings - Fork 13.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
MobileIron Core Log4Shell RCE Module (CVE-2021-44228) #16837
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|
smcintyre-r7
reviewed
Aug 2, 2022
Restest with changes
|
Merged! Thanks alot @bwatters-r7 and @jbaines-r7 ! |
Release NotesThis adds an exploit for MobileIron which is affected by the Log4Shell vulnerability. The result is unauthenticated remote code execution in the context of the web application user. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This module exploits MobileIron Core using Log4Shell. The JNDI string is stored in the
j_username
parameter during a login attempt. Exploitation results in access as thetomcat
user. Mandiant noted MobileIron Core has been exploited in the wild.There is nothing too crazy about this module's implementation. I largely stole from @smcintyre-r7's Ubiquiti Controller and VMware Log4Shell modules. Technically speaking, we could add a bit of a version check in
check
because you can extract themajor
.minor
version of the target from the login page (/mifs/user/login.jsp
). But I opted not too because it seemed like unnecessary work. But, I figured I'd be honest about that detail.Ivanti states that MobileIron Core before 11.5 is affected. But we only have access to 11.2 and 10.6, so that's what was tested 馃し
Verification
Follow installation steps listed in the module's documentation.
msfconsole
use exploit/linux/http/mobileiron_core_log4shell
set LHOST
set RHOSTS
set SRVHOST
set SRVPORT
(optional, but I set it to 1389 so msfconsole doesn't have root privs)run
PoC Video || GTFO
https://www.youtube.com/watch?v=H9tUXMmvZ34
PCAP || GTFO
mobileiron_core_log4shell.zip