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

Sanitize user controlled arguments in bot comments #732

Merged
merged 2 commits into from
Jul 24, 2021

Conversation

Marcono1234
Copy link
Contributor

Purpose

Sanitize user controlled arguments which are included in bot comments to prevent command injection.

Approach

  • Specify a list of allowed characters, see Functions.kt#sanitizeCommentArg
  • Make CommandModule ignore comments written by bot

Future work

Together with #671 we should have a single function testing whether an issue has a 'tag' comment, e.g. MEQS_KEEP_PLATFORM.
This function should ignore comments written by the bot to prevent tag injection.

Checklist

  • Included tests
  • Updated documentation in README and docs folder
  • Tested in MCTEST-xxx

@urielsalis urielsalis merged commit 4cfe8ca into master Jul 24, 2021
@urielsalis urielsalis deleted the fix/sanitize-comment-args branch July 24, 2021 12:20
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.

2 participants