VDB
Sign up
MEDIUM5.3

GHSA-99j6-hj87-6fcf

AVideo: Unauthenticated Information Disclosure via Missing Auth on CloneSite client.log.php

Details

## Summary

The `plugin/CloneSite/client.log.php` endpoint serves the clone operation log file without any authentication. Every other endpoint in the CloneSite plugin directory enforces `User::isAdmin()`. The log contains internal filesystem paths, remote server URLs, and SSH connection metadata.

## Details

The entire file at `plugin/CloneSite/client.log.php`:

```php <?php include '../../videos/cache/clones/client.log'; ```

No authentication check. The log file is populated by `cloneClient.json.php` which writes operational details during clone operations:

```php // plugin/CloneSite/cloneClient.json.php:118 $log->add("Clone (2 of {$totalSteps}): Geting MySQL Dump file [$cmd]"); ```

The `$cmd` variable contains wget commands with internal filesystem paths, and rsync command templates with SSH connection details (username, IP, port).

Compare with sibling endpoints: - `plugin/CloneSite/index.php` checks `User::isAdmin()` - `plugin/CloneSite/changeStatus.json.php` checks `User::isAdmin()` - `plugin/CloneSite/clones.json.php` checks `User::isAdmin()` - `plugin/CloneSite/delete.json.php` checks `User::isAdmin()`

## Proof of Concept

```bash curl "https://your-avideo-instance.com/plugin/CloneSite/client.log.php" ```

If the CloneSite feature has been used, the response contains wget commands, filesystem paths, SSH metadata, and SQL dump file locations.

## Impact

Unauthenticated disclosure of internal infrastructure details that could aid targeted attacks against the clone source server.

## Recommended Fix

Add an admin authentication check at `plugin/CloneSite/client.log.php`, before the include:

```php require_once '../../videos/configuration.php'; if (!User::isAdmin()) { http_response_code(403); die('Access denied'); } ```

--- *Found by [aisafe.io](https://aisafe.io)*

Are you affected?

Enter the version of the package you're using.

Affected packages

Packagist/wwbn/avideo
Introduced in: 0

No fixed version published yet for wwbn/avideo (composer). Pin to a known-safe version or switch to an alternative.

References

Check it before you install it

One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.

curl -s https://vdb.ai.kr/v1/ai/check-packages \
  -H 'Content-Type: application/json' \
  -d '{"packages":["pkg:composer/wwbn/avideo"]}'