Permissive Regular Expression Affecting github.com/facebookincubator/tacquito/cmds/server/config/authorizers/stringy package, versions >=0.0.0


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team

    Threat Intelligence

    EPSS
    0.04% (11th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-GOLANG-GITHUBCOMFACEBOOKINCUBATORTACQUITOCMDSSERVERCONFIGAUTHORIZERSSTRINGY-8235190
  • published 20 Oct 2024
  • disclosed 18 Oct 2024
  • credit Unknown

How to fix?

A fix was pushed into the master branch but not yet published.

Overview

Affected versions of this package are vulnerable to Permissive Regular Expression when checking authorized commands and arguments in command.go. An attacker can execute unauthorized commands by sending a command that is a partial match for an authorized one.

Note: This issue was fixed since version 0.0.0-20241011192817-07b49d1358e6.

Workaround

This vulnerability can be mitigated by adding boundary condition anchors ^ and $ to command configurations.

CVSS Scores

version 4.0
version 3.1
Expand this section

Snyk

Recommended
7.1 high
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Attack Requirements (AT)
    None
  • Privileges Required (PR)
    Low
  • User Interaction (UI)
    Passive
  • Confidentiality (VC)
    Low
  • Integrity (VI)
    High
  • Availability (VA)
    High
  • Confidentiality (SC)
    None
  • Integrity (SI)
    None
  • Availability (SA)
    None