vendor:
Appweb3
by:
Project Zero
8,8
CVSS
HIGH
Buffer Overflow
120
CWE
Product Name: Appweb3
Affected Version From: appweb3
Affected Version To: appweb3
Patch Exists: YES
Related CWE: CVE-2017-9082
CPE: a:embedthis:appweb3
Metasploit:
N/A
Other Scripts:
N/A
Tags: N/A
CVSS Metrics: N/A
Nuclei References:
N/A
Nuclei Metadata: N/A
Platforms Tested: None
2017
PanOS mprItoa() Buffer Overflow
PanOS uses a modified version of the appweb3 embedded webserver, which contains a bug in the core utility routine mprItoa. The size parameter is documented to be the size of the buffer at *buf, but if the value exceeds that it will write one more byte than that as a nul terminator. An unauthenticated php script can be called to invoke mprItoa() on a default installation at /unauth/php/errorPage.php, which can corrupt the stored GOT pointer, resulting in some unexpected routine being called on the attacker-controlled MaResponse object, and crashing with some heap corruption.
Mitigation:
Palo Alto Networks have published a fix for this issue: http://securityadvisories.paloaltonetworks.com/Home/Detail/68