Apache Axis2 — 1 vulnerability check
noctis ships 1 vulnerability check for Apache Axis2, covering 1 CVE; each one has to observe the bug on the live service before it reports a finding.
← All products · Feeds on GitHub
Apache Axis2 Default Credentials
| CVE | CVE-2010-0219 |
|---|---|
| Severity | critical · CVSS 10.0 |
| Category | default-credentials — Default credentials |
| Services | http, https |
| Detection | tcp_connect, match, set_var, script · highest QoD 75 |
| Feed | tests/vulnerabilities/axis2/CVE-2010-0219.yaml |
Tests the Apache Axis2 administration console for the known default credentials (admin / axis2). Submits the default login form to <ctx>/axis2-admin/login (web root and the stock /axis2 webapp context) and confirms authentication by matching the authenticated admin-module page body returned only on a successful login, following the post-login 30x redirect (with the issued JSESSIONID cookie) as modern Axis2 releases do.
How noctis detects it
- Raw TCP (TLS on HTTPS), sent verbatim:
POST {{ctx_path}}/axis2-admin/login HTTP/1.0, for each of 2 values - Checks
resp.bannerforWelcome to Axis2 Web Admin Module|You are now logged into the Axis2 a…→ finding QoD 75: Apache Axis2 admin console accepted default credentials (admin/axis2) at …/axis2-admin/login — authenticated admin module reached: … - Parses / computes the next value with a Rhai script
- Raw TCP (TLS on HTTPS), sent verbatim:
GET {{redirect_location}} HTTP/1.0 - Checks
resp2.bannerforWelcome to Axis2 Web Admin Module|You are now logged into the Axis2 a…→ finding QoD 75: Apache Axis2 admin console accepted default credentials (admin/axis2) at …/axis2-admin/login — authenticated admin module reached after log…
References:
Feed source — tests/vulnerabilities/axis2/CVE-2010-0219.yaml
# Apache Axis2 Default Credentials — CVE-2010-0219
#
# The Apache Axis2 administration console (/axis2-admin/login) ships with a
# well-known default administrator credential (admin / axis2). An attacker who
# can reach the console logs in with these defaults and gains full control of
# deployed services (upload/remove services → remote code execution).
#
# Detection (active check, faithful to the cited NASL): POST the default
# credentials to <ctx>/axis2-admin/login and confirm the login SUCCEEDED by
# matching the authenticated admin-module page body ("Welcome to Axis2 Web Admin
# Module !!" / "You are now logged into the Axis2 administration console"). A
# cookie alone (JSESSIONID) is NOT sufficient — a servlet container issues it
# even on a failed login — so the match keys on the authenticated page text.
#
# The console is probed at both the web root and the stock /axis2 webapp context
# (loop over ["", "/axis2"]), since a default Axis2 deploy lives under /axis2.
#
# Two Axis2 response shapes are handled, exactly as the NASL does:
# * <= 1.7.2: the login POST returns 200 directly with the admin-module page,
# matched on the POST response (resp.banner).
# * >= 1.7.3: the login POST returns a 30x redirect; the welcome text is NOT in
# the POST response. The NASL extracts the Location header and the JSESSIONID
# session cookie, then GETs the Location carrying that cookie and matches the
# same welcome text on that authenticated page. Ported below as a script step
# (case-insensitive eregmatch on resp.banner) + a guarded tcp_connect
# follow-up GET of the returned Location.
# The raw response (status line + headers + body) is read via tcp_connect +
# resp.banner. QoD 75 (response analysis — content match).
#
# Not ported: the <= 0.9.3 /adminlogin -> /admin.jsp fallback (GET /adminlogin
# with the default creds, then GET /admin.jsp with the cookie, matching "Welcome
# to the Axis2 administration system!"). It targets a 15-year-old pre-release
# line; porting it faithfully would require a third mock variant and does not
# close the modern-release false-negative the redirect branch fixes, so it is
# intentionally left out to avoid broadening the surface.
#
# Ported from OpenVAS/Greenbone NASL 2015/sw_apache_axis2_admin_default_credentials.nasl
# (GPL-2.0-only).
uid: 6f1c9d2a-5e84-4b37-9a0d-2c7f8e1b4a63
name: "Apache Axis2 Default Credentials (CVE-2010-0219)"
description: |
Tests the Apache Axis2 administration console for the known default
credentials (admin / axis2). Submits the default login form to
<ctx>/axis2-admin/login (web root and the stock /axis2 webapp context) and
confirms authentication by matching the authenticated admin-module page body
returned only on a successful login, following the post-login 30x redirect
(with the issued JSESSIONID cookie) as modern Axis2 releases do.
cves: [CVE-2010-0219]
cvss: 10.0
severity: critical
confidence_base: 0.30
category: default-credentials
tags: [apache, axis2, default-credentials, auth-bypass]
services: [http, https]
author: noctis
version: "1.0.0"
references:
- "https://nvd.nist.gov/vuln/detail/CVE-2010-0219"
- "OpenVAS/Greenbone NASL 2015/sw_apache_axis2_admin_default_credentials.nasl (GPL-2.0-only)"
steps:
# 1 — submit the default credentials to the admin console login endpoint, at
# both the web root ("") and the stock /axis2 webapp context. The loop
# group below (all the following non-loop steps) re-runs per context.
- id: admin-login
action: tcp_connect
port: "{{port}}"
send: "POST {{ctx_path}}/axis2-admin/login HTTP/1.0\r\nHost: {{target_host}}\r\nContent-Type: application/x-www-form-urlencoded\r\nContent-Length: 44\r\n\r\nuserName=admin&password=axis2&submit=+Login+"
timeout_secs: 10
store_as: resp
loop:
over:
- ""
- "/axis2"
var: ctx_path
# 2 — direct case (Axis2 <= 1.7.2): the POST itself returns the admin module.
# A failed login re-renders the login form ("Invalid auth credentials!")
# and would NOT match this, even though it still carries a JSESSIONID cookie.
- id: match-admin-module
action: match
source: resp.banner
pattern: "Welcome to Axis2 Web Admin Module|You are now logged into the Axis2 administration"
on_match:
finding:
confidence_delta: 0.50
qod: 75
evidence: "Apache Axis2 admin console accepted default credentials (admin/axis2) at {{ctx_path}}/axis2-admin/login — authenticated admin module reached: {{resp.banner}}"
stop: true
# 3 — redirect case (Axis2 >= 1.7.3): initialise the vars referenced below so
# the later condition never reads an undefined variable. Reset each
# iteration of the context loop.
- id: init-redirect-location
action: set_var
var_name: redirect_location
var_value: ""
- id: init-jsession
action: set_var
var_name: jsession
var_value: ""
# 4 — when the login POST answered with a 30x redirect, extract the Location
# header and the JSESSIONID session cookie from the raw response
# (case-insensitive, for proxies that lowercase header names). These stay
# "" when the response was not a redirect (direct / patched cases), which
# skips the follow-up GET below.
- id: extract-redirect
action: script
store_as: redirect_probe
code: |
if ereg("^HTTP/[0-9.]+ 30[0-9]", resp.banner) {
let loc = eregmatch("Location:\\s*([^\\r\\n]+)", resp.banner, true);
if loc.len() > 1 { redirect_location = loc[1]; }
let cook = eregmatch("Set-Cookie:\\s*JSESSIONID=([^;\\r\\n ]+)", resp.banner, true);
if cook.len() > 1 { jsession = cook[1]; }
}
redirect_location
# 5 — follow the redirect to the authenticated admin page, carrying the
# JSESSIONID cookie the login issued (exactly as the NASL does). The
# Location is taken verbatim from the response, so it already carries the
# right webapp context. Only runs when a redirect was detected.
- id: follow-redirect
action: tcp_connect
port: "{{port}}"
condition: "redirect_location != \"\""
send: "GET {{redirect_location}} HTTP/1.0\r\nHost: {{target_host}}\r\nCookie: JSESSIONID={{jsession}}\r\n\r\n"
timeout_secs: 10
store_as: resp2
# 6 — confirm the default login on the followed page body (same welcome text).
- id: match-admin-module-redirect
action: match
source: resp2.banner
condition: "redirect_location != \"\""
pattern: "Welcome to Axis2 Web Admin Module|You are now logged into the Axis2 administration"
on_match:
finding:
confidence_delta: 0.50
qod: 75
evidence: "Apache Axis2 admin console accepted default credentials (admin/axis2) at {{ctx_path}}/axis2-admin/login — authenticated admin module reached after login redirect: {{resp2.banner}}"
stop: true