Page MenuHomePhabricator

Extension:TemplateSandbox does not respect $wgNonincludableNamespaces for pages under the sandbox prefix
Closed, ResolvedPublicSecurity

Description

For example, if the namespace Foo is protected by $wgNonincludableNamespaces, people can still bypass the transclusion restriction to access Foo:Bar/Test by using the Foo:Bar prefix and previewing the wikitext {{:Test}}.

Event Timeline

@Leo768 can you still reproduce this issue? I think I fixed it in core in T299359 / https://gerrit.wikimedia.org/r/c/mediawiki/core/+/1306214, and I cannot reproduce this bug locally anymore, unless I undo the core fix.

在T407977#12117420中,@SomeRandomDeveloper写道:

@Leo768 can you still reproduce this issue? I think I fixed it in core in T299359 / https://gerrit.wikimedia.org/r/c/mediawiki/core/+/1306214, and I cannot reproduce this bug locally anymore, unless I undo the core fix.

I have confirmed with Leo768 that on my site (MediaWiki 1.46.0) this is actually not reproducible now.

Happy to make this bug public if there's nothing left to be done here.

It's really easy to realise T407974 when investigating this bug, so I'd prefer not to make this public until T407974 is fixed as well.

Ok, we can keep this task private for now then.

T407974 is deployed at this time.

SomeRandomDeveloper claimed this task.

Closing as T407974 is fixed now

Rscout changed the visibility from "Custom Policy" to "Public (No Login Required)".Aug 17 2026, 4:10 PM
sbassett changed the edit policy from "Custom Policy" to "All Users".Aug 17 2026, 4:10 PM