{"answers":{"affected":"2 open source packages ship an affected version, including @saltcorn/cli.","exploited":"There is no known exploitation of GHSA-wxf3-4fvj-vqqx in the wild and no public exploit code.","fix":"Upgrade @saltcorn/cli to 0.8.8-beta.2 or later.","what":"GHSA-wxf3-4fvj-vqqx is a missing authorization vulnerability in @saltcorn/cli, published on 27 Jul 2023. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for GHSA-wxf3-4fvj-vqqx and fix it if it is affected.\n\nWhat it is: GHSA-wxf3-4fvj-vqqx is a missing authorization vulnerability in @saltcorn/cli, published on 27 Jul 2023. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of GHSA-wxf3-4fvj-vqqx in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- @saltcorn/cli (npm): affected all versions; fixed in 0.8.8-beta.2\n- @saltcorn/cli (npm): affected all versions; fixed in 0.8.8-beta.2\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/GHSA-wxf3-4fvj-vqqx/ (Markdown: https://insights.sbomify.com/GHSA-wxf3-4fvj-vqqx/index.md)","id":"GHSA-wxf3-4fvj-vqqx","markdown":"https://insights.sbomify.com/GHSA-wxf3-4fvj-vqqx/index.md","name":"GHSA-wxf3-4fvj-vqqx","record":{"aliases":[],"analysis":{"component_type":"web_application","fix_type":"patch","impacts":["data_read","privilege_escalation"],"network_reachable":"yes","non_default_config":true,"product_category":"Saltcorn low-code platform","requires_auth":"low_privilege","summary":"Tenant admins can bypass unsafe plugin restrictions via pack import, allowing access to data from other tenants.","user_interaction":"not_required","vuln_class":"missing_authorization"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"### Summary\nUnsafe plugins (for instance `sql-list`) can be installed in subdomain tenants via pack import even if unsafe plugin installation for tenants is disables\n\n### Details\nI have an example\nhttps://bot20230704.saltcorn.com/view/all_plugins\nIt's publicly accessible (but has not so secure values except list of tenants).\nBut using this mech one can read **any** data from other tenants.\n\n### Impact\nAll tenants of installation (i.e. `saltcorn.com`), can be compromised from tenant user has admin access. If an untrusted user has admin rights to a tenant instance, they will be able to install a plug-in that can access information from other tenants\n\n### Revived after 0.8.7\nAfter patch in 0.8.7 this is not fixed completely.\n\nHere are steps to reproduce:\n1. Publish to NPM plugin that was not approved by admin (in case of saltcorn.com) by @glutamate. I've just published this one: https://www.npmjs.com/package/saltcorn-qrcode\n2. Publish somewhere plugin store that includes plugin from previous step: https://gist.github.com/pyhedgehog/f1fd7cb13f4d0a7ccf6a965748d19bd2\n3. Add plugin store link to tenant store.\n4. Install plugin.\n5. Use it in tenant: https://bot20230704.saltcorn.com/view/testqr_show/1\n\nHere are logic:\nUnsafe plugins checked against this list:\nhttps://github.com/saltcorn/saltcorn/blob/99fe277e497fd193bb070acd8c663aa254a9907c/packages/server/load_plugins.js#L191\nBut it's under control of tenant admin, not server admin.\nProposed login:\n```javascript\nconst safes = getRootState().getConfig(\"available_plugins\",[]).filter(p=\u003e!p.unsafe).map(p=\u003ep.location);\n```","ecosystems":["npm"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"Unsafe plugins can be installed via pack import by tenant admins","id":"GHSA-wxf3-4fvj-vqqx","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"npm","product":null,"products":[],"type":"missing_authorization","year":"2023"},"n_packages":2,"n_references":null,"packages":[{"ecosystem":"npm","fixed":["0.8.8-beta.2"],"introduced":["0"],"last_affected":[],"package":"@saltcorn/cli","purl":null,"source":"GHSA-wxf3-4fvj-vqqx"},{"ecosystem":"npm","fixed":["0.8.8-beta.2"],"introduced":["0"],"last_affected":[],"package":"@saltcorn/cli","purl":"pkg:npm/%40saltcorn/cli","source":"GHSA-wxf3-4fvj-vqqx"}],"products":null,"published":"2023-07-27","related":[],"sources":[{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"Tenant admins can bypass unsafe plugin restrictions via pack import, allowing access to data from other tenants.","url":"https://insights.sbomify.com/GHSA-wxf3-4fvj-vqqx/"}