Skip to content
Info disclosure Write-up Beginner

Object name Exposure — ING Bank Responsible Disclosure Program

The API returned detailed error messages that exposed internal class names, field names, and package structure when an unexpected field was sent. An attacker could use this information to learn about the internal architecture and potentially craft further attacks.

Rohit Kumar Follow

Published on medium.com

{{media:1}}

Rohit kumar, on medium.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. 5 min read.

Context

ING Bank runs a responsible disclosure programme, and this write-up covers a finding on the developer portal at developer.ing.com, whose API lives at api.developer.ing.com. The feature involved is the profile page: a logged-in developer can edit their own name and save it. Behind that page, the portal calls a REST endpoint that updates an individual's name record. The record is modelled in Java, and the request body is deserialised into an object of class com.ing.tpa.onepam.exchange.model.IndividualName, wrapped in com.ing.tpa.onepam.individual.json.model.IndividualNameInputMessage.

The researcher classifies the issue as information disclosure and internal architecture disclosure: a deserialisation error that returns internal class names and field names to the client.

Setup

  • A developer account on developer.ing.com, able to log in and open the profile page.
  • Burp Suite as an intercepting proxy, so the profile update request can be captured and edited before it is forwarded.
  • No special role or privilege is described beyond being logged in.

Finding it

The researcher intercepted the request that saves a name change and looked at the JSON body. The body names the fields the server expects, including lastUpdateUser and firstName. Renaming a key in that body, rather than changing its value, and forwarding the request produced a verbose deserialisation error. That error listed the properties the server's object model knows about, which is what made the request worth pursuing.

Exploitation

Step 1: log in and open the profile

Log in at https://developer.ing.com/ and go to the profile page used for updating it.

Step 2: edit the name and intercept the save

Edit the name and save it, with Burp Suite intercepting the request. The captured request goes to this endpoint:

HTTP
PATCH /individuals/791345bc-9444–4edc-9955–1b78e86fddfd/individualNames/EifQPFiEYfMiU- [redacted] HTTP/1.1
Host: api.developer.ing.com

The path carries two identifiers: an individual UUID and a long opaque name identifier. The method is PATCH, so the request updates part of the record rather than replacing it.

Step 3: read the request body

The body is JSON naming the object and the fields to change:

JSON
{"individualName":{"lastUpdateUser":"external-id-means","firstName":"Geeky bbc"}}

individualName is the wrapper object, lastUpdateUser identifies who made the change, and firstName is the value being edited.

Step 4: rename the key

Change the firstName key to an arbitrary name, here test, keeping the value:

JSON
{"individualName":{"lastUpdateUser":"external-id-means","test":"Geeky bbc"}}

Step 5: forward or repeat the request

Forwarding or repeating the modified request returns an error that names the class, the offending field and every property the class accepts:

Text
Unrecognized field "test" (class com.ing.tpa.onepam.exchange.model.IndividualName), not marked as ignorable (11 known properties: "startDate", "lastName", "salutation", "endDate", "type", "firstName", "secondName", "links", "lastUpdateUser", "initials", "_links"])

at [Source: (org.glassfish.jersey.[redacted].ReaderInterceptorExecutor$UnCloseableInputStream); line: 1, column: 65] (through reference chain: com.ing.tpa.onepam.individual.json.model.IndividualNameInputMessage["individualName"]->com.ing.tpa.onepam.exchange.model.IndividualName["test"])
Image for post
Image for post From the original on medium.com

The message discloses the full package and class names of the input message and the exchange model, the Jersey internal stream class used to read the body, the position of the error in the payload, and the reference chain from the wrapper object to the inner object. It also enumerates the 11 known properties of IndividualName: startDate, lastName, salutation, endDate, type, firstName, secondName, links, lastUpdateUser, initials and _links.

Step 6: what the error reveals

The researcher's conclusion is that the response exposes field names, internal object names and the internal architecture of the application.

Root cause

The server deserialises the request body into a typed Java object and rejects unknown fields instead of ignoring them. The deserialiser's exception text, which includes the class name, the list of known properties and the reference chain, is returned to the client. The not marked as ignorable wording indicates the class is not configured to tolerate unknown properties, so any renamed key triggers the full message. The report does not describe the server-side handling beyond the error text itself.

Impact

An authenticated user who can edit their profile can learn internal package and class names, the object model behind the name record and the complete set of field names the API accepts. That knowledge gives an outsider a view of the internal architecture behind the name record. The report does not claim access to other users' data or any write beyond the caller's own profile; the exposure is limited to what the error message contains.

Fix

The report does not state what was changed. The measure the finding points to is to stop returning deserialiser exception details to clients: catch the error, log the detail internally and return a generic message, and configure the deserialiser to ignore unknown properties where that is acceptable.

Variants to test

  1. Rename other keys in the same body, such as lastUpdateUser, and check whether the error again lists the known properties. A positive result is the same Unrecognized field message with the class name and property list.
  2. Send a value of the wrong type for a known field, for example a number where a string is expected, and look for a type-mismatch error naming the class and field. A positive result is another verbose deserialisation message.
  3. Try the same key-renaming trick on other JSON endpoints of the same API, such as other profile or application resources. A positive result is any error that names internal classes, packages or field lists.
  4. Send malformed JSON to the same endpoint and check whether the parser's position and source class are echoed back. A positive result is a parse error that includes internal class names or stream details.

A note from the researcher

The author adds that he had reported a separate issue before this one, received on 30 August 2018, with snapshots as proof of concept. That report was rejected as a false positive, and he disputes the rejection, stating that he was able to insert 7 lakh characters into the database and that his developer.ing.com account holds dozens of applications with around 6 lakh characters each. He closes with a comment that work should be done ethically.

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. 12 min read.

What happened, in plain words

ING Bank is a bank, and like many companies it runs a public programme that invites outside security researchers to report bugs in its systems. This write-up is one researcher's account of a bug he found in ING's developer portal, a website at developer.ing.com where software developers register and manage the applications they build against ING's services.

A portal like this is not just a set of web pages. Behind the pages sits an API: a service that the page talks to in order to read and save data. You can think of the page as a waiter and the API as the kitchen. You press a button on the page, the page sends a short message to the kitchen, and the kitchen replies. Those messages are what this bug is about.

The feature involved is the profile page. When you are logged in, you can edit your own name and save it. Saving sends a message to the API asking it to update your name record. The bug is that if you tamper with the wording of that message in a particular way, the API replies with a long technical error that describes how the software inside is built: the names of its internal code components and the full list of fields it accepts.

Security people call this information disclosure, or information leakage. Nothing is stolen and no data is changed beyond your own profile, but the error hands an outsider a map of the inside of the system. The researcher also calls it internal architecture disclosure, because the leaked names describe how the application is put together.

Image for post
Image for post From the original on medium.com

The background you need

Before the steps make sense, a few ideas need to be clear.

What an API is. An API (application programming interface) is the set of addresses and message formats one piece of software uses to talk to another. In a web context it usually means a server that accepts requests at URLs and answers with data, often in a format called JSON. The portal's API lives at api.developer.ing.com, a different hostname from the website itself at developer.ing.com.

What JSON is. JSON is a plain text way of writing structured data, built from curly braces, square brackets, names in double quotes, colons and commas. A small example is {"name":"Rohit"}. The part before the colon is called a key, the part after it is the value. Servers and browsers both understand it easily, which is why APIs use it so much.

What a request method is. Every request to a web server carries a method, a word that says what kind of action is wanted. GET asks for something to be read. POST asks for something to be created. PATCH asks for part of an existing record to be updated, leaving the rest alone. The request in this report uses PATCH, which fits: it changes one field of a name record.

What an endpoint is. An endpoint is one specific address on a server that accepts requests, made of a method plus a path. The endpoint here is a PATCH to a path beginning /individuals/.

What an identifier is. The path in this report contains two long strings of letters, digits and hyphens. These are identifiers: unique labels the server uses to point at one particular record. One looks like a UUID, a standard format for unique IDs. The other is a longer, opaque string. Neither is a password; they simply say which record the request is about.

What deserialisation is. Software written in languages such as Java does not work with raw JSON text. It works with objects: named bundles of fields held in the program's memory. When JSON arrives, the server must turn that text into an object, filling in each field from the matching key. That conversion is called deserialisation. If the text contains a key the object has no field for, the conversion fails, and the failure is called a deserialisation error.

What a class is. In Java, a class is the blueprint that describes an object: its name and the fields it holds. Classes are grouped into packages, which are like folders, and a class's full name includes its package, for example com.ing.tpa.onepam.exchange.model.IndividualName. Those dotted names are what the error in this report leaks.

What an intercepting proxy is. Normally your browser sends a request straight to the server and you never see it. A proxy is a program that sits in the middle. An intercepting proxy such as Burp Suite lets you pause a request on its way out, read it, edit it, and then let it continue. This is the central tool of the whole technique: it turns a button press into text you can change.

What a responsible disclosure programme is. A company that runs one publishes rules for researchers: find a bug, report it privately, do not misuse it, and the company will look into it. The researcher here is working inside that arrangement.

Setting up

The researcher needed three things:

  1. A developer account on developer.ing.com, able to log in and open the profile page. No special role or extra privilege is described beyond being logged in.
  2. Burp Suite, set up as an intercepting proxy, so the profile update request could be captured and edited before being forwarded.
  3. Nothing else is mentioned.

Finding it

The researcher intercepted the request that saves a name change and read its JSON body. The body spells out the field names the server expects, including lastUpdateUser and firstName. He then changed a key name in that body, not a value, forwarded the request, and the server answered with a verbose deserialisation error. That error listed the properties the server's object model knows about, and that list is what made the request worth pursuing further.

Walking through the attack

Step 1: log in and open the profile

Log in at https://developer.ing.com/ and go to the profile page used for updating it. This is the ordinary, intended use of the site. The point of starting here is that the profile page is the feature that sends the interesting request; you cannot study a request you never trigger.

Step 2: edit the name and intercept the save

Edit the name and save it, with Burp Suite intercepting the request. The captured request goes to this endpoint:

HTTP
PATCH /individuals/791345bc-9444–4edc-9955–1b78e86fddfd/individualNames/EifQPFiEYfMiU- [redacted] HTTP/1.1
Host: api.developer.ing.com

Line by line:

  • PATCH is the method: update part of an existing record.
  • /individuals/791345bc-9444–4edc-9955–1b78e86fddfd/individualNames/EifQPFiEYfMiU- [redacted] is the path. It says: under the individual whose identifier is the first long string, look at the names collection, and act on the name whose identifier is the second long string. In other words, the path carries two identifiers, one for the person and one for the name record.
  • HTTP/1.1 is the version of the web protocol being spoken.
  • Host: api.developer.ing.com names the server the request is addressed to.

The reason for pausing here is simple: the browser built this request for you, correctly, and now you hold a copy you can alter.

Step 3: read the request body

The body is JSON naming the object and the fields to change:

JSON
{"individualName":{"lastUpdateUser":"external-id-means","firstName":"Geeky bbc"}}

Line by line:

  • The outermost curly braces hold one key, individualName. Its value is itself a pair of curly braces, a nested object. This is the wrapper: the message says "here is an individual name, and here is what to do with it".
  • Inside the nested object, lastUpdateUser has the value external-id-means, which identifies who made the change.
  • firstName has the value Geeky bbc, the new first name being saved.

Reading the body matters because it tells you the vocabulary the server understands. You cannot guess the right key to break without first seeing a working one.

Step 4: rename the key

Change the firstName key to an arbitrary name, here test, keeping the value:

JSON
{"individualName":{"lastUpdateUser":"external-id-means","test":"Geeky bbc"}}

Line by line:

  • The wrapper individualName is unchanged.
  • lastUpdateUser is unchanged.
  • The key firstName has become test. The value Geeky bbc stays where it was.

The idea is to hand the server a field name it does not recognise. A well-built server would either ignore the unknown key or reply with a short, vague error. The question is which one this server does.

Step 5: forward or repeat the request

Forwarding or repeating the modified request returns an error that names the class, the offending field and every property the class accepts:

Text
Unrecognized field "test" (class com.ing.tpa.onepam.exchange.model.IndividualName), not marked as ignorable (11 known properties: "startDate", "lastName", "salutation", "endDate", "type", "firstName", "secondName", "links", "lastUpdateUser", "initials", "_links"])

at [Source: (org.glassfish.jersey.[redacted].ReaderInterceptorExecutor$UnCloseableInputStream); line: 1, column: 65] (through reference chain: com.ing.tpa.onepam.individual.json.model.IndividualNameInputMessage["individualName"]->com.ing.tpa.onepam.exchange.model.IndividualName["test"])
Image for post
Image for post From the original on medium.com

Line by line:

  • Unrecognized field "test" says the server met a key it does not know. This is the direct result of the rename in step 4.
  • (class com.ing.tpa.onepam.exchange.model.IndividualName) names the Java class the JSON was being turned into, including its full package path. This is internal naming that an outsider would not normally see.
  • not marked as ignorable says the class is not configured to tolerate unknown keys. That is why the request failed instead of quietly dropping test.
  • (11 known properties: "startDate", "lastName", "salutation", "endDate", "type", "firstName", "secondName", "links", "lastUpdateUser", "initials", "_links"] is the complete list of fields the class accepts. This is the heart of the leak: a full inventory of the name record's fields.
  • at [Source: (org.glassfish.jersey.[redacted].ReaderInterceptorExecutor$UnCloseableInputStream); line: 1, column: 65] says where the problem was found: the internal Jersey class used to read the request body, and the position in the payload, line 1, column 65.
  • (through reference chain: com.ing.tpa.onepam.individual.json.model.IndividualNameInputMessage["individualName"]->com.ing.tpa.onepam.exchange.model.IndividualName["test"]) traces the route the parser took: it entered the outer wrapper class IndividualNameInputMessage at the key individualName, then reached the inner class IndividualName at the key test, where it stopped. This reveals the two-layer structure of the message and the full names of both classes.

Step 6: what the error reveals

The researcher's conclusion is that the response exposes field names, internal object names and the internal architecture of the application. Put plainly: an ordinary logged-in user, by mistyping one key on purpose, receives a description of the software's insides that was never meant to leave the server.

Why it happens

The server takes the JSON body and turns it into a typed Java object. When it meets a key with no matching field, it refuses rather than ignoring it. The library doing the conversion writes a detailed exception message, and that message, with the class name, the list of known properties and the reference chain, is sent back to the client. The phrase not marked as ignorable shows the class is not set up to tolerate unknown properties, so any renamed key triggers the full message. The report does not describe the server-side handling beyond the error text itself.

What the impact is

Someone with an account who can edit their own profile can learn internal package and class names, the object model behind the name record, and the complete set of field names the API accepts. That knowledge gives an outsider a view of the internal architecture behind the name record. The report does not claim access to other users' data or any write beyond the caller's own profile; the exposure is limited to what the error message contains.

How it should be fixed

The report does not state what was changed. The measure the finding points to is to stop returning deserialiser exception details to clients: catch the error, log the detail internally, and return a generic message. Where it is acceptable, the deserialiser can also be configured to ignore unknown properties.

Other things worth trying

  1. Rename other keys in the same body, such as lastUpdateUser, and check whether the error again lists the known properties. A positive result is the same Unrecognized field message with the class name and property list.
  2. Send a value of the wrong type for a known field, for example a number where a string is expected, and look for a type-mismatch error naming the class and field. A positive result is another verbose deserialisation message.
  3. Try the same key-renaming trick on other JSON endpoints of the same API, such as other profile or application resources. A positive result is any error that names internal classes, packages or field lists.
  4. Send malformed JSON to the same endpoint and check whether the parser's position and source class are echoed back. A positive result is a parse error that includes internal class names or stream details.

A note from the researcher

The author adds that he had reported a separate issue before this one, received on 30 August 2018, with snapshots as proof of concept. That report was rejected as a false positive, and he disputes the rejection, stating that he was able to insert 7 lakh characters into the database and that his developer.ing.com account holds dozens of applications with around 6 lakh characters each. He closes with a comment that work should be done ethically.

Glossary

  • API: the set of addresses and message formats one piece of software uses to talk to another; here, the service behind the developer portal.
  • Burp Suite: a program that sits between your browser and a server so you can pause, read and edit requests.
  • Class: in Java, the blueprint describing an object, its name and its fields.
  • Deserialisation: turning incoming text such as JSON into an object the program can work with.
  • Deserialisation error: the failure that happens when that conversion cannot be completed, for example because of an unknown key.
  • Endpoint: one specific address on a server that accepts requests, defined by a method plus a path.
  • Field: one named piece of data inside an object or a JSON body.
  • Identifier: a unique label the server uses to point at one particular record.
  • Information disclosure: a bug where a system reveals information it should keep to itself.
  • Intercepting proxy: a tool that pauses traffic between browser and server so it can be inspected and changed.
  • Internal architecture disclosure: leaking the internal structure and naming of a system through its responses.
  • JSON: a plain text format for structured data, built from braces, brackets, quoted keys and values.
  • Key: the name part of a JSON pair, written before the colon.
  • Method: the word in a request saying what action is wanted, such as GET, POST or PATCH.
  • Object: a bundle of named fields held together in a program's memory.
  • Package: a grouping of related classes, like a folder, whose name forms the first part of a class's full name.
  • PATCH: a request method that updates part of an existing record.
  • Payload: the body of a request, the data being sent.
  • Property: another word for a field of an object.
  • Reference chain: the route a parser took through nested objects before it failed.
  • Responsible disclosure programme: a company's published arrangement for researchers to report bugs privately and responsibly.
  • UUID: a standard format for a long, practically unique identifier.
  • Value: the data part of a JSON pair, written after the colon.
  • Wrapper object: an outer object that contains another object inside it.

More by Rohit Kumar

View all

4 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.