Skip to content

Verify Slack signing secret on /slack/action endpoint #11

Closed

Description

@OkiriGabriel

Problem

Slack interactive actions can approve command execution without request verification, allowing forged approval requests.

Current state

  • api/server.py slack_action parses form payload and executes approved commands via agent.execute_approved_action
  • No Slack signing-secret validation (X-Slack-Signature, X-Slack-Request-Timestamp)
  • tools/notify.py reads SLACK_BOT_TOKEN but no signing secret env var exists

Acceptance criteria

  • Add SLACK_SIGNING_SECRET to .env.example and services/org_config.py
  • Validate Slack request signature before processing approve_action / reject_action
  • Reject replayed requests (timestamp tolerance)
  • Add unit tests with known Slack signature fixtures

Files

  • api/server.py, tools/notify.py, .env.example

Activity

  1. added
    bug
    help wanted
    security
    on Jul 16, 2026
  2. OkiriGabriel commented on Jul 16, 2026

    @OkiriGabriel
    CollaboratorAuthor

    Fixed in PR #20 (merged): /slack/action validates X-Slack-Signature via api/webhook_auth.py. SLACK_SIGNING_SECRET added to .env.example and org BYOK keys.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bughelp wantedsecurity

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions