Skip to content
Info disclosure Disclosed report Advanced

Burp Community OpenAPI site-map action reads a local schema example through $id rebasing

Burp Community's 'Save OpenAPI requests to site map' action validates one OpenAPI object but parses another, allowing a local file URL in $id to be used as a base for a fragment-only $ref. An attacker could cause Burp to read a selected example value from a known local JSON schema and place it in a generated request to a server chosen by the definition.

1rhino2 Follow

Originally disclosed on HackerOne

Bounty$1,000 Medium View original
  • Triaged in 3 days
  • Fixed in 38 days
  • Paid in 38 days
  • Disclosed after 2 months

Summary

I found a local-resource restriction bypass in Burp Community's Save OpenAPI requests to site map action.

The validator and click parser select different OpenAPI-shaped objects from the same HTTP response. A nested OpenAPI 3.0 swaggerDoc object makes the action available, but the click handler parses the top-level OpenAPI 3.1 object. In the 3.1 schema, a local file:/// URL in $id becomes the base for a fragment-only $ref.

Burp rejects the equivalent direct file:///...#/secret $ref as an external API definition. The $id plus fragment-only form passes that check. Burp then opens the local JSON schema and copies its selected example value into the generated POST body.

I reproduced this through the normal Community UI in fresh Temporary Projects on:

  • 2026.8 build 53343, Early Adopter
  • 2026.7.3 build 52685, Stable

The two runs used different ports, local filenames, and markers. Both markers appeared in Burp-generated requests. I sent each generated request once through Repeater to a loopback collector and received HTTP 200.

Community does not send the generated request automatically. The local read happens after the user selects the site-map action. Disclosure to the definition-selected server requires a later explicit send of that generated request.

Steps to reproduce

Everything in the attachment binds to 127.0.0.1.

  1. Extract PZ-BURP-002-h1-attachments.zip and enter its repro directory.

  2. Check the supplied response shapes:

Bash
python3 -B verify_shapes.py

Expected output:

Text
REPRO_SHAPES=PASS
  1. Start the loopback fixture:
Bash
python3 repro_server.py --mode exploit --schema local-schema.json

It prints a random definition_url. Keep this process running.

  1. Start Burp Community in a fresh Temporary Project. Configure a loopback Proxy listener on port 8081, or use the supplied settings:
Bash
java -jar /absolute/path/to/burpsuite_community.jar --config-file=community-8081-project.json
  1. Replace <PORT> with the port printed in step 3, then fetch the response through Burp:
Bash
curl --noproxy '' --proxy http://127.0.0.1:8081 -H 'X-HackerOne-Research: 1rhino2' http://127.0.0.1:<PORT>/openapi.json
  1. Open Target > Site map and select the GET /openapi.json response.

  2. Open the Response message-actions menu and click Save OpenAPI requests to site map.

  3. Burp adds POST /collect to the site map. Its body contains PZ_UI_POSITIVE_ONE_91c7e2.

The marker is absent from the HTTP definition response. Before Burp processes that response, the fixture supplies it only through local-schema.json.

  1. Send the generated POST to Repeater and click Send once. The fixture returns HTTP 200 and records:
Text
REQUEST=POST /collect
BODY={"leak":"PZ_UI_POSITIVE_ONE_91c7e2"}
HTTP_LOG="POST /collect HTTP/1.1" 200 -
  1. Repeat with Community 2026.7.3 in another fresh Temporary Project. My second run used a separate local file and produced the marker PZ_UI_POSITIVE_TWO_4ad93b.

Controls

Stop the previous fixture with Ctrl-C before changing modes. Each new fixture prints a new random port and truncates server.log, so use the newly printed port each time. I used a fresh Temporary Project for every control.

Direct external reference:

Bash
python3 repro_server.py --mode direct-control --schema local-schema.json

The action is visible, but Burp rejects the definition with:

Text
This definition can't be uploaded as it links to one or more external API definitions. Review the definition and remove the external links.

No collector request is generated and the fixture receives no POST.

$id without the fragment reference:

Bash
python3 repro_server.py --mode id-only-control --schema local-schema.json

Burp generates only {"control":"INLINE_ONLY"}. After one Repeater send, the collector receives that exact inline value. No PZ_UI_POSITIVE_ marker appears in the generated request or receipt.

Top-level 3.1 object without the swaggerDoc bridge:

Bash
python3 repro_server.py --mode root-only-control --schema local-schema.json

The same top-level 3.1 candidate is present, but the response menu does not contain Save OpenAPI requests to site map.

Root cause and evidence

Inspection of the packaged classes with javap -p -c matches the UI result:

  1. validate() unwraps swaggerDoc and reports a valid 3.0.0 document.
  2. The click path calls parse() on the original body. That path selects the top-level 3.1 object.
  3. The external-reference check scans $ref. It rejects the direct file:///... control, accepts #/secret, and does not reject the local base in $id.
  4. The bundled 3.1 resolver rebases the fragment against $id and reaches its local file reader.
  5. The selected schema example is used in the generated POST body.

The attachment includes the two UI runs, both collector receipts, the three controls, successful openat lines for both positive local files, parser-selection output for both builds, and the packaged-bytecode notes.

Tested JAR hashes:

  • 2026.8 build 53343: 888f0588cf82a3b70d508dcbf07591184a26249e38cda8ea8b5a68f4b5a30789
  • 2026.7.3 build 52685: c8262dc5426f38bedc490d66c5d21b6ff77d6dc6d85cefe6a66c882690134069

Limits

  • The local path must be known or guessed and readable by Burp.
  • The confirmed target is a compatible JSON schema.
  • The selected fragment must be schema-shaped.
  • The proof confirms disclosure of a selected example value. It is not an unrestricted raw-file read.
  • Windows, macOS, and Burp Professional were not tested.
  • No integrity or availability impact is claimed.

References

Impact

If the user invokes Save OpenAPI requests to site map on the malicious response, Burp reads the selected example from the known, readable local schema and places it in a generated request addressed to the server selected by the definition. The server receives the value only if the user later sends that generated request.

Local OpenAPI and JSON Schema files can contain internal endpoint examples, sample credentials, tokens, tenant identifiers, or other non-public test data in example fields. My proof uses only synthetic markers and does not claim access to files without a compatible schema shape.

PortSwigger's current program treats websites accessed through Burp as untrusted and lists local-file retrieval by such a website as a Medium example. The required interaction is unlikely, so I am selecting Medium under the program's reduced-bounty interaction category.

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

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

Context

Burp Suite's message editor offers an action called Save OpenAPI requests to site map. When a user selects an HTTP response that looks like an OpenAPI definition, the action parses the definition and adds the requests it describes to the Target > Site map, so they can be reviewed and replayed later. The researcher tested the feature in Burp Community.

The researcher found a local-resource restriction bypass in that action in Burp Community. The validator and the click parser pick different OpenAPI-shaped objects out of the same HTTP response. A nested OpenAPI 3.0 swaggerDoc object makes the action appear in the menu, but the click handler parses the top-level OpenAPI 3.1 object. In the 3.1 schema, a local file:/// URL in $id becomes the base for a fragment-only $ref, and Burp then reads a local JSON schema and copies a selected example value into a generated POST body.

Setup

The researcher reproduced the issue through the normal Community UI in fresh Temporary Projects on two builds:

  • 2026.8 build 53343, Early Adopter
  • 2026.7.3 build 52685, Stable

The two runs used different ports, local filenames and markers. Everything in the attachment binds to [redacted]. The supplied material includes a shape-verification script, a loopback fixture (repro_server.py), a local schema file (local-schema.json), a Burp config file (community-8081-project.json) and a settings file for a loopback Proxy listener on port 8081.

Tested JAR hashes:

  • 2026.8 build 53343: [redacted]
  • 2026.7.3 build 52685: [redacted]

Finding it

The starting observation is that the validator and the click parser disagree about which object in the response is the OpenAPI definition. A nested OpenAPI 3.0 swaggerDoc object is enough to make the Save OpenAPI requests to site map action available, but the click handler parses the top-level OpenAPI 3.1 object instead.

That difference matters because of how the 3.1 resolver handles $id. A local file:/// URL in $id becomes the base for a fragment-only $ref. Burp rejects the equivalent direct file:///...#/secret $ref as an external API definition, but the $id plus fragment-only form passes that check. Burp then opens the local JSON schema and copies its selected example value into the generated POST body.

Exploitation

Step 1: Extract the attachment and check the response shapes

Extract PZ-BURP-002-h1-attachments.zip and enter its repro directory. Then check the supplied response shapes:

Bash
python3 -B verify_shapes.py

Expected output:

Text
REPRO_SHAPES=PASS

Step 2: Start the loopback fixture

Bash
python3 repro_server.py --mode exploit --schema local-schema.json

The fixture prints a random definition_url. Keep this process running.

Step 3: Start Burp Community in a fresh Temporary Project

Configure a loopback Proxy listener on port 8081, or use the supplied settings:

Bash
java -jar /absolute/path/to/burpsuite_community.jar --config-file=community-8081-project.json

Step 4: Fetch the definition through Burp

Replace <PORT> with the port printed in step 2, then fetch the response through Burp:

Bash
curl --noproxy '' --proxy http://[redacted]:8081 -H 'X-HackerOne-Research: 1rhino2' http://[redacted]:<PORT>/openapi.json

Step 5: Select the response and invoke the action

Open Target > Site map and select the GET /openapi.json response. Open the Response message-actions menu and click Save OpenAPI requests to site map.

Step 6: Observe the generated request

Burp adds POST /collect to the site map. Its body contains PZ_UI_POSITIVE_ONE_91c7e2.

The marker is absent from the HTTP definition response. Before Burp processes that response, the fixture supplies it only through local-schema.json. In other words, the value in the generated body did not come over the wire from the definition; it came from the local file that the $id rebasing reached.

Step 7: Send the generated request once

Send the generated POST to Repeater and click Send once. The fixture returns HTTP 200 and records:

Text
REQUEST=POST /collect
BODY={"leak":"PZ_UI_POSITIVE_ONE_91c7e2"}
HTTP_LOG="POST /collect HTTP/1.1" 200 -

Step 8: Repeat on the Stable build

Repeat with Community 2026.7.3 in another fresh Temporary Project. The second run used a separate local file and produced the marker PZ_UI_POSITIVE_TWO_4ad93b.

Controls

Stop the previous fixture with Ctrl-C before changing modes. Each new fixture prints a new random port and truncates server.log, so use the newly printed port each time. A fresh Temporary Project was used for every control.

Direct external reference. Start the fixture in direct-control mode:

Bash
python3 repro_server.py --mode direct-control --schema local-schema.json

The action is visible, but Burp rejects the definition with:

Text
This definition can't be uploaded as it links to one or more external API definitions. Review the definition and remove the external links.

No collector request is generated and the fixture receives no POST. This shows the external-reference check does catch a direct file:///...#/secret $ref.

$id without the fragment reference. Start the fixture in id-only mode:

Bash
python3 repro_server.py --mode id-only-control --schema local-schema.json

Burp generates only {"control":"INLINE_ONLY"}. After one Repeater send, the collector receives that exact inline value. No PZ_UI_POSITIVE_ marker appears in the generated request or receipt. This shows the local read depends on the fragment-only $ref being rebased against $id, not on $id alone.

Top-level 3.1 object without the swaggerDoc bridge. Start the fixture in root-only mode:

Bash
python3 repro_server.py --mode root-only-control --schema local-schema.json

The same top-level 3.1 candidate is present, but the response menu does not contain Save OpenAPI requests to site map. This shows the nested 3.0 swaggerDoc object is what makes the action available in the first place.

Root cause

Inspection of the packaged classes with javap -p -c matches the UI result:

  1. validate() unwraps swaggerDoc and reports a valid 3.0.0 document.
  2. The click path calls parse() on the original body. That path selects the top-level 3.1 object.
  3. The external-reference check scans $ref. It rejects the direct file:///... control, accepts #/secret, and does not reject the local base in $id.
  4. The bundled 3.1 resolver rebases the fragment against $id and reaches its local file reader.
  5. The selected schema example is used in the generated POST body.

The core mistake is the split between the object used for validation and the object used for parsing. The validator sees a benign 3.0 document in swaggerDoc, so the action is offered. The parser then works on the top-level 3.1 object, where $id can carry a local base and a fragment-only $ref can be rebased onto it. The external-reference check only looks at $ref, so a local base in $id slips past it. The bundled 3.1 resolver then resolves the fragment against that base and reads the local file.

The attachment includes the two UI runs, both collector receipts, the three controls, successful openat lines for both positive local files, parser-selection output for both builds, and the packaged-bytecode notes.

Impact

If the user invokes Save OpenAPI requests to site map on the malicious response, Burp reads the selected example from the known, readable local schema and places it in a generated request addressed to the server selected by the definition. The server receives the value only if the user later sends that generated request.

Community does not send the generated request automatically. The local read happens after the user selects the site-map action. Disclosure to the definition-selected server requires a later explicit send of that generated request.

Local OpenAPI and JSON Schema files can contain internal endpoint examples, sample credentials, tokens, tenant identifiers or other non-public test data in example fields. The proof uses only synthetic markers and does not claim access to files without a compatible schema shape.

Limits stated in the report:

  • The local path must be known or guessed and readable by Burp.
  • The confirmed target is a compatible JSON schema.
  • The selected fragment must be schema-shaped.
  • The proof confirms disclosure of a selected example value. It is not an unrestricted raw-file read.
  • Windows, macOS and Burp Professional were not tested.
  • No integrity or availability impact is claimed.

PortSwigger's program treats websites accessed through Burp as untrusted and lists local-file retrieval by such a website as a Medium example. The required interaction is unlikely, so the researcher selected Medium under the program's reduced-bounty interaction category. The report was disclosed with a bounty of 1000.00 USD.

Fix

The report does not describe a fix or a vendor response.

Variants to test

  • Other document-selection mismatches. Serve a response where a nested object makes an action available but the top-level object is what gets parsed. A positive result is an action that appears in the menu and then processes data the validator never saw.
  • $id rebasing in other resolvers. Try a local file:/// base in $id with a fragment-only $ref against other tools that resolve JSON Schema or OpenAPI 3.1. A positive result is a local file read that the direct file:///...#/... form would have been blocked for.
  • Other reference keywords. Check whether the external-reference check covers only $ref and misses bases or links carried elsewhere. A positive result is a local read that passes the check.
  • Schema-shaped fragments. Try fragments that select other schema keywords besides example. A positive result is any local value that ends up in a generated request.
  • Other Burp builds and platforms. The report tested two Community builds on one platform. A positive result on another build or platform is the same marker appearing in a generated request after the site-map action.

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

What happened, in plain words

Burp Suite is a tool that security testers use to watch and change the traffic between their browser and a website. It sits in the middle, like a post office clerk who can read every letter you send and every reply you get. One of its features is called Save OpenAPI requests to site map. An OpenAPI definition is a file that describes an API: an API is the set of addresses and rules a program uses to talk to another program, a bit like a restaurant menu that lists the dishes you can order and what to send with each order. The feature reads such a definition and adds the requests it describes to a list inside Burp called the Site map, so the tester can look at them and send them again later.

The researcher found a way to make that feature read a file from the tester's own computer and copy a value out of it into a request. The trick relies on Burp looking at two different parts of the same response: one part decides whether the menu option appears, another part is actually processed when you click it. A small local file is read, and a chosen value from it ends up in a request that is addressed to a server chosen by the definition. The server only receives that value if the tester later sends the generated request by hand.

This is a bypass of a restriction: Burp is supposed to refuse definitions that point at external or local files, and in one specific form that refusal does not happen. The vulnerability class is path traversal, which in plain terms means making a program reach a file it was not meant to reach by giving it a cleverly written path.

Context

Burp Suite's message editor offers an action called Save OpenAPI requests to site map. When a user selects an HTTP response that looks like an OpenAPI definition, the action parses the definition and adds the requests it describes to the Target > Site map, so they can be reviewed and replayed later. The researcher tested the feature in Burp Community.

A few words from that paragraph, from zero:

  • An HTTP response is the reply a server sends back to a request, for example the page you see after typing an address in your browser.
  • Parsing means reading a structured text and turning it into something the program can work with, the way you read a recipe and understand the steps.
  • Replaying a request means sending the same request again, possibly after changing something in it.

The researcher found a local-resource restriction bypass in that action in Burp Community. A restriction bypass means getting past a check that is supposed to stop you. The validator and the click parser pick different OpenAPI-shaped objects out of the same HTTP response. The validator is the part that decides whether the definition is acceptable; the click parser is the part that runs when you click the menu item. A nested OpenAPI 3.0 swaggerDoc object makes the action appear in the menu, but the click handler parses the top-level OpenAPI 3.1 object. In the 3.1 schema, a local file:/// URL in $id becomes the base for a fragment-only $ref, and Burp then reads a local JSON schema and copies a selected example value into a generated POST body.

Unpacking the jargon in that paragraph:

  • OpenAPI 3.0 and OpenAPI 3.1 are two versions of the same description format. They differ in details, and those details matter here.
  • A schema is a description of what data should look like, like a form that says which fields exist and what type each one has.
  • swaggerDoc is simply the name of a field inside the response that can hold a whole OpenAPI 3.0 document.
  • $id is a field that gives a document, or a part of it, a name or address that other parts can refer to.
  • $ref is a field that says "the thing you need is over there", followed by a pointer.
  • A file:/// URL is an address that points at a file on the local computer rather than on the internet.
  • A fragment is the part of a pointer that starts with # and selects something inside a document, like a bookmark inside a page.
  • Rebasing means taking a relative pointer and combining it with a base address to get a full address, the way a relative link on a web page is combined with the site's address.
  • A POST body is the part of a request that carries data to the server, as opposed to the address line.

Setup

The researcher reproduced the issue through the normal Community UI in fresh Temporary Projects on two builds:

  • 2026.8 build 53343, Early Adopter
  • 2026.7.3 build 52685, Stable

A build is a particular compiled version of a program. Early Adopter means a version released ahead of the stable one, and Stable means the normal release. A Temporary Project is a Burp project that is thrown away when you close it, which is useful for a clean test: nothing from a previous experiment can influence the result.

The two runs used different ports, local filenames and markers. A port is a numbered door on a computer that a program listens on; two programs on the same machine use different port numbers so their traffic does not get mixed up. A marker is a unique piece of text planted in a file so that you can recognise it later if it shows up somewhere it should not. Everything in the attachment binds to [redacted]. That address means "this computer" and is never routed to the internet, so the whole experiment stays on one machine. The supplied material includes a shape-verification script, a loopback fixture (repro_server.py), a local schema file (local-schema.json), a Burp config file (community-8081-project.json) and a settings file for a loopback Proxy listener on port 8081.

A fixture here is a small program that plays the part of a server for the test. Loopback means traffic that goes out of the computer and straight back into it. A proxy listener is the door Burp opens so that other programs can send their traffic through it.

Tested JAR hashes:

  • 2026.8 build 53343: [redacted]
  • 2026.7.3 build 52685: [redacted]

A JAR is the file format Java programs are packaged in. A hash is a short fingerprint computed from a file's contents: if two files have the same hash, they are almost certainly identical, so a hash lets someone else confirm they tested exactly the same build.

Finding it

The starting observation is that the validator and the click parser disagree about which object in the response is the OpenAPI definition. A nested OpenAPI 3.0 swaggerDoc object is enough to make the Save OpenAPI requests to site map action available, but the click handler parses the top-level OpenAPI 3.1 object instead.

Think of a form with two sections: a small section at the top and a large section below. The person at the door checks the small section and says "fine, come in". The person inside then reads the large section instead. If the two sections can say different things, the check at the door is worthless.

That difference matters because of how the 3.1 resolver handles $id. A resolver is the part of the program that turns a pointer like $ref into the actual content it points at. A local file:/// URL in $id becomes the base for a fragment-only $ref. Burp rejects the equivalent direct file:///...#/secret $ref as an external API definition, but the $id plus fragment-only form passes that check. Burp then opens the local JSON schema and copies its selected example value into the generated POST body.

In other words: if you write the local file address directly in the pointer, Burp notices and refuses. If you put the local file address in $id and then point at a bookmark inside it with a bare #/secret, the check does not notice, and the resolver still ends up reading the same local file. An example field is a sample value that a schema provides to show what real data looks like.

Exploitation

Step 1: Extract the attachment and check the response shapes

Extract PZ-BURP-002-h1-attachments.zip and enter its repro directory. Then check the supplied response shapes:

Bash
python3 -B verify_shapes.py

Line by line:

  • python3 runs the Python interpreter, version 3.
  • -B tells Python not to write compiled cache files, so the directory stays clean.
  • verify_shapes.py is the supplied script that checks the test responses have the expected structure.

Why this step: before testing anything, you confirm that the files you are about to use really have the shape the test assumes. If the shapes are wrong, any later result is meaningless.

Expected output:

Text
REPRO_SHAPES=PASS

This single line means the check succeeded. PASS is the result; if the shapes were wrong, you would see something else and should stop.

Step 2: Start the loopback fixture

Bash
python3 repro_server.py --mode exploit --schema local-schema.json

Line by line:

  • python3 runs Python 3.
  • repro_server.py is the fixture, the pretend server.
  • --mode exploit selects the behaviour that contains the malicious definition.
  • --schema local-schema.json tells the fixture which local schema file to use as the source of the secret value.

The fixture prints a random definition_url. Keep this process running.

Why this step: the fixture has to be alive to answer the request Burp will make. The random port is printed so that the test does not collide with anything else already running on the machine.

Step 3: Start Burp Community in a fresh Temporary Project

Configure a loopback Proxy listener on port 8081, or use the supplied settings:

Bash
java -jar /absolute/path/to/burpsuite_community.jar --config-file=community-8081-project.json

Line by line:

  • java starts the Java runtime.
  • -jar says the next argument is a packaged Java program.
  • /absolute/path/to/burpsuite_community.jar is the full path to the Burp Community program file; you replace it with the real path on your machine.
  • --config-file=community-8081-project.json loads the supplied settings, which include the proxy listener on port 8081.

Why this step: Burp must be the middleman for the next request, and a fresh Temporary Project guarantees no leftover state.

Step 4: Fetch the definition through Burp

Replace <PORT> with the port printed in step 2, then fetch the response through Burp:

Bash
curl --noproxy '' --proxy http://[redacted]:8081 -H 'X-HackerOne-Research: 1rhino2' http://[redacted]:<PORT>/openapi.json

Line by line:

  • curl is a command-line program that fetches a URL.
  • --noproxy '' tells curl to ignore any system proxy settings, so the only proxy used is the one given next.
  • --proxy http://[redacted]:8081 sends the request through Burp, which is listening on port 8081 on this computer.
  • -H 'X-HackerOne-Research: 1rhino2' adds a custom header to the request. A header is a small labelled line of extra information sent with a request; this one marks the traffic as belonging to the research.
  • http://[redacted]:<PORT>/openapi.json is the address being fetched, where <PORT> is the number the fixture printed.

Why this step: the request has to pass through Burp so that Burp stores the response and offers the menu action on it.

Step 5: Select the response and invoke the action

Open Target > Site map and select the GET /openapi.json response. Open the Response message-actions menu and click Save OpenAPI requests to site map.

GET is the request method used to ask for something, as opposed to POST, which is used to send data. The Site map is Burp's list of everything it has seen. The message-actions menu is the small menu next to a message where Burp offers things it can do with it.

Why this step: the bug only happens when a person clicks the action. The click is what makes Burp parse the response and follow the pointers inside it.

Step 6: Observe the generated request

Burp adds POST /collect to the site map. Its body contains PZ_UI_POSITIVE_ONE_91c7e2.

The marker is absent from the HTTP definition response. Before Burp processes that response, the fixture supplies it only through local-schema.json. In other words, the value in the generated body did not come over the wire from the definition; it came from the local file that the $id rebasing reached.

Why this matters: if the marker had been in the response, seeing it in the generated request would prove nothing, because Burp could simply have copied it from the response. Because the marker exists only in the local file, its appearance in the generated request shows that Burp read that local file.

Step 7: Send the generated request once

Send the generated POST to Repeater and click Send once. Repeater is a Burp tool that lets you send a single request again and look at the reply. The fixture returns HTTP 200 and records:

Text
REQUEST=POST /collect
BODY={"leak":"PZ_UI_POSITIVE_ONE_91c7e2"}
HTTP_LOG="POST /collect HTTP/1.1" 200 -

Line by line:

  • REQUEST=POST /collect records that the fixture received a POST request for the path /collect.
  • BODY={"leak":"PZ_UI_POSITIVE_ONE_91c7e2"} records the body of that request, which contains the marker under the field name leak.
  • HTTP_LOG="POST /collect HTTP/1.1" 200 - is the fixture's own log line: the request line, and the status code 200, which means the server accepted and answered the request.

Why this step: it proves the value actually left Burp and reached a server, not just that it appeared in a preview.

Step 8: Repeat on the Stable build

Repeat with Community 2026.7.3 in another fresh Temporary Project. The second run used a separate local file and produced the marker PZ_UI_POSITIVE_TWO_4ad93b.

Why this step: repeating on a second build with a different file and a different marker shows the result is not a one-off accident of one version or one file.

Controls

A control is a version of the test where you change one thing and expect the attack to fail. If the control also succeeds, your explanation of the cause is probably wrong. Stop the previous fixture with Ctrl-C before changing modes. Each new fixture prints a new random port and truncates server.log, so use the newly printed port each time. Truncates means empties the log file, so old lines cannot be confused with new ones. A fresh Temporary Project was used for every control.

Direct external reference. Start the fixture in direct-control mode:

Bash
python3 repro_server.py --mode direct-control --schema local-schema.json

Line by line:

  • python3 runs Python 3.
  • repro_server.py is the fixture.
  • --mode direct-control selects the version where the pointer names the local file directly.
  • --schema local-schema.json still supplies the same local schema file.

The action is visible, but Burp rejects the definition with:

Text
This definition can't be uploaded as it links to one or more external API definitions. Review the definition and remove the external links.

This is Burp's own warning message. It says the definition links to external API definitions and asks you to remove those links. No collector request is generated and the fixture receives no POST. A collector here is the fixture that records what it receives. This shows the external-reference check does catch a direct file:///...#/secret $ref.

Why this control: it proves the protection exists and works when the local file is named directly. Without it, you could not say the bypass is a bypass at all.

$id without the fragment reference. Start the fixture in id-only mode:

Bash
python3 repro_server.py --mode id-only-control --schema local-schema.json

Line by line:

  • python3 runs Python 3.
  • repro_server.py is the fixture.
  • --mode id-only-control selects the version that has the local address in $id but no fragment pointer.
  • --schema local-schema.json supplies the same local schema file.

Burp generates only {"control":"INLINE_ONLY"}. After one Repeater send, the collector receives that exact inline value. No PZ_UI_POSITIVE_ marker appears in the generated request or receipt. Inline means the value was written directly in the definition, not fetched from anywhere else. This shows the local read depends on the fragment-only $ref being rebased against $id, not on $id alone.

Why this control: it separates the two ingredients. Having the local address in $id is not enough; the fragment pointer is also needed. That pins down the exact mechanism.

Top-level 3.1 object without the swaggerDoc bridge. Start the fixture in root-only mode:

Bash
python3 repro_server.py --mode root-only-control --schema local-schema.json

Line by line:

  • python3 runs Python 3.
  • repro_server.py is the fixture.
  • --mode root-only-control selects the version that has the top-level 3.1 object but no nested swaggerDoc.

The same top-level 3.1 candidate is present, but the response menu does not contain Save OpenAPI requests to site map. This shows the nested 3.0 swaggerDoc object is what makes the action available in the first place.

Why this control: it shows the menu option itself depends on the nested object. The two-part structure is not decoration; it is the first half of the trick.

Root cause

Inspection of the packaged classes with javap -p -c matches the UI result:

javap is a tool that comes with Java and shows what is inside a compiled Java class. The -p option includes private members, and -c prints the compiled instructions. A class is a building block of a Java program. Reading the compiled instructions is like reading the assembly sheet of a machine to see which parts move when you press a button.

  1. validate() unwraps swaggerDoc and reports a valid 3.0.0 document.
  2. The click path calls parse() on the original body. That path selects the top-level 3.1 object.
  3. The external-reference check scans $ref. It rejects the direct file:///... control, accepts #/secret, and does not reject the local base in $id.
  4. The bundled 3.1 resolver rebases the fragment against $id and reaches its local file reader.
  5. The selected schema example is used in the generated POST body.

In plain words: validate() is the door check, and it looks inside swaggerDoc. parse() is the work done after you are inside, and it looks at the top-level object. The external-reference check only reads $ref, so a local address hidden in $id passes it. The resolver then combines the fragment with that local address and reads the file. Finally, the sample value from the schema is placed in the request Burp generates.

The core mistake is the split between the object used for validation and the object used for parsing. The validator sees a benign 3.0 document in swaggerDoc, so the action is offered. The parser then works on the top-level 3.1 object, where $id can carry a local base and a fragment-only $ref can be rebased onto it. The external-reference check only looks at $ref, so a local base in $id slips past it. The bundled 3.1 resolver then resolves the fragment against that base and reads the local file.

The attachment includes the two UI runs, both collector receipts, the three controls, successful openat lines for both positive local files, parser-selection output for both builds, and the packaged-bytecode notes. An openat line is a record from the operating system showing that a file was opened, which is direct evidence of the local read. Bytecode is the compiled form of Java code.

Impact

If the user invokes Save OpenAPI requests to site map on the malicious response, Burp reads the selected example from the known, readable local schema and places it in a generated request addressed to the server selected by the definition. The server receives the value only if the user later sends that generated request.

Community does not send the generated request automatically. The local read happens after the user selects the site-map action. Disclosure to the definition-selected server requires a later explicit send of that generated request. Disclosure means the value becomes known to someone who should not know it.

Local OpenAPI and JSON Schema files can contain internal endpoint examples, sample credentials, tokens or other non-public test data in example fields. A credential is a username and password pair. A token is a short secret string that acts like a temporary key, so whoever holds it can act as the owner. A tenant identifier is a label that tells a shared service which customer's data belongs to whom. The proof uses only synthetic markers and does not claim access to files without a compatible schema shape. Synthetic means made up for the test.

Limits stated in the report:

  • The local path must be known or guessed and readable by Burp.
  • The confirmed target is a compatible JSON schema.
  • The selected fragment must be schema-shaped.
  • The proof confirms disclosure of a selected example value. It is not an unrestricted raw-file read.
  • Windows, macOS and Burp Professional were not tested.
  • No integrity or availability impact is claimed.

Integrity means data being changed without permission; availability means a service being made unusable. The report claims neither.

PortSwigger's program treats websites accessed through Burp as untrusted and lists local-file retrieval by such a website as a Medium example. PortSwigger is the company behind Burp, and its bug bounty program is the scheme that pays researchers for reporting problems. Medium is a severity level, a rough label for how serious a bug is. The required interaction is unlikely, so the researcher selected Medium under the program's reduced-bounty interaction category. The report was disclosed with a bounty of 1000.00 USD. Disclosed means the report was made public.

Fix

The report does not describe a fix or a vendor response.

Variants to test

  • Other document-selection mismatches. Serve a response where a nested object makes an action available but the top-level object is what gets parsed. A positive result is an action that appears in the menu and then processes data the validator never saw.
  • $id rebasing in other resolvers. Try a local file:/// base in $id with a fragment-only $ref against other tools that resolve JSON Schema or OpenAPI 3.1. A positive result is a local file read that the direct file:///...#/... form would have been blocked for.
  • Other reference keywords. Check whether the external-reference check covers only $ref and misses bases or links carried elsewhere. A positive result is a local read that passes the check.
  • Schema-shaped fragments. Try fragments that select other schema keywords besides example. A positive result is any local value that ends up in a generated request.
  • Other Burp builds and platforms. The report tested two Community builds on one platform. A positive result on another build or platform is the same marker appearing in a generated request after the site-map action.

Glossary

  • API: the set of addresses and rules one program uses to talk to another, like a menu of what you can ask for.
  • API definition: a file that describes an API's addresses, methods and data shapes.
  • Attachment: the bundle of files supplied with the report so others can repeat the test.
  • Availability: whether a service keeps working; an availability impact means making it unusable.
  • Base: the address that a relative pointer is combined with to form a full address.
  • Body: the part of a request or response that carries data, as opposed to the address line.
  • Bug bounty program: a scheme where a company pays researchers for reporting security problems.
  • Build: one particular compiled version of a program.
  • Bytecode: the compiled form of Java code.
  • Class: a building block of a Java program.
  • Collector: the test server that records what it receives.
  • Control: a version of a test where one thing is changed and the attack is expected to fail, used to confirm the cause.
  • Credential: a username and password pair.
  • curl: a command-line program that fetches a URL.
  • Disclosure: making information known to someone who should not have it; also, making a report public.
  • Early Adopter: a version released ahead of the stable one.
  • example: a sample value in a schema showing what real data looks like.
  • External reference: a pointer in a definition to something outside it, such as a file or another definition.
  • Fixture: a small program that plays the part of a server for a test.
  • Fragment: the part of a pointer starting with # that selects something inside a document, like a bookmark.
  • GET: the request method used to ask for something.
  • Hash: a short fingerprint computed from a file's contents, used to confirm two files are identical.
  • Header: a small labelled line of extra information sent with a request or response.
  • HTTP: the language browsers and servers use to exchange requests and responses.
  • HTTP 200: the status code meaning the server accepted and answered the request.
  • Inline: written directly in the definition rather than fetched from elsewhere.
  • Integrity: whether data stays unchanged; an integrity impact means changing it without permission.
  • JAR: the file format Java programs are packaged in.
  • javap: a tool that shows what is inside a compiled Java class.
  • JSON Schema: a format for describing what data should look like.
  • Loopback: traffic that goes out of a computer and straight back into it.
  • Marker: a unique piece of text planted so it can be recognised later.
  • Medium: a severity level, a rough label for how serious a bug is.
  • Message-actions menu: the small menu next to a message in Burp where it offers things it can do with it.
  • OpenAPI: a format for describing APIs, with versions 3.0 and 3.1 used here.
  • openat: an operating system record showing that a file was opened.
  • Parsing: reading structured text and turning it into something a program can work with.
  • Path traversal: making a program reach a file it was not meant to reach by giving it a cleverly written path.
  • Port: a numbered door on a computer that a program listens on.
  • POST: the request method used to send data to a server.
  • Proxy listener: the door Burp opens so other programs can send their traffic through it.
  • Rebasing: combining a relative pointer with a base address to get a full address.
  • $ref: a field that points at content located elsewhere.
  • Repeater: a Burp tool that sends a single request again and shows the reply.
  • Replaying: sending the same request again, possibly after changing something.
  • Resolver: the part of a program that turns a pointer into the content it points at.
  • Response: the reply a server sends back to a request.
  • Restriction bypass: getting past a check that is supposed to stop you.
  • Schema: a description of what data should look like.
  • Site map: Burp's list of everything it has seen.
  • Stable: the normal release version of a program.
  • swaggerDoc: the field name that can hold a whole OpenAPI 3.0 document inside a response.
  • Synthetic: made up for a test rather than taken from real data.
  • Temporary Project: a Burp project that is thrown away when you close it.
  • Tenant identifier: a label telling a shared service which customer's data belongs to whom.
  • Token: a short secret string that acts like a temporary key.
  • Truncate: to empty a file, here a log, so old lines cannot be confused with new ones.
  • $id: a field that gives a document, or part of it, a name or address other parts can refer to.
  • Validator: the part of a program that decides whether input is acceptable.
  • Vulnerability class: a family of similar security bugs, such as path traversal.
  • [redacted]: the address meaning "this computer", never routed to the internet.

More by 1rhino2

View all

12 more disclosed reports, best first.

More from PortSwigger Web Security

View all

The newest disclosed reports for this program.

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.