code16/sharp: Server-side request forgery through an unanchored autocomplete endpoint check
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| composercode16/sharp |
< 10.0.0-beta.4→ 10.0.0-beta.4 |
10.0.0-beta.4 |
| Packagistcode16/sharp |
≥ 10.0.0-beta.1, < 10.0.0-beta.4→ 10.0.0-beta.4 |
10.0.0-beta.4 |
| code16sharp | — | Not listed |
Original description The description as published by the source.
code16 Sharp is a Laravel-based framework for building content-management and administrative interfaces. Prior to 9.23.0, an authenticated attacker can call the autocomplete API with a request endpoint that contains the configured remote endpoint only as a substring. The endpoint validation uses an unanchored regular expression, so a different internal route can satisfy the check and be invoked server-side through the autocomplete request. The vulnerable path uses SharpFormAutocompleteRemoteField::setRemoteEndpoint(); applications using SharpFormAutocompleteRemoteField::setRemoteCallback() are not affected by this endpoint-selection flaw. This issue is fixed in version 9.23.0.
Source: GitHub Security Advisories (Global) NVD GitHub Advisory
References
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- patch github.com
- patch github.com
- web github.com
- web github.com
- web github.com