Oracle E-Business Suite — 1 vulnerability check
noctis ships 1 vulnerability check for Oracle E-Business Suite, covering 1 CVE; each one has to observe the bug on the live service before it reports a finding.
← All products · Feeds on GitHub
Oracle E-Business Suite 'IESFOOTPRINT' SQL Injection
| CVE | CVE-2017-3549 |
|---|---|
| Severity | critical · CVSS 9.1 |
| Category | sqli — SQL injection |
| Services | http, https |
| Detection | set_var, tcp_connect, script, match · highest QoD 75 |
| Feed | tests/vulnerabilities/oracle-ebs/CVE-2017-3549.yaml |
The target's Oracle E-Business Suite iesfootprint.jsp endpoint reflects the injected request parameters back into an authenticated application page, confirming the IESFOOTPRINT SQL injection (CVE-2017-3549). The check fetches AppsLocalLogin.jsp, follows the /OA redirect a real EBS returns, harvests the JSESSIONID and second session cookie, and replays them on the crafted iesfootprint.jsp request. An unauthenticated remote attacker can read, modify or delete database data.
How noctis detects it
- Raw TCP (TLS on HTTPS), sent verbatim:
GET /OA_HTML/AppsLocalLogin.jsp HTTP/1.0 - Parses / computes the next value with a Rhai script
- Parses / computes the next value with a Rhai script
- Raw TCP (TLS on HTTPS), sent verbatim:
GET {{redirect_path}} HTTP/1.0 - Parses / computes the next value with a Rhai script
- Parses / computes the next value with a Rhai script
- Raw TCP (TLS on HTTPS), sent verbatim:
GET /OA_HTML/iesfootprint.jsp?showgraph=%3C%3Etrue&dscriptId=%3C%3ESQL%20Injection%20Test… - Checks
sqli_resp.bannerfor(?s)^HTTP/1\.[01] 200.*>SQL Injection Test - Checks
sqli_resp.bannerfor>Sign Out<|>Oracle Applications<→ finding QoD 75: Oracle E-Business Suite 'IESFOOTPRINT' SQL Injection (CVE-2017-3549)
References:
Feed source — tests/vulnerabilities/oracle-ebs/CVE-2017-3549.yaml
# Oracle E-Business Suite 'IESFOOTPRINT' SQL injection (CVE-2017-3549).
#
# Oracle E-Business Suite 12.1.x / 12.2.x exposes an unauthenticated
# iesfootprint.jsp endpoint under /OA_HTML/ that reflects attacker-controlled
# request parameters (showgraph, dscriptId) into an authenticated-looking
# application page without proper validation, enabling SQL injection.
#
# The port mirrors the NASL's full request flow:
# 1. GET /OA_HTML/AppsLocalLogin.jsp.
# 2. If that reply carries a `Location: ...(/OA...)</A></BODY></HTML>`
# redirect, follow it with a second GET and use THAT reply for the
# session/marker harvest (a real EBS answers AppsLocalLogin.jsp with this
# redirect and only serves the login page + Set-Cookie on the /OA target;
# harvesting from the first reply would be a false negative on real hosts).
# When no redirect is present the original reply is used, exactly as the
# NASL falls back.
# 3. From the resulting reply, require BOTH the "title>Login</title" and the
# content="Oracle UIX" markers (the NASL AND-check), and harvest the
# JSESSIONID cookie plus the second, non-J session cookie out of the raw
# Set-Cookie header lines; both are replayed on the exploit request so the
# server treats it as a live EBS session.
# 4. GET the crafted iesfootprint.jsp; a vulnerable instance returns HTTP 200,
# reflects the injected ">SQL Injection Test" marker and serves the Oracle
# Applications chrome (">Sign Out<" / ">Oracle Applications<").
#
# Every request is sent verbatim over HTTP/1.0 via tcp_connect: reqwest would
# normalise the %3C%3E (=="<>") payload, and http_request collapses duplicate
# Set-Cookie headers (resp.headers is a HashMap), losing the second cookie.
#
# Ported from OpenVAS/Greenbone NVT
# 2017/gb_oracle_ebusiness_suite_iesfootprint_sql_inj_vuln.nasl (GPL-2.0-only).
uid: 38a91509-bba1-4513-8f1d-bd1469d0375c
name: "Oracle E-Business Suite 'IESFOOTPRINT' SQL Injection (CVE-2017-3549)"
description: |
The target's Oracle E-Business Suite iesfootprint.jsp endpoint reflects the
injected request parameters back into an authenticated application page,
confirming the IESFOOTPRINT SQL injection (CVE-2017-3549). The check fetches
AppsLocalLogin.jsp, follows the /OA redirect a real EBS returns, harvests the
JSESSIONID and second session cookie, and replays them on the crafted
iesfootprint.jsp request. An unauthenticated remote attacker can read, modify
or delete database data.
cves: [CVE-2017-3549]
cvss: 9.1
severity: critical
category: sqli
confidence_base: 0.30
tags: [oracle, e-business-suite, ebs, sqli, web]
services: [http, https]
author: noctis
version: "1.1.0"
references:
- "https://nvd.nist.gov/vuln/detail/CVE-2017-3549"
- "https://www.exploit-db.com/exploits/41926"
# Ported from OpenVAS/Greenbone NASL (GPL-2.0-only):
- "2017/gb_oracle_ebusiness_suite_iesfootprint_sql_inj_vuln.nasl"
steps:
# Gate/state variables, seeded before use so conditions never read an
# undefined Rhai var (which throws and is silently skipped) and so the
# scripts have existing keys to write back into.
- id: init-ebs-confirmed
action: set_var
var_name: ebs_confirmed
var_value: false
- id: init-cookie
action: set_var
var_name: cookie
var_value: ""
- id: init-sqli-marker
action: set_var
var_name: sqli_marker
var_value: false
- id: init-redirect-path
action: set_var
var_name: redirect_path
var_value: ""
- id: init-final-banner
action: set_var
var_name: final_banner
var_value: ""
# Fetch the EBS login page verbatim over HTTP/1.0 so every raw Set-Cookie
# header line lands in resp.banner (http_request would keep only the last
# Set-Cookie, since resp.headers is a HashMap).
- id: login-probe
action: tcp_connect
port: "{{port}}"
send: "GET /OA_HTML/AppsLocalLogin.jsp HTTP/1.0\r\nHost: {{target_host}}\r\n\r\n"
timeout_secs: 10
store_as: login_resp
# Default the harvest source to the login reply; overwritten below if a
# redirect is followed. Guard against a null banner (peer connected but sent
# nothing) so the later stridx() never throws.
- id: seed-final-banner
action: script
condition: "login_resp.connected == true && login_resp.banner != ()"
store_as: seed_final
code: |
final_banner = login_resp.banner;
final_banner
# Extract the /OA redirect target the NASL follows:
# eregmatch("Location: .*(/OA.*)</A></BODY></HTML>", res).
# Capture the /OA path off the Location line (robust to an absolute URL).
- id: extract-redirect
action: script
condition: "login_resp.connected == true && login_resp.banner != ()"
store_as: redirect_match
code: |
let r = eregmatch("Location: [^\r\n]*(/OA[^\r\n\"<]*)", login_resp.banner);
if r.len() > 1 { redirect_path = r[1]; }
redirect_path
# Follow the redirect with a second verbatim GET (only when one was present).
# A real EBS serves the login page + Set-Cookie on this /OA target.
- id: redirect-follow
action: tcp_connect
condition: "redirect_path != \"\""
port: "{{port}}"
send: "GET {{redirect_path}} HTTP/1.0\r\nHost: {{target_host}}\r\n\r\n"
timeout_secs: 10
store_as: redirect_resp
# When a redirect was followed, harvest from THAT reply instead.
- id: switch-final-banner
action: script
condition: "redirect_path != \"\" && redirect_resp.connected == true && redirect_resp.banner != ()"
store_as: switch_final
code: |
final_banner = redirect_resp.banner;
final_banner
# Dead-product gate + session harvest (mirrors the NASL):
# * require BOTH "title>Login</title" AND content="Oracle UIX" (AND, not OR);
# * pull cookie1 = JSESSIONID[^;]+ and cookie2 = the first non-J Set-Cookie;
# * only when all four are present set ebs_confirmed=true and build the
# "JSESSIONID=...; <second>" cookie replayed on the exploit request.
- id: harvest-session
action: script
store_as: harvest
code: |
let has_login = stridx(final_banner, "title>Login</title") >= 0;
let has_uix = stridx(final_banner, "content=\"Oracle UIX") >= 0;
let c1 = eregmatch("Set-Cookie: (JSESSIONID[^;]+)", final_banner);
let c2 = eregmatch("Set-Cookie: ([^J;]+)", final_banner);
if has_login && has_uix && c1.len() > 1 && c2.len() > 1 {
cookie = c1[1] + "; " + c2[1];
ebs_confirmed = true;
}
ebs_confirmed
# Active SQLi probe — crafted, URL-encoded GET sent verbatim (reqwest would
# normalise the %3C%3E payload) with the harvested session cookie. Only fires
# once an EBS install is confirmed. Reply is matched on resp.banner.
- id: iesfootprint-sqli
action: tcp_connect
condition: "ebs_confirmed == true"
port: "{{port}}"
send: "GET /OA_HTML/iesfootprint.jsp?showgraph=%3C%3Etrue&dscriptId=%3C%3ESQL%20Injection%20Test HTTP/1.0\r\nHost: {{target_host}}\r\nCookie: {{cookie}}\r\n\r\n"
timeout_secs: 10
store_as: sqli_resp
# Primary match: HTTP 200 AND the reflected injection marker (check_header).
- id: sqli-status-match
action: match
condition: "ebs_confirmed == true"
source: sqli_resp.banner
pattern: "(?s)^HTTP/1\\.[01] 200.*>SQL Injection Test"
on_match:
set_vars:
sqli_marker: true
# Extra check: the Oracle Applications session chrome must also be present
# (NASL extra_check make_list(">Sign Out<", ">Oracle Applications<")). Only
# with the status/marker match AND the chrome do we report.
- id: sqli-extra-check
action: match
condition: "ebs_confirmed == true && sqli_marker == true"
source: sqli_resp.banner
pattern: ">Sign Out<|>Oracle Applications<"
on_match:
finding:
title: "Oracle E-Business Suite 'IESFOOTPRINT' SQL Injection (CVE-2017-3549)"
description: "The iesfootprint.jsp endpoint returned HTTP 200 and reflected the injected parameters into an authenticated Oracle Applications page, confirming CVE-2017-3549."
remediation: "Apply the Oracle Critical Patch Update (April 2017, CPUApr2017) for E-Business Suite 12.1.x / 12.2.x."
confidence_delta: 0.55
qod: 75
evidence: "iesfootprint.jsp reflected the injected marker with session chrome: {{sqli_resp.banner}}"
stop: true