CVE-2017-8798
published 2017-05-11CVE-2017-8798: Integer signedness error in MiniUPnP MiniUPnPc v1.4.20101221 through v2.0 allows remote attackers to cause a denial of service or possibly have unspecified…
PriorityP261critical9.8CVSS 3.0
AVNACLPRNUINSUCHIHAH
EXPLOIT
EPSS
24.03%
97.6th percentile
Integer signedness error in MiniUPnP MiniUPnPc v1.4.20101221 through v2.0 allows remote attackers to cause a denial of service or possibly have unspecified other impact.
Affected
7 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | miniupnpc | < miniupnpc 1.9.20140610-3 (bookworm) | miniupnpc 1.9.20140610-3 (bookworm) |
| miniupnp_project | miniupnpd | — | — |
| miniupnp_project | miniupnpd | — | — |
| miniupnp_project | miniupnpd | — | — |
| miniupnp_project | miniupnpd | — | — |
| miniupnp_project | miniupnpd | — | — |
| miniupnp_project | miniupnpd | — | — |
Detection & IOCsextracted from sources · hover to see the quote
bytes↗
Transfer-Encoding: chunked with negative chunk size 0x80000000
- →Detect malicious chunked HTTP responses targeting UPnP clients: look for HTTP responses with Transfer-Encoding: chunked where a chunk size value is 0x80000000 or any value with the high bit set (negative when cast to signed int), delivered over the UPnP/SSDP interaction flow on port 1900/UDP and 65000/TCP or any attacker-controlled HTTP port. ↗
- →Monitor for SSDP M-SEARCH replies or NOTIFY messages on UDP/1900 (multicast 239.255.255.250) that redirect UPnP clients to attacker-controlled Location header URLs, as this is the first step to deliver the malicious chunked HTTP response. ↗
- →Inspect HTTP responses served to UPnP clients for Content-Length values that are attacker-controlled (e.g. 9041) combined with a chunked body containing a chunk size of 0x80000000, which triggers the signedness bug in getHTTPResponse() at miniwget.c:305. ↗
- →Alert on processes (e.g. bitcoind -upnp, qBittorrent, Transmission) making outbound HTTP GET requests to unexpected local-network hosts for XML root description URLs (e.g. GET /xxxx.xml), which indicates UPnP IGD discovery is active and the host may be targeted. ↗
- →The vulnerable code path is getHTTPResponse() in miniwget.c; a crash/access violation at miniwget.c:305 (memcpy) is a strong indicator of exploitation. Look for crash dumps or AV signals referencing this function. ↗
- ·The attack requires the attacker to be on the local network segment (or able to respond to SSDP discovery) to intercept UPnP IGD requests; it is not a direct internet-facing remote exploit in typical configurations. ↗
- ·RCE is unconfirmed and considered only a theoretical possibility in multithreaded environments sharing a heap; the confirmed impact is DoS (ACCESS_VIOLATION_READ / heap corruption). ↗
- ·miniupnpc reads HTTP responses in chunks of max 2048 bytes, which limits the attacker's ability to supply large response chunks and renders a reliable RCE scenario impossible, reducing the impact to DoS. ↗
CVSS provenance
nvdv3.09.8CRITICALCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
nvdv2.07.5HIGHAV:N/AC:L/Au:N/C:P/I:P/A:P
osv9.8CRITICAL
vendor_debian9.8CRITICAL
CVEs like this are exactly what “Exploited This Week” covers.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
GHSA
GHSA-3wfp-98cg-vgm9: Integer signedness error in MiniUPnP MiniUPnPc v1
ghsa_unreviewed·2022-05-13
CVE-2017-8798 [CRITICAL] CWE-119 GHSA-3wfp-98cg-vgm9: Integer signedness error in MiniUPnP MiniUPnPc v1
Integer signedness error in MiniUPnP MiniUPnPc v1.4.20101221 through v2.0 allows remote attackers to cause a denial of service or possibly have unspecified other impact.
OSV
CVE-2017-8798: Integer signedness error in MiniUPnP MiniUPnPc v1
osv·2017-05-11·CVSS 9.8
CVE-2017-8798 [CRITICAL] CVE-2017-8798: Integer signedness error in MiniUPnP MiniUPnPc v1
Integer signedness error in MiniUPnP MiniUPnPc v1.4.20101221 through v2.0 allows remote attackers to cause a denial of service or possibly have unspecified other impact.
Ubuntu
MiniUPnP vulnerability
vendor_ubuntu·2017-05-24
CVE-2017-8798 MiniUPnP vulnerability
Title: MiniUPnP vulnerability
Summary: MiniUPnP could be made to crash or run programs if it received specially
crafted network traffic.
It was discovered that MiniUPnP incorrectly handled memory. A remote
attacker could use this issue to cause a denial of service or possibly
execute arbitrary code with privileges of the user running an application
that uses the MiniUPnP library.
Instructions: In general, a standard system update will make all the necessary changes.
Ubuntu
MiniUPnP vulnerability
vendor_ubuntu·2017-05-24
CVE-2017-8798 MiniUPnP vulnerability
Title: MiniUPnP vulnerability
Summary: MiniUPnP could be made to crash or run programs if it received specially
crafted network traffic.
USN-3298-1 fixed a vulnerability in MiniUPnP. This update provides the
corresponding update for Ubuntu 17.04.
Original advisory details:
It was discovered that MiniUPnP incorrectly handled memory. A remote
attacker could use this issue to cause a denial of service or possibly
execute arbitrary code with privileges of the user running an application
that uses the MiniUPnP library.
Instructions: In general, a standard system update will make all the necessary changes.
Debian
CVE-2017-8798: miniupnpc - Integer signedness error in MiniUPnP MiniUPnPc v1.4.20101221 through v2.0 allows...
vendor_debian·2017·CVSS 9.8
CVE-2017-8798 [CRITICAL] CVE-2017-8798: miniupnpc - Integer signedness error in MiniUPnP MiniUPnPc v1.4.20101221 through v2.0 allows...
Integer signedness error in MiniUPnP MiniUPnPc v1.4.20101221 through v2.0 allows remote attackers to cause a denial of service or possibly have unspecified other impact.
Scope: local
bookworm: resolved (fixed in 1.9.20140610-3)
bullseye: resolved (fixed in 1.9.20140610-3)
forky: resolved (fixed in 1.9.20140610-3)
sid: resolved (fixed in 1.9.20140610-3)
trixie: resolved (fixed in 1.9.20140610-3)
No detection rules found.
HackerOne
CVE-2017-8798 - miniupnp getHTTPResponse chunked encoding integer signedness error
hackerone·2019-11-12·CVSS 9.8
CVE-2017-8798 [CRITICAL] CVE-2017-8798 - miniupnp getHTTPResponse chunked encoding integer signedness error
CVE-2017-8798 - miniupnp getHTTPResponse chunked encoding integer signedness error
### Integer signedness error in miniupnpc [1] allows remote attackers to cause a denial of service condition (access violation and heap corruption) via specially crafted HTTP response
An integer signedness error was found in miniupnp's `miniwget` allowing
an unauthenticated remote entity typically located on the
local network segment to trigger a heap corruption or an access violation
in miniupnp's http response parser when processing a specially crafted
chunked-encoded response to a request for the xml root description url.
* affects
* all versions >= `v1.4.20101221` (released 21/12/2010; `~6 years ago`)
* all configurations as its a core part of the library
* impact
* DoS (access violation due to buffer
Bugzilla
CVE-2017-8798 miniupnpc: Integer signedness error
bugzilla·2017-05-11·CVSS 9.8
CVE-2017-8798 [CRITICAL] CVE-2017-8798 miniupnpc: Integer signedness error
CVE-2017-8798 miniupnpc: Integer signedness error
Integer signedness error in MiniUPnP MiniUPnPc v1.4.20101221 through
v2.0 allows remote attackers to cause a denial of service or possibly
have unspecified other impact.
References:
https://github.com/tintinweb/pub/tree/master/pocs/cve-2017-8798
http://miniupnp.free.fr/files/changelog.php?file=miniupnpc-2.0.20170509.tar.gz
http://seclists.org/oss-sec/2017/q2/247
Discussion:
Created miniupnpc tracking bugs for this issue:
Affects: epel-7 [bug 1450064]
Affects: fedora-all [bug 1450063]
---
This CVE Bugzilla entry is for community support informational purposes only as it does not affect a package in a commercially supported Red Hat product. Refer to the dependent bugs for status of those individual community products.
Bugzilla
CVE-2017-8798 miniupnpc: Integer signedness error [epel-7]
bugzilla·2017-05-11·CVSS 9.8
CVE-2017-8798 [CRITICAL] CVE-2017-8798 miniupnpc: Integer signedness error [epel-7]
CVE-2017-8798 miniupnpc: Integer signedness error [epel-7]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of epel-7.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
Discussion:
Use the following template to for the 'fedpkg update' request
Bugzilla
CVE-2017-8798 miniupnpc: Integer signedness error [fedora-all]
bugzilla·2017-05-11·CVSS 9.8
CVE-2017-8798 [CRITICAL] CVE-2017-8798 miniupnpc: Integer signedness error [fedora-all]
CVE-2017-8798 miniupnpc: Integer signedness error [fedora-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of fedora-all.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
NOTE: this issue affects multiple supported versions of Fedora. Whi
http://miniupnp.free.fr/files/changelog.php?file=miniupnpc-2.0.20170509.tar.gzhttps://github.com/tintinweb/pub/tree/master/pocs/cve-2017-8798https://lists.debian.org/debian-lts-announce/2020/04/msg00027.htmlhttp://miniupnp.free.fr/files/changelog.php?file=miniupnpc-2.0.20170509.tar.gzhttps://github.com/tintinweb/pub/tree/master/pocs/cve-2017-8798https://lists.debian.org/debian-lts-announce/2020/04/msg00027.html
2017-05-11
Published