Skip to content

[BUG] Bad security ACL examples #57874

Closed as not planned
Closed as not planned

Description

@OrangeDog

https://github.com/saltstack/salt/blob/v3001/doc/topics/eauth/access_control.rst#examples

The way it's written implies that pkg.* matches all functions in the pkg module, but it also matches everything in pkg_resource, pkgin, pkgng, and pkgutil.

Using regular expressions instead of globs for a string that's expected to contain dots was perhaps a mistake.

It may also be worth mentioning: if you have access to the pkg module, you can easily escalate that to root access on a linux minion. Or a more generic warning: many modules may allow arbitrary escalation on the minion, especially if the minion process runs as root.

Activity

  1. added
    bug
    on Jul 6, 2020
  2. added
    documentation
    on Jul 6, 2020
  3. added this to the Approved milestone on Jul 6, 2020
  4. OrangeDog commented on Jul 6, 2020

    @OrangeDog
    ContributorAuthor

    It's also unclear why the \ are necessary in the minion globs.

  5. added
    doc-rework
    on Jul 6, 2020
  6. sagetherage commented on Jul 6, 2020

    @sagetherage
    Contributor

    @saltstack/docs-working-group

  7. added
    help-wanted
    severity-medium
    on Mar 21, 2022
  8. dwoz commented on Oct 15, 2026

    @dwoz
    Contributor

    Thanks for the original report. This issue has been open for more than three years without recent activity and carries a severity label below severity-high. As part of a backlog cleanup, we're closing older low- and medium-severity issues so triage can focus on reports against currently supported releases.

    Closing isn't a judgement that the problem wasn't real — only that the codebase has moved through several releases since this was filed, and much of the surrounding code has changed.

    If you — or anyone else — can still reproduce this on the 3008.x LTS release, please leave a comment with a reproduction and a maintainer will reopen. The original reporter can also reopen directly.

  9. dwoz commented on Oct 17, 2026

    @dwoz
    Contributor

    Reopening — there is an open PR tracking a fix for this: #69554.

  10. reopened this on Oct 17, 2026
  11. dwoz commented on Oct 23, 2026

    @dwoz
    Contributor

    Closing as part of a backlog cleanup — this issue was filed without a Salt versions-report, so there's no explicit version attached to compare against.

    If you (or anyone else) can still reproduce this on 3008.3 or later, please comment with:

    • A fresh reproduction
    • The output of salt --versions-report

    and the issue will be reopened. The original reporter can also reopen directly.

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

    bugdoc-reworkdocumentationhelp-wantedseverity-mediumtime-estimate-single-day

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions