Endpoint Redirects to Admin Page and Provides Admin role
- Triaged in 5 days
- Fixed in 14 days
- Disclosed after 14 months
Summary: By navigating to https://████████.mil/apexcrrel/f?p=165:56, the user will automatically be redirected to the web application admin portal with Admin access.
Description: There is a web application running at the following URL:
https://█████.mil/apexcrrel/f?p=165:1::::::
████
For context, this is a web application running on a Oracle Apex Express platform. The '165' in the 'p' parameter in the URL is a unique identifier for the web application. The '1' following the '165' represents the page that the user is viewing.
The page '56' can be used to automatically obtain administrator access to this application.
Here we can see that we can't access the 45th page (https://████.mil/apexcrrel/f?p=165:45) because we are not an Admin.
███████
However, navigating to the 56th page (https://██████████.mil/apexcrrel/f?p=165:56) automatically redirects to the 45th page but provides a valid admin session.
█████████
We can also see that we have the ability to manage users, including admin users.
██████████
As a note, I found this due to the application at https://████.mil/apexcrrel/f?p=164:5:::::: This is a separate web application, given that the unique identifier is now 164.
On this page there is a 'Go To Admin' button. When clicking this, it calls the /apexcrrel/DISDI_PORTAL_DEV.login_admin endpoint. This redirects the user to the 56th page, breaking the access control and providing Admin access.
███████
Impact
This is a critical severity bug that impacts confidentiality, integrity, and availability.
Confidentiality: An attacker can obtain first names, last names, email addresses, and filenames of uploaded files. Integrity: An attacker can upload files, edit documents, and edit user roles Availability: An attacker could remove all users, including admins, making it difficult for users to use the application.
System Host(s)
█████.mil
Affected Product(s) and Version(s)
Oracle Apex Express
CVE Numbers
Steps to Reproduce
- To verify that you do not have any valid sessions to view the admin pages, visit https://██████.mil/apexcrrel/f?p=165:45
- Now, navigate to https://█████████.mil/apexcrrel/f?p=165:56
- You now have admin access to the application.
Suggested Mitigation/Remediation Actions
Context
The target is a web application hosted on a .mil domain and built on Oracle APEX (Application Express). The report describes it as running on an "Oracle Apex Express platform". APEX applications are addressed through a URL structure where the p parameter carries a numeric application identifier and the value after the colon is the page number, for example f?p=165:1. The application in question is identified by 165, and the researcher refers to individual pages by their number, such as page 45 and page 56.
The feature at the centre of the report is page 56 of that application. According to the researcher, visiting page 56 automatically redirects the user to the admin portal and hands them a valid administrator session. Page 45 is the admin page that a normal, unauthenticated or non-admin user is not supposed to reach.
Setup
The report does not describe any special tooling, accounts or versions beyond the affected product, which it lists as Oracle Apex Express. The precondition is simply that the tester has no valid session for the admin pages, which the first reproduction step is designed to confirm.
Finding it
The researcher arrived at the issue through a second, separate APEX application, identified by 164 rather than 165, running at:
https://████.mil/apexcrrel/f?p=164:5::::::
On that page there is a Go To Admin button. Clicking it calls the following endpoint:
/apexcrrel/DISDI_PORTAL_DEV.login_admin
That endpoint redirects the user to page 56 of the 165 application. Because page 56 itself grants admin access, the redirect chain breaks the access control: the button is meant to take a user to an admin area, but the destination page hands out the admin session rather than checking for one.
Exploitation
Step 1: confirm you have no admin session
Visit the admin page directly:
https://██████.mil/apexcrrel/f?p=165:45
As a user without an admin session, access to page 45 is refused. The researcher shows this state in a screenshot: the page cannot be accessed because the user is not an Admin.
Step 2: navigate to page 56
https://█████████.mil/apexcrrel/f?p=165:56
Navigating to page 56 automatically redirects to page 45, but this time it provides a valid admin session. The researcher shows the resulting admin view in a screenshot.
Step 3: use the admin session
With the session obtained in step 2, the researcher can manage users, including admin users. A further screenshot shows the user management capability available in this state.
Root cause
The report does not include the application logic behind page 56, so the exact mistake is not stated. What the behaviour shows is that page 56 performs the redirect to the admin page and establishes an admin session as part of that flow, without verifying that the requester is entitled to one. The access control on page 45 is therefore bypassed by approaching it through page 56 rather than directly. The Go To Admin button on the 164 application calls the login_admin endpoint, which redirects the user to page 56 of the 165 application.
Impact
The researcher rates this as critical, affecting confidentiality, integrity and availability:
- Confidentiality: an attacker can obtain first names, last names, email addresses and filenames of uploaded files.
- Integrity: an attacker can upload files, edit documents and edit user roles.
- Availability: an attacker could remove all users, including admins, making it difficult for users to use the application.
Fix
The report does not describe a fix or a change made after disclosure.
Variants to test
Hunting notes
The researcher demonstrated impact by first showing the admin page was inaccessible without a session, then showing the same page reachable with full admin rights after a single navigation to page 56, and finally showing the user management screen that the session unlocked. That sequence, denial first and access second, is what makes the access control break unambiguous.
What happened, in plain words
A public-facing web application belonging to the U.S. Department of Defence was built on Oracle APEX, a tool for building web applications on top of an Oracle database. The application had an admin area, a set of pages meant only for administrators, and a normal visitor was correctly blocked from it. However, one particular page of the same application, page 56, was wired up so that simply visiting it logged the visitor in as an administrator and sent them to the admin area. No password, no account, nothing. The researcher found this through a Go To Admin button on a different application on the same server, which calls an endpoint that redirects to page 56.
This write-up walks through the same finding from the beginning, explaining each idea as it comes up.
Context
The target is a web application on a .mil domain, built on Oracle APEX (Application Express). The report calls the platform "Oracle Apex Express".
APEX builds applications out of pages, and each page has an address. The address follows a pattern where the p parameter carries a number that identifies the application, and the value after the colon is the page number. For example, f?p=165:1 means application 165, page 1. The application in this report is number 165, and the researcher refers to its pages by number, such as page 45 and page 56.
A quick comparison: think of a large office building. The building is the application, each room is a page, and the room number is the page number. Most rooms are open to visitors, but the server room (the admin area) should only open for staff with the right badge.
The feature at the centre of the report is page 56 of application 165. According to the researcher, visiting page 56 automatically redirects the user to the admin portal and hands them a valid administrator session. Page 45 is the admin page that a normal visitor, or a user who is not an administrator, is not supposed to reach.
Two terms used above are worth defining now:
- Redirect: the server's way of saying "not here, go there instead". Your browser asks for one address and is told to load another automatically. Like a receptionist pointing you to a different desk.
- Session: a short-lived record the server keeps about you after you log in, so it does not have to ask for your password on every page. Your browser holds a small piece of data (usually a cookie) that identifies that session. Think of it as a wristband you get at an event: once you have it, staff let you into the areas your wristband allows.
Setup
The report does not describe any special tooling, accounts or versions beyond the affected product, which it lists as Oracle Apex Express. The only precondition is that the tester has no valid session for the admin pages, and the first reproduction step exists to confirm exactly that.
In other words, you do not need hacking software for this. A normal browser is enough, as long as you start out not logged in as an administrator.
Finding it
The researcher arrived at the issue through a second, separate APEX application, identified by 164 rather than 165, running at:
https://████.mil/apexcrrel/f?p=164:5::::::
Reading this address piece by piece:
https://is the normal secure web protocol, the padlock in your browser.████.milis the server's hostname, redacted here./apexcrrel/is a path on that server, a folder-like location shared by the applications.f?p=164:5::::::is the APEX page address: application164, page5. The extra colons are empty placeholders for optional values that are not being used here.
On that page there is a Go To Admin button. Clicking it calls the following endpoint:
/apexcrrel/DISDI_PORTAL_DEV.login_admin
An endpoint is a specific address on a server that does something when it is requested, rather than just showing a page. It is the difference between walking into a shop and pressing a service bell: the bell triggers an action. Here the endpoint is named login_admin, which suggests its job is to log someone in as an administrator.
That endpoint redirects the user to page 56 of the 165 application. Because page 56 itself grants admin access, the redirect chain breaks the access control: the button is meant to take a user to an admin area, but the destination page hands out the admin session rather than checking for one.
Access control is the set of rules deciding who may do what. A good access control check asks "who are you, and are you allowed here?" before letting you in. Here, the check on the admin page was bypassed by approaching it through a different door.
Exploitation
Step 1: confirm you have no admin session
Visit the admin page directly:
https://██████.mil/apexcrrel/f?p=165:45
This is application 165, page 45, the admin page. The researcher visits it first, before doing anything else, to establish a baseline: as a user without an admin session, access to page 45 is refused. The report shows this state in a screenshot, where the page cannot be accessed because the user is not an Admin.
Why do this first? Because a bug report is only convincing if it shows the door was locked before you opened it. If you only showed the admin page working, nobody could tell whether you had simply been an administrator all along.
Step 2: navigate to page 56
https://█████████.mil/apexcrrel/f?p=165:56
Same application, page 56 instead of 45. Navigating to page 56 automatically redirects to page 45, but this time it provides a valid admin session. The researcher shows the resulting admin view in a screenshot.
So the sequence is: you ask for page 56, the server sends you to page 45, and on the way it gives you the administrator wristband. The admin page then sees the wristband and lets you in. The page that was supposed to check your badge was never asked whether you deserved one.
Step 3: use the admin session
With the session obtained in step 2, the researcher can manage users, including admin users. A further screenshot shows the user management capability available in this state.
This step matters because it turns "I saw an admin page" into "I could actually do administrative things". Managing users, including other administrators, is a serious power: it means the session is not a cosmetic glitch but real authority over the application.
Root cause
The report does not include the application logic behind page 56, so the exact mistake is not stated. What the behaviour shows is that page 56 performs the redirect to the admin page and establishes an admin session as part of that flow, without verifying that the requester is entitled to one. The access control on page 45 is therefore bypassed by approaching it through page 56 rather than directly. The Go To Admin button on the 164 application calls the login_admin endpoint, which redirects the user to page 56 of the 165 application.
A useful comparison: a hotel might lock the front door of a staff room, but leave a service corridor that opens it from the inside. The lock on the front door is real, but it does not help if another route reaches the same room and unlocks it on the way.
Impact
The researcher rates this as critical, affecting confidentiality, integrity and availability. These three words are the standard way security people describe what a bug can damage:
- Confidentiality means keeping data secret. Here, an attacker can obtain first names, last names, email addresses and filenames of uploaded files.
- Integrity means keeping data correct and trustworthy. Here, an attacker can upload files, edit documents and edit user roles.
- Availability means keeping the service usable. Here, an attacker could remove all users, including admins, making it difficult for users to use the application.
Notice that the impact is not just "seeing" things. Editing user roles and deleting users are actions that change the system, which is why the researcher calls it critical.
Fix
The report does not describe a fix or a change made after disclosure.
In plain terms: the check should happen at the point where the wristband is handed out, not only at the door of the room it opens.
Variants to test
Hunting notes
Recon simply means looking around before attacking: reading URLs, clicking buttons, noting patterns. The researcher demonstrated impact by first showing the admin page was inaccessible without a session, then showing the same page reachable with full admin rights after a single navigation to page 56, and finally showing the user management screen that the session unlocked. That sequence, denial first and access second, is what makes the access control break unambiguous.
Glossary
- Access control: the rules that decide who is allowed to see or do what in an application.
- Admin / administrator: a user with elevated rights, able to manage the application and other users.
- APEX (Oracle Application Express): a tool for building web applications on an Oracle database, where each application has numbered pages.
- API: an address on a server that performs an action or returns data when requested, rather than showing a normal page.
- Availability: the property of a service being usable when people need it; damage to availability means people cannot use it.
- Confidentiality: the property of data being kept secret from those not allowed to see it.
- Cookie: a small piece of data a website stores in your browser, often used to identify your session.
- Endpoint: a specific address on a server that triggers an action when requested.
- Integrity: the property of data being correct and unaltered by unauthorised parties.
- Page number: in APEX, the number after the colon in the
pparameter that selects which page of an application you are viewing. - Parameter: a named value in a URL, such as
p, that tells the server what you want. - Redirect: an automatic instruction from the server telling your browser to load a different address instead.
- Recon: the exploratory phase of looking around a target to understand its structure before testing it.
- Session: a temporary record the server keeps about you after you log in, identified by data your browser holds, so you do not have to log in on every page.
- Severity: a rating of how serious a bug is, here critical.
- Vulnerability: a weakness in an application that allows someone to do something they should not be able to do.