Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent loading of extensions outside of the expansions folder using the register command #946

Merged

Conversation

JulianVennen
Copy link
Contributor

Pull Request

Type

  • Internal change (Doesn't affect end-user).
  • External change (Does affect end-user).
  • Wiki (Changes towards the Wiki).
  • Other: __________

Description

This pull request prevents loading expansions from folders other than the expansions folder.
In previous versions, you could use path traversal with ../ to load expansions from other directories, e.g. /papi register ../../../world/expansion.jar would load an expansion from the world folder.

@iGabyTM iGabyTM added Target: Code This issue/PR is targeting the Code of PlaceholderAPI Type: Bugfix This fixes an existing bug in PlaceholderAPI. labels Mar 30, 2023
@iGabyTM iGabyTM merged commit 744cf6d into PlaceholderAPI:master Apr 4, 2023
@JulianVennen JulianVennen deleted the block-load-path-traversal branch June 23, 2023 11:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Target: Code This issue/PR is targeting the Code of PlaceholderAPI Type: Bugfix This fixes an existing bug in PlaceholderAPI.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants