Local File Read vulnerability on ██████████ [HtUS]
The Oracle E-Business Suite bispgraph.jsp endpoint is vulnerable to directory traversal, allowing an attacker to read arbitrary local files on the server. An attacker could access sensitive files such as /etc/passwd, /etc/motd, and /etc/profile.
- Triaged in 44 hours
- Fixed in 5 months
- Paid in 46 hours
- Disclosed after 6 months
Kindly check screenshot ███████: In case if scope question. Because i picked this site from DOD website list under 'dod sites'. Lets move on to the bug now :)
Summary:
Local File Include vulnerability on ███. Oracle Ebs Bispgrapgh is prone to a directory traversal vulnerability that can be exploited by remote attackers to access sensitive data on the server.
Steps To Reproduce:
[add details for how we can reproduce the issue]
- to view /etc/passwd file visit https://██████/OA_HTML/bispgraph.jsp%0D%0A.js?ifn=passwd&ifl=/etc/
- to view /etc/motd file visit https://██████████/OA_HTML/bispgraph.jsp%0D%0A.js?ifn=motd&ifl=/etc/
- to view /etc/profile visit https://██████/OA_HTML/bispgraph.jsp%0D%0A.js?ifn=profile&ifl=/etc/
Supporting Material/References:
[list any additional material (e.g. screenshots, logs, etc.)]
Impact
An attacker could read local files on the web server that they would normally not have access to, such as the application source code or configuration files containing sensitive information on how the website is configured.
Context
The target is a host in the U.S. Department of Defence scope, picked from the DoD website list under "dod sites". The vulnerable component is Oracle E-Business Suite's bispgraph.jsp, a JSP page served under the /OA_HTML/ path. The report describes the underlying issue as a directory traversal in Oracle EBS Bispgraph that lets a remote attacker read files on the server.
The weakness class recorded for the report is PHP Local File Inclusion, although the affected page is a JSP under Oracle EBS. The report itself frames the bug as a local file include / directory traversal in Bispgraph.
Setup
The report does not describe any account, role, tool or version. The only precondition shown is that the page is reachable at the /OA_HTML/bispgraph.jsp path on the target host, and that the ifn and ifl parameters are accepted by it.
Finding it
The researcher picked the host from the DoD website list under 'dod sites'. The page bispgraph.jsp takes two parameters, ifn (a file name) and ifl (a location or directory); the report shows URLs that return local files. The odd suffix %0D%0A.js appended to the JSP name is part of the working request as shown in the report.
Exploitation
Each step below is a URL taken directly from the report. The host has been redacted.
Step 1: read /etc/passwd
https://██████/OA_HTML/bispgraph.jsp%0D%0A.js?ifn=passwd&ifl=/etc/
ifn=passwd names the file and ifl=/etc/ sets the directory. The server returns the contents of /etc/passwd.
Step 2: read /etc/motd
https://██████████/OA_HTML/bispgraph.jsp%0D%0A.js?ifn=motd&ifl=/etc/
The same pattern with a different file name returns /etc/motd.
Step 3: read /etc/profile
https://██████/OA_HTML/bispgraph.jsp%0D%0A.js?ifn=profile&ifl=/etc/
Again the same pattern, this time returning /etc/profile.
The report does not include the response bodies for these requests. It states only that the files are viewable through these URLs.
Root cause
The report attributes the issue to a directory traversal in Oracle EBS Bispgraph that lets a remote attacker access sensitive data on the server. The report does not show the server-side code, so the exact validation that is missing is not stated.
Impact
An attacker could read local files on the web server that they would not normally have access to, including application source code and configuration files that contain sensitive information about how the site is configured. The report does not enumerate which files beyond the three /etc examples were confirmed readable.
Fix
What should be done is to stop ifl and ifn from resolving to arbitrary filesystem paths, for example by restricting the parameters to a fixed set of permitted files or directories and rejecting path components that escape the intended location.
Variants to test
- Try other files under
/etc/by changingifnwhile keepingifl=/etc/, for example configuration files that commonly hold credentials. A positive result is the file contents returned in the response. - Try other directories in
ifl, such as the application's own configuration or source directories. A positive result is any file outside the intended directory being returned. - Try the same
ifn/iflpattern on other Oracle EBS hosts in scope that expose/OA_HTML/bispgraph.jsp. A positive result is the same file read behaviour on a different host.
Hunting notes
This kind of bug hides in older enterprise middleware pages that take a file name and a directory as separate parameters, particularly Oracle EBS paths under /OA_HTML/. During recon, a bispgraph.jsp endpoint that accepts ifn and ifl is the signal to test. The researcher showed impact by reading well-known system files (/etc/passwd, /etc/motd, /etc/profile) that any reviewer can recognise as proof of local file read. The report was rated high severity with a CVSS of 7.5 and a bounty of 500 USD.
What happened, in plain words
A security researcher found a page on a U.S. Department of Defence website that would happily hand over files stored on the server itself. The page is part of Oracle E-Business Suite, a large piece of business software that organisations use to run finance, HR and other back-office processes. One of its pages is called bispgraph.jsp. It takes two pieces of information from the address bar: a file name and a folder. The researcher discovered that by putting a system folder such as /etc/ in one of them and a file name such as passwd in the other, the server returned the contents of that file. That is a local file read: a visitor from the internet can read files on the machine that they were never meant to see.
The report was filed on HackerOne against the U.S. Department of Defence program. It was rated high severity, with a CVSS score of 7.5, and paid a bounty of 500 USD. It was disclosed on 6 January 2023.
Context
The target is a host inside the U.S. Department of Defence scope. The researcher picked it from the DoD website list, under the heading "dod sites". Scope is the set of systems a program explicitly allows researchers to test; testing outside it is not allowed.
The vulnerable component is bispgraph.jsp, a page served under the /OA_HTML/ path of Oracle E-Business Suite. The .jsp ending means it is a JavaServer Page: a page written in Java that runs on the server and sends back a result, usually HTML, to the browser. Oracle E-Business Suite is a collection of business applications, and /OA_HTML/ is the part of its web address space that serves these pages.
The report describes the underlying issue as a directory traversal in Oracle EBS Bispgraph that lets a remote attacker read files on the server. Directory traversal (also called path traversal) means tricking a program into stepping outside the folder it was supposed to look in. A simple comparison: a librarian is told to fetch a book from the "new arrivals" shelf, but if you can write the instruction yourself, you can say "go up two floors and open the safe" instead. The program follows the path you gave it rather than staying where it belongs.
The weakness class recorded for the report is PHP Local File Inclusion, even though the affected page is a JSP under Oracle EBS. The report itself frames the bug as a local file include / directory traversal in Bispgraph. Local file inclusion means a page is made to include, and therefore display, a file from the server's own disk.
Setup
The report does not describe any account, role, tool or version. The only precondition shown is that the page is reachable at the /OA_HTML/bispgraph.jsp path on the target host, and that the ifn and ifl parameters are accepted by it.
A parameter is a named value attached to the end of a web address after a question mark, like a form field filled in through the URL. In ?ifn=passwd&ifl=/etc/, there are two parameters: ifn with the value passwd, and ifl with the value /etc/. The & separates them.
Finding it
The researcher located the host through the DoD website list. The page bispgraph.jsp takes two parameters, ifn (a file name) and ifl (a location or directory). The report shows that supplying a path in ifl and a file name in ifn returns local files.
The odd suffix %0D%0A.js appended to the JSP name is part of the working request as shown in the report. %0D and %0A are URL-encoded control characters: a carriage return and a line feed, the two characters that end a line of text. The report does not explain why this suffix is needed for the request to work.
Exploitation
Each step below is a URL taken directly from the report. The host has been redacted.
Step 1: read /etc/passwd
https://██████/OA_HTML/bispgraph.jsp%0D%0A.js?ifn=passwd&ifl=/etc/
ifn=passwd names the file and ifl=/etc/ sets the directory. The server returns the contents of /etc/passwd.
Line by line: https:// is the normal secure web protocol. The redacted part is the host name. /OA_HTML/bispgraph.jsp is the page being called, with %0D%0A.js stuck on the end as described above. After the ?, ifn=passwd tells the page which file to fetch, and ifl=/etc/ tells it which folder to look in. /etc/ is a standard folder on Linux and similar systems that holds system-wide configuration files. /etc/passwd is one of the best-known files there: it lists user accounts on the machine. It does not contain passwords in the modern sense, but it is a classic proof that a file read works, because every reviewer recognises it and it should never be visible to an outside visitor.
Step 2: read /etc/motd
https://██████████/OA_HTML/bispgraph.jsp%0D%0A.js?ifn=motd&ifl=/etc/
The same pattern with a different file name returns /etc/motd. Only the value of ifn changed, from passwd to motd. /etc/motd stands for "message of the day": a short text file that a system shows to people when they log in. It is another harmless-looking system file that proves the page will read whatever name you give it.
Step 3: read /etc/profile
https://██████/OA_HTML/bispgraph.jsp%0D%0A.js?ifn=profile&ifl=/etc/
Again the same pattern, this time returning /etc/profile. Here ifn is profile. /etc/profile is a startup script that sets environment settings for users when they open a shell session. Reading it can reveal how the system is configured.
The report does not include the response bodies for these requests. It states only that the files are viewable through these URLs.
Root cause
The report attributes the issue to a directory traversal in Oracle EBS Bispgraph that lets a remote attacker access sensitive data on the server. In other words, the page takes the folder and file name straight from the address bar and uses them to open a file, instead of only allowing the specific files it was designed to serve.
Impact
An attacker could read local files on the web server that they would not normally have access to, including application source code and configuration files that contain sensitive information about how the site is configured. Source code can reveal how the application works and where its weak points are; configuration files often hold database connection details and other secrets. The report does not enumerate which files beyond the three /etc examples were confirmed readable.
Fix
What should be done is to stop ifl and ifn from resolving to arbitrary filesystem paths, for example by restricting the parameters to a fixed set of permitted files or directories and rejecting path components that escape the intended location.
Variants to test
- Try other files under
/etc/by changingifnwhile keepingifl=/etc/, for example configuration files that commonly hold credentials. A positive result is the file contents returned in the response. - Try other directories in
ifl, such as the application's own configuration or source directories. A positive result is any file outside the intended directory being returned. - Try the same
ifn/iflpattern on other Oracle EBS hosts in scope that expose/OA_HTML/bispgraph.jsp. A positive result is the same file read behaviour on a different host.
Hunting notes
This kind of bug hides in older enterprise middleware pages that take a file name and a directory as separate parameters, particularly Oracle EBS paths under /OA_HTML/. Middleware is the software layer that sits between the operating system and the applications, and older versions of it often grew up before these risks were widely understood. During recon, short for reconnaissance, the information-gathering phase before testing, a bispgraph.jsp endpoint that accepts ifn and ifl is the signal to test. An endpoint is simply a specific address on a server that accepts requests.
The researcher showed impact by reading well-known system files (/etc/passwd, /etc/motd, /etc/profile) that any reviewer can recognise as proof of local file read. The report was rated high severity with a CVSS of 7.5 and a bounty of 500 USD. CVSS is a standard scoring system for the severity of a vulnerability, where higher numbers mean more serious; 7.5 falls in the high range.
Glossary
- Bounty: a payment made by a bug bounty program to a researcher who reports a valid vulnerability.
- Bug bounty program: an organised scheme in which an organisation invites outside researchers to report security problems, usually with rules and rewards.
- Configuration file: a file that stores settings for a program or system, often including sensitive details such as connection information.
- CVSS: Common Vulnerability Scoring System, a standard way of scoring how severe a vulnerability is.
- Directory traversal (path traversal): tricking a program into accessing files outside the folder it was meant to use, by supplying a path that points elsewhere.
- Endpoint: a specific address on a server that accepts requests, such as a particular page or API path.
- Environment settings: values that shape how a program or shell session behaves, such as where to look for tools or which language to use.
- HackerOne: a platform where organisations run bug bounty programs and researchers submit reports.
- Host: a single computer or server reachable on a network, identified by its address or name.
- Impact: the practical harm a vulnerability could cause if someone exploited it.
- JavaServer Page (JSP): a web page written in Java that runs on the server and sends a result back to the browser.
- Local file inclusion: a flaw where a page is made to include and display a file from the server's own disk.
- Local file read: the ability to make a server return the contents of files stored on it, which the requester should not be able to see.
- Middleware: software that sits between the operating system and applications, handling things like web requests and messaging.
- Oracle E-Business Suite (EBS): a large collection of business applications from Oracle used for finance, HR and similar back-office work.
- Parameter: a named value attached to a web address after a question mark, used to pass information to the page.
- Recon (reconnaissance): the information-gathering phase before testing, where a researcher maps out what systems and pages exist.
- Redacted: hidden or blanked out, usually to protect sensitive details such as host names.
- Remote attacker: someone attacking a system over a network from somewhere else, rather than sitting at the machine.
- Response body: the actual content a server sends back, as opposed to its status or headers.
- Root cause: the underlying reason a vulnerability exists, rather than its visible symptom.
- Scope: the set of systems and addresses a program explicitly allows researchers to test.
- Severity: how serious a vulnerability is judged to be, often expressed as a label such as low, medium, high or critical.
- Source code: the human-written instructions that make up a program.
- URL encoding: writing special characters in a web address as a percent sign followed by codes, so they can be carried safely;
%0Dis a carriage return and%0Ais a line feed. - Validation: checking that input is acceptable before using it, for example confirming a file name refers to an allowed file.
- Vulnerability: a weakness in software or configuration that someone could abuse to cause harm.