This script presents a proof of concept (PoC) for CVE-2024-21413, a significant security vulnerability discovered in Microsoft Outlook with a CVSS of 9.8. Termed the #MonikerLink bug, this vulnerability has far-reaching implications, including the potential leakage of local NTLM information and the possibility of remote code execution. Moreover, it highlights an attack vector that could bypass Office Protected View, thereby extending its threat to other Office applications.
Use this tool responsibly and ensure you have authorization from the target system's owner. This script requires SMTP authentication to send an email, bypassing SPF, DKIM, and DMARC checks, which helps in simulating a real-world attack scenario more effectively.
python CVE-2024-21413.py --server "<SMTP server>" --port <SMTP port> --username "<SMTP username>" --password "<SMTP password>" --sender "<sender email>" --recipient "<recipient email>" --url "<link URL>" --subject "<email subject>"
Parameters:
--server
: SMTP server hostname or IP.--port
: SMTP server port.--username
: SMTP server username for authentication.--password
: SMTP server password for authentication.--sender
: Sender email address.--recipient
: Recipient email address.--url
: Malicious path to include in the email.--subject
: Email subject.
![image](https://private-user-images.githubusercontent.com/5014849/305461442-5b68f853-e278-48cc-98fa-f560509d7d44.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ3MTg2NzMsIm5iZiI6MTcyNDcxODM3MywicGF0aCI6Ii81MDE0ODQ5LzMwNTQ2MTQ0Mi01YjY4Zjg1My1lMjc4LTQ4Y2MtOThmYS1mNTYwNTA5ZDdkNDQucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDgyNyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA4MjdUMDAyNjEzWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9OTQ3OWUzMGU2NTc0NDhjZDIyNmQwNjQxMGZkMDhhNWNhMWUzYzM4NGQxZGJlNjQ0ZGRkOTM4YTUzNmI4ZDMzYiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.Mtim3OdewweiQMYxrl7pUQG6SDCaXLJBfRlCOQjeKEY)
![image](https://private-user-images.githubusercontent.com/5014849/305460435-89edf325-9a16-4977-be3a-4e9064bb003f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ3MTg2NzMsIm5iZiI6MTcyNDcxODM3MywicGF0aCI6Ii81MDE0ODQ5LzMwNTQ2MDQzNS04OWVkZjMyNS05YTE2LTQ5NzctYmUzYS00ZTkwNjRiYjAwM2YucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDgyNyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA4MjdUMDAyNjEzWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NTJmN2IxMmZhZmUwNWZjODRkZTgzODFmNjQwMDU0MzhkYTk5ODMwZDRlNTZjY2VhZjI2MjI5MDE0MjdiNjhjMyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.SyMA_zVfjHHhaClCSKrp5euPvaZ8GmpCCCG2GpYL37o)
SMTP authentication is crucial for this demonstration to ensure the email sent bypasses common email validation checks such as SPF (Sender Policy Framework), DKIM (DomainKeys Identified Mail), and DMARC (Domain-based Message Authentication, Reporting, and Conformance). These security measures are designed to detect and prevent email spoofing, where attackers send emails from a forged address. By using authenticated SMTP, the demonstration closely mimics how a sophisticated attacker might circumvent these protections, making the testing environment more realistic and highlighting the importance of comprehensive email security practices.
- Initial release showcasing the exploit for CVE-2024-21413.
Checkpoint has done all the amazing research.
Alexander Hagenah
This tool is intended for educational and ethical testing purposes only. Unauthorized scanning, testing, or exploiting of systems is illegal and unethical. Ensure you have explicit, authorized permission to engage in any testing or exploitation activities against target systems.