zaproxy / zaproxy/community-scripts
AlertOnUnexpectedContentTypes.js reports false positive for application/grpc header
Open
Beginner friendly
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 895
- Forks
- 260
- Avg merge
- 53m
- Merged PRs (30d)
- 1
Description
Due to the fact that the current script does not include support for application/grpc.* it will report that the content-type is unexpected.
The fix is to check against all possible header types that could include application/grpc
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the attached AlertOnUnexpectedContentTypes.js script and locate the content-type validation that flags application/grpc.* as unexpected. Check how supported header types are matched, then verify that the relevant application/grpc variants are accepted without suppressing unrelated unexpected content types.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- security
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 72/100