Skip to content

Check to detect when an endpoint support other content types than JSON.#263

Merged
Hannah-PortSwigger merged 1 commit intoPortSwigger:mainfrom
righettod:main
Jan 26, 2026
Merged

Check to detect when an endpoint support other content types than JSON.#263
Hannah-PortSwigger merged 1 commit intoPortSwigger:mainfrom
righettod:main

Conversation

@righettod
Copy link
Copy Markdown
Contributor

@righettod righettod commented Jan 23, 2026

Description

Hi,

This PR propose a BCheck to verify if an endpoint, supporting the content type JSON, also support other content types like XML/YAML. The usage context is an web API that normally consume JSON but also, via the web framework used, support XML/YAML. This can open new attack vectors like for example XML external entity (XXE) injection.

Thank you for your feedback 😉

Tests

It was tested in Burp Pro version 2025.12.4:

image

BCheck Contributions

  • BCheck compiles and executes as expected
  • BCheck contains appropriate metadata (name, version, author, description and appropriate tags)
  • Only .bcheck files have been added or modified
  • BCheck is in the appropriate folder
  • PR contains single or limited number of BChecks (Multiple PRs are preferred)
  • BCheck attempts to minimize false positives

Copy link
Copy Markdown
Collaborator

@PortSwiggerWiener PortSwiggerWiener left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Many thanks for the PR. The BCheck looks good.

@righettod
Copy link
Copy Markdown
Contributor Author

Many thanks for the PR. The BCheck looks good.

Thanks a lot for the quick feedback and Burp 🥰

@Hannah-PortSwigger Hannah-PortSwigger merged commit f6f9910 into PortSwigger:main Jan 26, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants