# GHSA-2fch-hv74-fgw9: Cross site scripting (XSS) in wwbn/avideo

> Reflected XSS in aVideo allows attackers to steal admin cookies and take over accounts via crafted links.

- **Severity:** Not scored
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** A user has to click or open something
- **Fix available:** Yes
- **Published:** 26 Apr 2023

## What is GHSA-2fch-hv74-fgw9?

GHSA-2fch-hv74-fgw9 is a cross-site scripting vulnerability in wwbn/avideo, published on 26 Apr 2023. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

### Official description

Description:

While making an account in demo.avideo.com I found a parameter "?success=" which did not sanitize any symbol character properly which leads to XSS attack.

Impact:

Since there's an Admin account on demo.avideo.com attacker can use this attack to Takeover the admin's account

Step to Reproduce:

1. Click the link below

[https://demo.avideo.com/user?success="><img](https://demo.avideo.com/user?success=%22%3E%3Cimg) src=x onerror=alert(document.cookie)>

2. Then XSS will be executed

## Which versions are affected by GHSA-2fch-hv74-fgw9?

2 open source packages ship an affected version, including wwbn/avideo.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `wwbn/avideo` | Packagist | All versions | 12.4 |
| `wwbn/avideo` | Packagist | All versions | 12.4 |

## How do I fix GHSA-2fch-hv74-fgw9?

Upgrade wwbn/avideo to 12.4 or later.

## Is GHSA-2fch-hv74-fgw9 being exploited?

There is no known exploitation of GHSA-2fch-hv74-fgw9 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for GHSA-2fch-hv74-fgw9 and fix it if it is affected.

What it is: GHSA-2fch-hv74-fgw9 is a cross-site scripting vulnerability in wwbn/avideo, published on 26 Apr 2023. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Exploitation: There is no known exploitation of GHSA-2fch-hv74-fgw9 in the wild and no public exploit code.

Affected packages and fixed versions:
- wwbn/avideo (Packagist): affected all versions; fixed in 12.4
- wwbn/avideo (Packagist): affected all versions; fixed in 12.4

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-2fch-hv74-fgw9/ (Markdown: https://insights.sbomify.com/GHSA-2fch-hv74-fgw9/index.md)
```

## Sources

- OSV: https://osv.dev/vulnerability/GHSA-2fch-hv74-fgw9

---
From sbomify Insights: https://insights.sbomify.com/GHSA-2fch-hv74-fgw9/
Summaries are generated and may contain mistakes; the official description above is the record.
