TastyIgniter: Unrestricted outbound URL fetch in Media::addFromUrl() is a latent SSRF gadget
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| tastyigniterTastyIgniter | — | Not listed |
| Packagisttastyigniter/core |
< 4.4.4→ 4.4.4 |
4.4.4 |
| composertastyigniter/core |
< 4.4.4→ 4.4.4 |
4.4.4 |
Original description The description as published by the source.
Summary
The framework-level media-attachment helper Media::addFromUrl() performs an outbound HTTP GET against a caller-supplied URL with no host/scheme validation — no protection against loopback, link-local/cloud-metadata, or private-network targets. No shipped feature in the current codebase currently calls this method, so there is no live attack path today, but any future first-party or marketplace-extension feature (e.g. "import image from URL") that naturally reaches for this existing public method would inherit an unprotected SSRF primitive.
Details
src/Flame/Database/Attach/Media.php (lines 157-175):
public function addFromUrl(string $url, $filename = null, ?string $tag = null): self
{
$response = Http::get($url);
...
}
A full grep of tastyigniter/core and all currently bundled first-party extensions found no caller of this method anywhere — it is currently unreachable/dead code.
PoC
Executed via php artisan tinker against a safe, owned local target (the application's own /robots.txt) to demonstrate the underlying mechanism fires without any validation:
Http::get($url) // called with a loopback URL
-> successful: true, status: 200, body returned unmodified
The call to Http::get() inside addFromUrl() executes unconditionally before any other logic runs; no host allowlist, scheme restriction, or private-IP block is present.
Impact
No impact today, since nothing in the current codebase calls this met…
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- package github.com
- web github.com
- web github.com
- web github.com
- web github.com
- web nvd.nist.gov
- web github.com