# GHSA-v988-828w-xvf2: Authentication Bypass Using an Alternate Path or Channel and Authentication Bypass by Primary Weakness in rucio-webui

> Attackers can steal authentication tokens from other users via cookie leakage in the Rucio web UI, allowing unauthorized access and privilege escalation.

- **Severity:** Not scored
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 22 Oct 2021

## What is GHSA-v988-828w-xvf2?

GHSA-v988-828w-xvf2 is an authentication bypass vulnerability in rucio-webui, published on 22 Oct 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

### Impact
`rucio-webui` installations of the `1.26` release line potentially leak the contents of cookies to other sessions within a wsgi container. Impact is that Rucio authentication tokens are leaked to other users accessing the `webui` within a close timeframe, thus allowing users to access the `webui` with the leaked authentication token. Privileges are therefore also escalated.

Rucio server / daemons are not affected by this issue, it is isolated to the webui.

### Patches
This issue is fixed in the `1.26.7` release of the `rucio-webui`.

### Workarounds
Installation of the `1.25.7` `webui` release. The `1.25` and previous webui release lines are not affected by this issue.

### References
https://github.com/rucio/rucio/issues/4928

## Which versions are affected by GHSA-v988-828w-xvf2?

2 open source packages ship an affected version, including rucio-webui.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `rucio-webui` | PyPI | From 1.26.0 | 1.26.7 |
| `rucio-webui` | PyPI | From 1.26.0 | 1.26.7 |

## How do I fix GHSA-v988-828w-xvf2?

Upgrade rucio-webui to 1.26.7 or later.

## Is GHSA-v988-828w-xvf2 being exploited?

There is no known exploitation of GHSA-v988-828w-xvf2 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for GHSA-v988-828w-xvf2 and fix it if it is affected.

What it is: GHSA-v988-828w-xvf2 is an authentication bypass vulnerability in rucio-webui, published on 22 Oct 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: There is no known exploitation of GHSA-v988-828w-xvf2 in the wild and no public exploit code.

Affected packages and fixed versions:
- rucio-webui (PyPI): affected from 1.26.0; fixed in 1.26.7
- rucio-webui (PyPI): affected from 1.26.0; fixed in 1.26.7

Task:
1. 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.
2. 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.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/GHSA-v988-828w-xvf2/ (Markdown: https://insights.sbomify.com/GHSA-v988-828w-xvf2/index.md)
```

## Sources

- OSV: https://osv.dev/vulnerability/GHSA-v988-828w-xvf2

---
From sbomify Insights: https://insights.sbomify.com/GHSA-v988-828w-xvf2/
Summaries are generated and may contain mistakes; the official description above is the record.
