Skip to content
IDOR Write-up Intermediate

Oracle SBC: Multiple Security Vulnerabilities Leading to Unauthorized Access and Denial of Service

The Oracle SBC file management function had an IDOR that let a low-privileged user list and download arbitrary files, a path traversal that let a user write a downloaded configuration file to any directory on the server, and a denial-of-service flaw where a crafted download request pinned a CPU core at full load. An authenticated low-privileged attacker could read sensitive files, write files outside the intended folder, or make the device stop responding to legitimate requests.

Harold Zang Follow

Published on trustwave.com

Change theme to light

Harold Zang, on trustwave.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 6 min read.

Context

Oracle Communications Session Border Controller (SBC) is a product used by service providers to deliver real-time communications such as VoLTE, VoIP, video conferencing and calling, presence, IM and IPTV. The research described here was carried out by Harold Zang, Senior Technical Security Specialist, and Jeremy Nunn, Security Specialist, at Trustwave SpiderLabs, and covers three vulnerabilities found in the Oracle SBC.

The relevant feature is the SBC's 'File Management' function, which is exposed to application users. It lets a low privileged user navigate sub-folders and download files, for example navigating to the 'Logs' folder to download or audit log files such as access.log. The implementation of this function is flawed, and all three findings below come out of it.

Setup

The testing was done as an authenticated low privileged application user, with a web interception proxy in front of the browser so that requests to the SBC application could be inspected and modified. The steps below assume that the user can reach the 'System Objects' page and the 'File Management' function, and that the proxy is intercepting the traffic. The report does not give product versions or a specific proxy tool.

Finding it

The starting observation is that the File Management function is driven by client-supplied values. When a user clicks a sub-folder link, such as the 'Audit Logs' sub-folder, the browser sends a POST request to the SBC application whose body is an XML document:

XML
<?xml version='1.0' encoding='UTF-8'?> <acmeWebReq version="1.0" category=system object=dirListing type=list parentKey=AUDITLOGS ></acmeWebReq>

The folder being listed is chosen by the parentKey value in that body, and the report shows that changing it to 'BOOT' lists that folder. The download request also carries client-supplied parentKey and clientfilename values, which the report says are improperly validated and lead to the denial of service described below.

Exploitation

Finding-1: Insecure Direct Object Reference (CVE-2022-21381)

An authenticated low privileged user can download arbitrary files by modifying the sub-folder value, that is the parentKey parameter, and gaining unauthorised access to other folders such as 'BOOT'.

  1. Navigate to the application using a web interception proxy as a low privileged user.
  2. Click the "System" button to navigate to the 'System Objects' page.
  3. Click the "Audit Log" link under the "File Management" function and intercept the request to the application.
  4. Change the parentKey parameter value from AUDITLOGS to BOOT:
XML
<?xml version='1.0' encoding='UTF-8'?> <acmeWebReq version="1.0" category=system object=dirListing type=list parentKey=BOOT></acmeWebReq>
  1. Forward the request.
  2. Observe successful listing of the 'BOOT' folder.
  3. Open a terminal window and submit the following command to download the file:
Bash
wget --header='Cookie: activeTabs=1; usersessionid=ValidSessionID' http://DeviceIPAddress/view/BOOT/bootFileName.bz
  1. Observe the successful file download.

The XML body keeps the same category, object and type values as the legitimate listing request; only parentKey changes, and the server returns the contents of the requested folder. The wget command then fetches the file directly from the /view/BOOT/ path, authenticating with the session cookie (usersessionid=[redacted], alongside activeTabs=1) and substituting the device address and the name of the file seen in the listing.

Finding-2: Path Traversal Vulnerability (CVE-2022-21382)

The second vulnerability is in downloading the configuration file. When an application user downloads the configuration file from the server to their local machine by clicking the file name, a window pops up in the browser asking the user to provide a filename. The handling of that filename input is improperly implemented, so a user can insert ../ into the filename and cause the configuration file to be written to an arbitrary directory on the remote server.

  1. Download the 'local-account' configuration file as a low privileged user with a web interception proxy.
  2. Click the 'Download' button.
  3. Observe that a dialogue box pops up instructing the user to specify the 'Download file name'.
  4. Submit the following payload as the value and click 'Download':
Text
../../boot/trustwave-test.csv
  1. Observe that the file has been written into the 'boot' folder on the remote server.

The traversal sequence in the user-supplied filename causes the configuration file to be written into the boot folder on the remote server.

Finding-3: Denial-of-Service Vulnerability (CVE-2022-21383)

The third vulnerability is also in the 'download file' function. When a user selects a file and clicks download, the application sends the following data to the SBC application via HTTP POST:

XML
<?xml version='1.0' encoding='UTF-8'?><acmeWebReq version="1.0" category="system" object="download" type="list" parentKey="LOGS" clientfilename= acct.log></acmeWebReq>

Here too the user's input is improperly validated. If the user changes the parentKey value to a non-existing folder, such as 'crash', and the filename to a non-existing file, such as 'etc', one of the device's CPU cores overloads at a hundred percent.

  1. Leverage the Insecure Direct Object Reference vulnerability to navigate to the 'Log' page.
  2. Choose a log file and click 'download'.
  3. Intercept the request and change the parentKey parameter value from LOGS to crash and the clientfilename parameter value from acct.log to etc:
XML
<?xml version='1.0' encoding='UTF-8'?><acmeWebReq version="1.0" category="system" object="download" type="list" parentKey="crash" clientfilename='etc'></acmeWebReq>
  1. Observe that the request times out and one of the CPU core's utilisation increases to 100%.
  2. Send a standard log download request again.

Observe that the device is not able to execute the request.

Root cause

The three findings share one cause: the File Management function trusts client-supplied values. The folder to list or download from (parentKey) and the filename (clientfilename, or the 'Download file name' entered in the dialogue box) are taken from the request and used without adequate validation or authorisation checks. Because the folder value is not checked against what the user is allowed to access, changing it lists and downloads from other folders (IDOR). Because the filename is not sanitised, ../ sequences in it are honoured when the file is written on the server (path traversal). Because the input is improperly validated, a request naming a folder and file that do not exist drives a CPU core to 100% and the request times out (denial of service). The report does not describe the server-side code, so the exact validation that was missing is not shown.

Impact

All three issues require an authenticated low privileged application user; they are not pre-authentication attacks. Within that constraint, exploiting them could allow an attacker to push unauthorised changes to Oracle SBC accessible data, including adding, deleting or modifying that data, or denying access to that data altogether. The IDOR allowed listing the 'BOOT' folder and downloading a file from it, the traversal wrote the configuration file into the 'boot' folder, and the malformed download request made the device unable to execute a subsequent standard log download request.

Fix

Trustwave SpiderLabs reported the vulnerabilities to Oracle as part of its responsible disclosure process, and Oracle released a patch for these issues. The report recommends that administrators of affected systems apply patches as quickly as possible to maintain network security and resiliency. The report points to the Oracle Critical Patch Update Advisory for January 2022 and to Trustwave Advisory TWSL2022-002.

Variants to test

  • Folder identifier tampering. On any file browser that sends a folder key in a request body, change the key to another folder name (for example a system or boot folder) and forward the request. A positive result is a listing of a folder the account should not see.
  • Filename traversal on download. Where a download dialogue lets you choose the destination filename, submit a value containing ../ sequences pointing at another directory. A positive result is the file appearing in that directory on the server.
  • Non-existent folder and file in a download request. Set the folder parameter to a name that does not exist and the filename to a name that does not exist, then send the request. A positive result is a request that times out while a CPU core on the device rises to 100%, followed by a normal download request that the device cannot execute.
  • Direct file retrieval by path. After a successful listing, request the file directly from the corresponding view path with the session cookie, as in the wget step. A positive result is the file downloading outside the application's normal navigation flow.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 15 min read.

What happened, in plain words

Oracle Communications Session Border Controller (SBC) is a piece of software that telephone and internet service providers use to make real-time communications work: voice calls over modern networks (VoLTE), calls over the internet (VoIP), video conferencing, presence (showing whether someone is online), instant messaging and IPTV. Think of it as a traffic controller for phone and video traffic, sitting between networks and making sure calls get through reliably.

Harold Zang, a Senior Technical Security Specialist, and Jeremy Nunn, a Security Specialist, both at Trustwave SpiderLabs, examined this product and found three security weaknesses in one of its features. The feature is called 'File Management'. It is part of the web interface that application users see, and it lets a user browse folders and download files. For example, a user can open the 'Logs' folder and download log files such as access.log. Logs are records of what happened on the system, useful for checking activity.

The problem is that the feature's implementation is flawed and user input is improperly validated. That trust allowed the researchers to do three things: read files from folders the user should not be able to see, write a file into a folder on the server where it did not belong, and make the device so busy that it could no longer respond to a normal download request. The three issues were reported to Oracle, which released a patch.

Background: what the File Management feature does

The SBC has a web interface. When you log in as an application user, you can click a 'System' button and reach a page called 'System Objects'. On that page there is a 'File Management' function. It works like a simple file browser: you see folders, you click one to open it, and you see the files inside. You can then download a file.

The important detail is how the browser asks the server for the contents of a folder. It does not simply request a web address like /folder/logs. Instead, the browser sends a small message to the server, and that message contains the name of the folder the user clicked. The server reads that name and, as the report shows, returns the contents of the named folder. This kind of message exchange between a browser and a server is often called an API (Application Programming Interface): a defined way for two programs to talk to each other. Here the message is written in XML, a text format that uses tags to label pieces of data, similar to how HTML labels parts of a web page.

The message also carries the user's session. When you log in, the server gives your browser a cookie, which is a small piece of data stored by the browser and sent back with each request so the server knows who you are. One cookie here is named usersessionid; it acts like a temporary pass card. Another, activeTabs=1, is also sent along.

The researchers tested as a low privileged user: an account that has been given only limited permissions, not administrator rights. They placed a web interception proxy between the browser and the server. A proxy is a tool that sits in the middle and lets you see and change the requests before they reach the server. The report does not name the proxy tool or the product versions.

Finding 1: Insecure Direct Object Reference (CVE-2022-21381)

What the vulnerability class means

Insecure Direct Object Reference (IDOR) is a fancy name for a simple mistake: a program lets you ask for something by its name or identifier, and it does not check whether you are allowed to ask for that particular thing. Imagine a hotel where the receptionist gives you a key card for room 204, but the card also opens any room whose number you say out loud. The card is legitimate; the problem is that nobody checks whether room 305 is yours.

Here, the 'thing' is a folder name. The browser sends the folder name in a parameter called parentKey. The server uses that value to decide which folder to list, and the report shows that changing it to 'BOOT' lists a folder the low privileged user should not see.

The normal request

When a user clicks the 'Audit Logs' sub-folder, the browser sends a POST request. POST is one of the methods a browser uses to send data to a server; the data travels in the body of the request. The body is this XML document:

XML
<?xml version='1.0' encoding='UTF-8'?> <acmeWebReq version="1.0" category=system object=dirListing type=list parentKey=AUDITLOGS ></acmeWebReq>

Line by line:

  • <?xml version='1.0' encoding='UTF-8'?> declares that this is XML version 1.0 and that the text is encoded in UTF-8, a common way of representing characters.
  • <acmeWebReq ...> is the opening tag of the request. acmeWebReq is the name the application uses for this kind of message.
  • version="1.0" says which version of the message format is being used.
  • category=system says the request concerns the system area of the application.
  • object=dirListing says the object being requested is a directory listing, that is, the contents of a folder.
  • type=list says the operation is a list operation.
  • parentKey=AUDITLOGS is the crucial part: it names the folder to list. Here it is AUDITLOGS.
  • ></acmeWebReq> closes the tag. There is no content between the opening and closing tags; all the information is in the attributes.

The attack, step by step

The researchers changed only the parentKey value, from AUDITLOGS to BOOT. The BOOT folder is a system folder that a low privileged user should not be able to browse. The modified request looks like this:

XML
<?xml version='1.0' encoding='UTF-8'?> <acmeWebReq version="1.0" category=system object=dirListing type=list parentKey=BOOT></acmeWebReq>

Again line by line:

  • The XML declaration is unchanged.
  • The opening tag is unchanged.
  • category=system, object=dirListing and type=list are unchanged, so the server still sees a normal directory listing request.
  • parentKey=BOOT is the only difference: the folder name is now BOOT.
  • The closing tag is unchanged.

The server returned the contents of the BOOT folder, which the low privileged user should not have been able to see. The researchers then downloaded a file from it directly, using a command-line tool called wget, which fetches a file from a web address. The command was:

Bash
wget --header='Cookie: activeTabs=1; usersessionid=ValidSessionID' http://DeviceIPAddress/view/BOOT/bootFileName.bz

Line by line:

  • wget is the program being run.
  • --header='Cookie: activeTabs=1; usersessionid=ValidSessionID' tells wget to send an extra HTTP header. A header is a line of extra information sent with a web request. Here it carries the cookies: activeTabs=1 and usersessionid=ValidSessionID. The value ValidSessionID stands for a real session identifier; in a real attack it would be the attacker's own session cookie, obtained by logging in. I have replaced it with [redacted] in the explanation, but the command as published uses the placeholder.
  • http://DeviceIPAddress/view/BOOT/bootFileName.bz is the address of the file. DeviceIPAddress stands for the address of the SBC device, and bootFileName.bz is the name of a file seen in the BOOT listing. The path /view/BOOT/ is the application's way of serving files from that folder.

The result was that the file downloaded successfully. In plain terms: the user was able to list a system folder and then fetch a file from it, even though the account was low privileged.

Why each step was taken

  1. Navigating with a proxy as a low privileged user establishes the baseline: what a normal, limited account can do.
  2. Clicking 'System' reaches the page where File Management lives.
  3. Clicking 'Audit Log' and intercepting the request captures the exact XML message the browser sends, so it can be modified.
  4. Changing parentKey tests whether the server checks the folder name against the user's permissions. It does not.
  5. Forwarding the request sends the modified message to the server.
  6. Seeing the BOOT listing confirms the IDOR: the server returned a folder the user should not see.
  7. Using wget with the session cookie fetches a file directly from the view path, showing that the exposure is not limited to listing but extends to downloading.
  8. The successful download confirms the impact.

Finding 2: Path Traversal (CVE-2022-21382)

What the vulnerability class means

Path traversal, also called directory traversal, is a technique where a user supplies a file path containing ../ sequences. In file systems, .. means 'the parent directory', the folder one level up. So ../../boot/file.csv means: go up one folder, go up another, then into boot, and write file.csv there. If a program takes a filename from the user and uses it to build a path on the server without cleaning it, the user can escape the intended folder and write somewhere else. Imagine a cloakroom that lets you write any label on your coat ticket; if you write a label that points to the manager's office, the attendant might hang your coat there.

The normal behaviour

When a user downloads the configuration file (a file that holds the device's settings), the browser shows a dialogue box asking for a 'Download file name'. The user types a name, and the server writes the file under that name. The handling of that name is flawed.

The attack, step by step

The researchers downloaded the 'local-account' configuration file as a low privileged user, with the proxy intercepting. They clicked 'Download', saw the dialogue box, and entered this value:

Text
../../boot/trustwave-test.csv

Line by line:

  • .. means the parent directory.
  • /.. again goes up one more level.
  • /boot enters the boot folder.
  • /trustwave-test.csv is the name of the file to write.

So the value tells the server: go up two levels from wherever you intended to save, then into boot, and write a file called trustwave-test.csv. The server obeyed, and the file appeared in the boot folder on the remote server. The researchers did not need to know the server's internal directory layout; the ../ sequences did the navigation.

Why each step was taken

  1. Downloading the configuration file as a low privileged user shows the normal feature in action.
  2. Clicking 'Download' triggers the dialogue box.
  3. Observing the dialogue box confirms that the filename is user-controlled.
  4. Submitting the traversal payload tests whether the server sanitises the filename. It does not.
  5. Seeing the file in the boot folder confirms that the write escaped the intended directory.

Finding 3: Denial of Service (CVE-2022-21383)

What the vulnerability class means

A denial-of-service (DoS) attack aims to make a system unavailable to its legitimate users. It does not steal data; it stops the system from working. A simple comparison: if you ask a librarian for a book that does not exist, and the librarian searches every shelf, every catalogue and every storeroom without ever giving up, they are busy forever and cannot help anyone else. Here, a request for a folder and file that do not exist makes one of the device's CPU cores work at 100% and the request times out. A CPU core is one of the processing units inside the device; when it is at 100%, it is fully occupied.

The normal request

When a user selects a log file and clicks download, the browser sends this XML body via POST:

XML
<?xml version='1.0' encoding='UTF-8'?><acmeWebReq version="1.0" category="system" object="download" type="list" parentKey="LOGS" clientfilename= acct.log></acmeWebReq>

Line by line:

  • The XML declaration is the same as before.
  • <acmeWebReq ...> opens the request.
  • version="1.0" is the message format version.
  • category="system" says this concerns the system area.
  • object="download" says the object is a download.
  • type="list" says the operation is a list operation (the download is treated as a list of one file).
  • parentKey="LOGS" names the folder: LOGS.
  • clientfilename= acct.log names the file: acct.log.
  • ></acmeWebReq> closes the tag.

The attack, step by step

The researchers changed parentKey from LOGS to crash (a folder that does not exist) and clientfilename from acct.log to etc (a file that does not exist). The modified request was:

XML
<?xml version='1.0' encoding='UTF-8'?><acmeWebReq version="1.0" category="system" object="download" type="list" parentKey="crash" clientfilename='etc'></acmeWebReq>

Line by line:

  • The XML declaration is unchanged.
  • The opening tag is unchanged.
  • category="system", object="download" and type="list" are unchanged.
  • parentKey="crash" now names a non-existent folder.
  • clientfilename='etc' now names a non-existent file. The quotes around etc are single quotes here, whereas the normal request had no quotes around acct.log; the report shows it this way.
  • The closing tag is unchanged.

The server tried to process the request for a folder and file that do not exist, the request timed out, and one CPU core reached 100% utilisation. The request timed out (the browser or proxy gave up waiting), and one CPU core reached 100% utilisation. When the researchers then sent a normal log download request, the device could not execute it. That is the denial of service: the device was too busy to serve legitimate requests.

Why each step was taken

  1. Navigating with a proxy as a low privileged user sets up the session.
  2. Using the IDOR from Finding 1 to reach the 'Log' page shows that the attacker can get to the download function.
  3. Choosing a log file and clicking download produces a normal request to intercept.
  4. Changing both the folder and the filename to non-existent values tests how the server handles missing resources. It does not handle them gracefully.
  5. Observing the timeout and 100% CPU confirms the resource exhaustion.
  6. Sending a normal request afterwards shows that the device is now unable to serve legitimate traffic, which is the real impact.

Root cause

All three findings come from the same mistake: the File Management function trusts values supplied by the client. The folder to list or download from (parentKey) and the filename (clientfilename, or the 'Download file name' typed into the dialogue box) are taken from the request and used without adequate validation or authorisation checks.

  • Because the folder value is not checked against what the user is allowed to access, changing it lists and downloads from other folders. That is the IDOR.
  • Because the filename is not sanitised, ../ sequences in it are honoured when the file is written on the server. That is the path traversal.
  • Because neither value is validated against existing folders and files, a request naming a folder and file that do not exist drives a CPU core to 100% and the request times out. That is the denial of service.

The report does not describe the server-side code, so the exact validation that was missing is not shown.

Impact

All three issues require an authenticated low privileged application user. They are not pre-authentication attacks: you need a valid login, albeit a limited one. Within that constraint, exploiting them could allow an attacker to push unauthorised changes to Oracle SBC accessible data, including adding, deleting or modifying that data, or denying access to that data altogether. The IDOR allowed listing the 'BOOT' folder and downloading a file from it, the traversal wrote the configuration file into the 'boot' folder, and the malformed download request made the device unable to execute a subsequent standard log download request.

Fix

Trustwave SpiderLabs reported the vulnerabilities to Oracle as part of its responsible disclosure process. Responsible disclosure means telling the vendor privately and giving them time to fix the issue before publishing details. Oracle released a patch for these issues. The report recommends that administrators of affected systems apply patches as quickly as possible to maintain network security and resiliency. It points to the Oracle Critical Patch Update Advisory for January 2022 and to Trustwave Advisory TWSL2022-002.

Variants to test

If you are testing a similar file browser, here are the patterns to try. These are general testing ideas, not steps that were performed in this report.

  • Folder identifier tampering. On any file browser that sends a folder key in a request body, change the key to another folder name (for example a system or boot folder) and forward the request. A positive result is a listing of a folder the account should not see.
  • Filename traversal on download. Where a download dialogue lets you choose the destination filename, submit a value containing ../ sequences pointing at another directory. A positive result is the file appearing in that directory on the server.
  • Non-existent folder and file in a download request. Set the folder parameter to a name that does not exist and the filename to a name that does not exist, then send the request. A positive result is a request that times out while a CPU core on the device rises to 100%, followed by a normal download request that the device cannot execute.
  • Direct file retrieval by path. After a successful listing, request the file directly from the corresponding view path with the session cookie, as in the wget step. A positive result is the file downloading outside the application's normal navigation flow.

Glossary

  • API: A defined way for two programs to talk to each other, like a menu of requests one program can make to another.
  • Application user: A person who logs in to the application, here with limited permissions.
  • Authenticated: Having proved who you are, usually by logging in.
  • Cookie: A small piece of data a website stores in your browser and your browser sends back with each request, often used to remember your session.
  • CPU core: One processing unit inside a computer chip; a device may have several.
  • CVE: A unique identifier for a publicly known security vulnerability, for example CVE-2022-21381.
  • Denial of service (DoS): An attack that makes a system unavailable to legitimate users, for example by exhausting its resources.
  • Directory: Another word for a folder.
  • Directory traversal: See path traversal.
  • File Management: The SBC feature that lets users browse folders and download files.
  • Header: Extra information sent with a web request or response, such as cookies.
  • IDOR (Insecure Direct Object Reference): A vulnerability where a program lets you access an object by its identifier without checking that you are allowed to access it.
  • Interception proxy: A tool that sits between your browser and a server so you can see and modify the requests and responses.
  • IPTV: Television delivered over an internet protocol network.
  • Log file: A file that records events that happened on a system.
  • Low privileged user: An account with limited permissions, not an administrator.
  • Parameter: A named value in a request, such as parentKey or clientfilename.
  • Parent directory: The folder one level above the current folder, represented by ...
  • Patch: A software update that fixes a bug or vulnerability.
  • Path traversal: A vulnerability where user-supplied ../ sequences let a file operation escape its intended directory.
  • POST: An HTTP method used to send data to a server, typically in the request body.
  • Presence: In communications, information about whether a person is online and available.
  • Proxy: See interception proxy.
  • Responsible disclosure: Reporting a vulnerability privately to the vendor and allowing time for a fix before public details are released.
  • SBC (Session Border Controller): A device or software that manages real-time communications traffic between networks.
  • Session: A period during which a user is logged in, identified by a session identifier.
  • Session identifier: A value, often stored in a cookie, that identifies a logged-in session.
  • Timeout: When a request takes too long and is abandoned.
  • VoIP: Voice over Internet Protocol, telephone calls carried over the internet.
  • VoLTE: Voice over LTE, telephone calls carried over a modern mobile network.
  • XML: A text format that uses tags to label data, similar to HTML.
  • wget: A command-line program that downloads files from web addresses.

More by Harold Zang

View all

1 more disclosed report, best first.

More from Oracle

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Insecure direct object reference (IDOR)

The lesson behind this report.

One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.