FOSSBilling: Unauthenticated attacker can probe existence of arbitrary files via guest/system/template_exists
What fixes it
No source in this snapshot names a fixed version. The vendor advisories under References are the place to check.
Description
FOSSBilling is an open source billing and client-management platform. From 0.1.0 until 0.8.7, the unauthenticated api/guest/system/template_exists endpoint permits path traversal because templateExists uses Path::join on the attacker-controlled file parameter without rejecting .. sequences or verifying that the resolved path remains inside the active theme directory. The trigger is an unauthenticated request to guest/system/template_exists containing traversal sequences in the file parameter. An attacker can submit traversal sequences in the file parameter and observe the returned boolean to determine whether arbitrary files or directories exist on the server. The oracle does not disclose file contents. This issue is fixed in version 0.8.7.
Text from CVE List
Affected versions 1
- FOSSBillingaffected: >= 0.1.0, < 0.8.7CVE List
References 4
- github.com/FOSSBilling/FOSSBilling/commit/e6ca7731c6bce406aba11900a4450e89c4ebdb01Fixvia CVE List
- github.com/FOSSBilling/FOSSBilling/releases/tag/0.8.7Fixvia CVE List
- github.com/FOSSBilling/FOSSBilling/security/advisories/GHSA-fm3x-cx5r-wwgpAdvisoryvia CVE List
- github.com/FOSSBilling/FOSSBilling/pull/4221Referencevia CVE List