Skip to content

[Security] Security issue in your GitHub CI workflow YAML files #75

@cicd-security

Description

@cicd-security

Hello maintainers,

I would like to report a potential vulnerability in your GitHub CI workflows.

Affected files:

  • swcstudio/katalyst/.github/workflows/ai-refactoring-assistant.yml

Vulnerability:

  • In job 'refactor-code', step 'Parse Refactor Request', the attacker-controlled input '${{ github.event.comment.body }}' is spliced directly into the run shell, leading to command injection.
  • In job 'refactor-code', attacker-controlled input from github.event.comment.body is parsed and used to construct the LLM prompt in step 'AI Refactoring'. A malicious comment can inject instructions, causing the LLM to generate malicious code. This code is written to a file and then executed by the 'Run Tests' step via npm test.

Thank you for your time and for maintaining this project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions