Skip to content

Fix uncontrolled data used in path expression#4221

Merged
merlimat merged 3 commits into
apache:masterfrom
hangc0276:chenhang/fix_uncontrolled_data_used_in_path_expression
Mar 4, 2024
Merged

Fix uncontrolled data used in path expression#4221
merlimat merged 3 commits into
apache:masterfrom
hangc0276:chenhang/fix_uncontrolled_data_used_in_path_expression

Conversation

@hangc0276

Copy link
Copy Markdown
Contributor

Motivation

We must add the filename check before doing any operations to reduce the attack risk.

Changes

Add filename check.

Master Issue: #


In order to uphold a high standard for quality for code contributions, Apache BookKeeper runs various precommit
checks for pull requests. A pull request can only be merged when it passes precommit checks.


Be sure to do all of the following to help us incorporate your contribution
quickly and easily:

If this PR is a BookKeeper Proposal (BP):

  • Make sure the PR title is formatted like:
    <BP-#>: Description of bookkeeper proposal
    e.g. BP-1: 64 bits ledger is support
  • Attach the master issue link in the description of this PR.
  • Attach the google doc link if the BP is written in Google Doc.

Otherwise:

  • Make sure the PR title is formatted like:
    <Issue #>: Description of pull request
    e.g. Issue 123: Description ...
  • Make sure tests pass via mvn clean apache-rat:check install spotbugs:check.
  • Replace <Issue #> in the title with the actual Issue number.

@merlimat
merlimat merged commit 34d8515 into apache:master Mar 4, 2024
nicoloboschi pushed a commit that referenced this pull request Mar 21, 2024
* Fix uncontrolled data used in path expression

* update code

* update code

(cherry picked from commit 34d8515)
Ghatage pushed a commit to sijie/bookkeeper that referenced this pull request Jul 12, 2024
* Fix uncontrolled data used in path expression

* update code

* update code
lhotari pushed a commit that referenced this pull request Apr 17, 2025
* Fix uncontrolled data used in path expression

* update code

* update code

(cherry picked from commit 34d8515)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants