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

templates: block nested template executors #1677

Merged

Commits on Jun 20, 2024

  1. templates: flag templates executed by inbuilt cmds

    Add a flag for templates which are executed from the templates of
    inbuilt commands.
    
    Signed-off-by: SoggySaussages <vmdmaharaj@gmail.com>
    SoggySaussages committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    b4e79f4 View commit details
    Browse the repository at this point in the history
  2. moderation: block nested exec(Admin) calls

    Blocks nested exec/execAdmin calls by passing an
    "executedByCommandTemplate" flag through moderation command execution.
    When this flag reaches a new context created by a moderation command,
    it turns into ExecutedFromNextedCommandTemplate. This flag blocks
    moderation commands from running.
    
    Signed-off-by: SoggySaussages <vmdmaharaj@gmail.com>
    SoggySaussages committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    77d7dc6 View commit details
    Browse the repository at this point in the history
  3. tickets: block nested exec(Admin) calls

    Blocks nested exec/execAdmin calls and createTicket calls by passing an
    "executedByCommandTemplate" flag through moderation command execution.
    When this flag reaches a new context created by a ticket, it turns into
    ExecutedFromNextedCommandTemplate. This flag blocks moderation commands
    and tickets from running.
    
    Signed-off-by: SoggySaussages <vmdmaharaj@gmail.com>
    SoggySaussages committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    2d5fccb View commit details
    Browse the repository at this point in the history
  4. moderation: fix nesting detection

    Signed-off-by: SoggySaussages <vmdmaharaj@gmail.com>
    SoggySaussages committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    0dbb060 View commit details
    Browse the repository at this point in the history
  5. tickets: fix nesting detection

    Signed-off-by: SoggySaussages <vmdmaharaj@gmail.com>
    SoggySaussages committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    f62355a View commit details
    Browse the repository at this point in the history
  6. templates: block execCC from inbuilt cmd templates

    Signed-off-by: SoggySaussages <vmdmaharaj@gmail.com>
    SoggySaussages committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    6fe205a View commit details
    Browse the repository at this point in the history
  7. moderation: further fix nest detection

    Signed-off-by: SoggySaussages <vmdmaharaj@gmail.com>
    SoggySaussages committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    330835e View commit details
    Browse the repository at this point in the history
  8. tickets: further fix nest detection

    Signed-off-by: SoggySaussages <vmdmaharaj@gmail.com>
    SoggySaussages committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    2ab2d43 View commit details
    Browse the repository at this point in the history