Skip to content

Sanitize USER before building plugin clone ids - #9851

Closed
chessing234 wants to merge 1 commit into
omacom:quattrofrom
chessing234:fix/plugin-clone-sanitize-user
Closed

chessing234 wants to merge 1 commit into
omacom:quattrofrom
chessing234:fix/plugin-clone-sanitize-user

Conversation

@chessing234

Copy link
Copy Markdown
Contributor

Summary

  • clone ids are $USER.$source under the plugins dir
  • a USER with path separators / .. escapes that directory
  • reject unsafe usernames before mkdir

Test plan

  • normal clone still creates user.source under plugins

Cloned plugin ids are "$USER.$source". A USER value with path separators
or ".." would escape the plugins directory. Reject unsafe usernames the
same way plugin ids are validated elsewhere.
@chessing234

Copy link
Copy Markdown
Contributor Author

@dhh @ryanrhughes ready for review

@chessing234

Copy link
Copy Markdown
Contributor Author

folded into #12718 for easier review.

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.

1 participant