Skip to content

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

High severity GitHub Reviewed Published Dec 23, 2022 in fkie-cad/yapscan • Updated Mar 31, 2023

Package

gomod github.com/fkie-cad/yapscan (Go)

Affected versions

>= 0.18.0, < 0.19.1

Patched versions

0.19.1

Description

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.

References

@targodan targodan published to fkie-cad/yapscan Dec 23, 2022
Published to the GitHub Advisory Database Dec 29, 2022
Reviewed Dec 29, 2022
Last updated Mar 31, 2023

Severity

High
7.5
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
None
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

CVE ID

No known CVE

GHSA ID

GHSA-9h6h-9g78-86f7

Source code

Credits

Checking history
See something to contribute? Suggest improvements for this vulnerability.