Skip to content

Closed - #88

Closed
Hackwar wants to merge 2 commits into
joomla-framework:4.x-devfrom
Hackwar:4.x-restrict-schemes
Closed

Hackwar wants to merge 2 commits into
joomla-framework:4.x-devfrom
Hackwar:4.x-restrict-schemes

Conversation

@Hackwar

@Hackwar Hackwar commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

No description provided.

Hackwar and others added 2 commits November 13, 2026 00:10
The URI was handed to cURL and fopen() unchecked, so Http::get() opened
file:// URLs with both transports, cURL could be used with gopher://,
dict:// and similar protocols, and the stream transport with every
registered wrapper (php://, phar://, data://). Where a URL is influenced by
an attacker this allows reading local files and server-side request
forgery.

Reject any other scheme in Http, configurable through the new
allowedSchemes option, and restrict cURL's request and redirect protocols
to the same list.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Newer libcurl versions report 'Protocol "file" not supported or disabled in libcurl'.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Hackwar Hackwar closed this Nov 13, 2026
@Hackwar Hackwar changed the title [4.x] Accept only http and https URLs by default Closed Nov 13, 2026
@Hackwar
Hackwar deleted the 4.x-restrict-schemes branch November 13, 2026 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant