saltstack / saltstack/salt

[BUG] ReDoS in salt-master

Open
#65,861 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug needs-triage
Dominant language
Python
Stars
15.7k
Forks
5.6k
Avg merge
2d 44m
Merged PRs (30d)
80

Description

Description
when use a fake salt-minion connect salt-master, and edit some special words in /etc/salt/grains file, can attact master with redos injection

Setup

  1. edit those words into /etc/salt/grains
    test: aaaaaaaaaaaaaaaaaaaaaaaaaaaa+
  2. restart salt-minion
  3. use a fake salt-minion client and sent req to master

7

Steps to Reproduce the behavior
(Include debug logs if possible and relevant)

Expected behavior

Screenshots
1

Versions Report
3006.5

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the report on Salt 3006.5 with the /etc/salt/grains value aaaaaaaaaaaaaaaaaaaaaaaaaaaa+, a restarted salt-minion, and a fake minion request to salt-master. Trace the request handling that processes the grains value and confirm that the fix prevents excessive regular-expression processing or master unresponsiveness.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend, security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.