Yusasp Asset Manager — 1 vulnerability check
noctis ships 1 vulnerability check for Yusasp Asset 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
YusASP Web Asset Manager reachable without authentication
| CVE | CVE-2005-1668 |
|---|---|
| Severity | high · CVSS 7.5 |
| Category | exposure — Exposure |
| Services | http, https |
| Detection | script, set_var, http_request, match · highest QoD 75 |
| Feed | tests/vulnerabilities/yusasp-asset-manager/CVE-2005-1668.yaml |
YusASP Web Asset Manager (the ASP asset manager of the InnovaStudio editor) has no access control of its own: a direct request to assetmanager.asp opens a file manager over the web folder that lists, uploads and deletes files, so an unprotected copy gives anyone write access to the site.
This check requests assetmanager.asp under /editor/assetmanager/ (at the web root and under /scripts, /cgi-bin and /admin) and under /assetmanager/ and /admin/assetmanager/. The finding is reported when the page (HTTP 200) carries the hidden inpAssetBaseFolder field filled with the server's base folder, which shows the script ran, together with a file-manager control (folder selector, delete or upload form), and a random page of the same directory does not carry that field. The check only reads the page: nothing is uploaded or deleted.
How noctis detects it
- Parses / computes the next value with a Rhai script
- HTTP(S) request
GET {{d}}/assetmanager.asp - Parses / computes the next value with a Rhai script
- HTTP(S) request
GET {{d}}/{{sc.ctl}} - Parses / computes the next value with a Rhai script
- Parses / computes the next value with a Rhai script
- Checks
hitforassetmanager\.asp$→ finding QoD 75: YusASP Web Asset Manager reachable without authentication (CVE-2005-1668)
References:
- https://nvd.nist.gov/vuln/detail/CVE-2005-1668
- http://www.securityfocus.com/bid/13501
- http://www.osvdb.org/16198
Feed source — tests/vulnerabilities/yusasp-asset-manager/CVE-2005-1668.yaml
# YusASP Web Asset Manager — unprotected assetmanager.asp file manager (CVE-2005-1668).
#
# YusASP Web Asset Manager 1.0 (the InnovaStudio ASP asset manager shipped with
# the WYSIWYG editor under /editor/assetmanager/) has no access control of its
# own: a direct request to assetmanager.asp opens the file manager of the web
# folder, which lists, uploads and deletes files (BID 13501, OSVDB 16198). Sites
# are expected to protect the directory themselves; an unprotected copy gives
# anyone write access to the web root.
#
# Detection (QoD 75, read-only GET): assetmanager.asp is requested under the
# usual install paths. The flaw is confirmed when the reply (HTTP 200, not a
# redirect) carries the hidden inpAssetBaseFolder field with a non-empty value
# that is not ASP source, i.e. the page ran and printed its base folder, together
# with a file-manager control (folder selector, delete or upload form), and a
# random .asp page of the same directory answers without the field (catch-all
# front ends are not reported). Nothing is uploaded or deleted.
#
# Ported from OpenVAS/Greenbone NVT `pre2008/yusasp_asset_manager_detection.nasl`
# (OID 1.3.6.1.4.1.25623.1.0.18192, GPL-2.0-only): GET
# <dir>/editor/assetmanager/assetmanager.asp for "/" and the CGI dirs, flagged
# when the body matches `input type="hidden" name="inpAssetBaseFolder`.
# Differences: the field must carry a printed base folder (a copy served as raw
# source or a page that merely mentions the name is not reported), a
# file-manager control must be present, a random sibling page is used as a
# catch-all control, and the /assetmanager/ and /admin/ layouts are tried too.
# CVSS: NVD carries only a CVSS v2 score (7.5).
uid: c9f8839f-bdbd-4667-b245-48ef33ce9843
name: "YusASP Web Asset Manager reachable without authentication (CVE-2005-1668)"
description: |
YusASP Web Asset Manager (the ASP asset manager of the InnovaStudio editor)
has no access control of its own: a direct request to assetmanager.asp opens
a file manager over the web folder that lists, uploads and deletes files, so
an unprotected copy gives anyone write access to the site.
This check requests assetmanager.asp under /editor/assetmanager/ (at the web
root and under /scripts, /cgi-bin and /admin) and under /assetmanager/ and
/admin/assetmanager/. The finding is reported when the page (HTTP 200)
carries the hidden inpAssetBaseFolder field filled with the server's base
folder, which shows the script ran, together with a file-manager control
(folder selector, delete or upload form), and a random page of the same
directory does not carry that field. The check only reads the page: nothing is
uploaded or deleted.
cves: [CVE-2005-1668]
cvss: 7.5
severity: high
category: exposure
confidence_base: 0.30
tags: [yusasp, innovastudio, asset-manager, file-manager, asp, unauthenticated, exposure]
services: [http, https]
author: noctis
version: "1.0.0"
references:
- "https://nvd.nist.gov/vuln/detail/CVE-2005-1668"
- "http://www.securityfocus.com/bid/13501"
- "http://www.osvdb.org/16198"
steps:
- id: gen
action: script
code: |
#{ ctl: "noctis" + rand_hex(6) + ".asp" }
store_as: sc
- id: init-hit
action: set_var
var_name: hit
var_value: ""
# ── Per install dir (loop group) ──────────────────────────────────────────
- id: init-r
action: set_var
var_name: r
var_value: {status: 0, body: ""}
loop:
var: d
over:
- "/editor/assetmanager"
- "/scripts/editor/assetmanager"
- "/cgi-bin/editor/assetmanager"
- "/admin/editor/assetmanager"
- "/assetmanager"
- "/admin/assetmanager"
- id: init-c
action: set_var
var_name: c
var_value: {status: 0, body: ""}
- id: init-base
action: set_var
var_name: base
var_value: ""
- id: probe
action: http_request
method: GET
path: "{{d}}/assetmanager.asp"
port: "{{port}}"
tls_insecure: true
follow_redirects: false
timeout_secs: 8
condition: 'hit == ""'
store_as: r
# Base folder printed by the page (empty when absent, raw source or not run).
- id: check-probe
action: script
condition: 'hit == ""'
code: |
let b = if type_of(r.body) == "string" { r.body } else { "" };
if r.status != 200 || b.contains("<%") { return ""; }
let t = eregmatch("(?i)<input[^>]*name=[\"']?inpAssetBaseFolder[0-9]?[\"' ][^>]*>", b);
if t.len() < 1 { return ""; }
let m = eregmatch("(?i)value=[\"']([^\"'<>]+)[\"']", t[0]);
if m.len() < 2 { return ""; }
let v = m[1];
let ctl = ereg("(?i)name=[\"']?(selCurrFolder|inpCurrFolder|inpFileToDelete|inpCurrFolder2)[\"' >]", b)
|| ereg("(?i)<input[^>]*type=[\"']?file[\"' ]", b);
if ereg("\\S", v) && ctl { v } else { "" }
store_as: base
# Catch-all control: a random page of the same directory.
- id: control
action: http_request
method: GET
path: "{{d}}/{{sc.ctl}}"
port: "{{port}}"
tls_insecure: true
follow_redirects: false
timeout_secs: 8
condition: 'hit == "" && base != ""'
store_as: c
- id: check
action: script
condition: 'hit == ""'
code: |
let cb = if type_of(c.body) == "string" { c.body } else { "" };
if base != "" && c.status > 0 && !ereg("(?i)name=[\"']?inpAssetBaseFolder", cb) { d + "/assetmanager.asp" } else { "" }
store_as: hit
- id: keep-base
action: script
condition: 'hit != "" && base != ""'
code: |
base
store_as: folder
# ── Finding ───────────────────────────────────────────────────────────────
- id: report
action: match
source: hit
pattern: "assetmanager\\.asp$"
condition: 'hit != ""'
on_match:
finding:
title: "YusASP Web Asset Manager reachable without authentication (CVE-2005-1668)"
description: "The YusASP / InnovaStudio asset manager answered without any authentication and opened its file manager over the web folder: anyone can list, upload and delete files there, including server-side scripts, which leads to code execution on the web server."
remediation: "Restrict access to the asset manager directory (authentication or IP filtering on /editor/assetmanager/), wrap assetmanager.asp in the site's own session check, or remove the asset manager if it is not used."
confidence_delta: 0.50
qod: 75
evidence: "GET {{hit}} returned the file manager (HTTP 200) with base folder {{folder}}; a random page of the same directory did not"
stop: true