Advisory

GHSA-9h6h-9g78-86f7

Also known as: GO-2022-1204

Summary

Yapscan's report receiver server vulnerable to path traversal and log injection

Details

Impact

If you make use of the report receiver server (experimental), a client may be able to forge requests such that arbitrary files on the host can be overwritten (subject to permissions of the yapscan server), leading to loss of data. This is particularly problematic if you do not authenticate clients and/or run the server with elevated permissions.

Patches

Vulnerable versions:

  • v0.18.0
  • v0.19.0 (unreleased)

This problem is patched in version v0.19.1

Workarounds

Update to the newer version is highly encouraged!

Measures to reduce the risk of this include authenticating clients (see --client-ca flag) and containerization of the yapscan server.

References

The tracking issue is #35. There you can find the commits, fixing the issue.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2022-12-29 01:50 UTC
Modified
2024-08-21 16:28 UTC

Affected packages and fixes

github.com/fkie-cad/yapscan

Go · All systems

Affected

  • introduced 0.18.0, fixed 0.19.1 (semver)

Fixed versions

0.19.1

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences