beats icon indicating copy to clipboard operation
beats copied to clipboard

[packetbeat] MongoDB parser fix bounds checks

Open stanek-michal opened this issue 3 weeks ago • 4 comments

Proposed commit message

packetbeat: fix bounds checking in mongodb protocol parser

Checklist

  • [x] My code follows the style guidelines of this project
  • [x] I have commented my code, particularly in hard-to-understand areas
  • [] I have made corresponding changes to the documentation
  • [ ] I have made corresponding change to the default configuration files
  • [x] I have added tests that prove my fix is effective or that my feature works. Where relevant, I have used the stresstest.sh script to run them under stress conditions and race detector to verify their stability.
  • [x] I have added an entry in ./changelog/fragments using the changelog tool.

How to test this PR locally

cd packetbeat/protos/mongodb && go test -v ./...

stanek-michal avatar Dec 04 '25 16:12 stanek-michal

:robot: GitHub comments

Just comment with:

  • run docs-build : Re-trigger the docs validation. (use unformatted text in the comment!)

github-actions[bot] avatar Dec 04 '25 16:12 github-actions[bot]

This pull request does not have a backport label. If this is a bug or security fix, could you label this PR @stanek-michal? 🙏. For such, you'll need to label your PR with:

  • The upcoming major version of the Elastic Stack
  • The upcoming minor version of the Elastic Stack (if you're not pushing a breaking change)

To fixup this pull request, you need to add the backport labels for the needed branches, such as:

  • backport-8./d is the label to automatically backport to the 8./d branch. /d is the digit
  • backport-active-all is the label that automatically backports to all active branches.
  • backport-active-8 is the label that automatically backports to all active minor branches for the 8 major.
  • backport-active-9 is the label that automatically backports to all active minor branches for the 9 major.

mergify[bot] avatar Dec 04 '25 16:12 mergify[bot]

Pinging @elastic/sec-linux-platform (Team:Security-Linux Platform)

elasticmachine avatar Dec 04 '25 16:12 elasticmachine

Any logging that can be triggered by "Every" packet should be Debug at the highest.

good point, fixed.

stanek-michal avatar Dec 08 '25 14:12 stanek-michal