Skip to content
This repository was archived by the owner on Sep 23, 2023. It is now read-only.

Allow site config to be overridden by JSON #60

Closed
wants to merge 1 commit into from
Closed

Conversation

edg2s
Copy link
Collaborator

@edg2s edg2s commented May 9, 2020

Fixes #19

@edg2s edg2s requested a review from MatmaRex May 9, 2020 16:44
@MatmaRex
Copy link
Owner

I'm 99% sure this allows you to execute arbitrary PHP, just win some extra steps.

There are various config variables that let you read from (e.g. $wgExtensionMessagesFiles) or write to ($wgDebugLogFile) arbitrary files. Or maybe just add "eval" to $wgHooks for some hook that handles user input. I haven't figured out how exactly to exploit it, but it almost certainly can be done.

I think we should figure out a different way of whitelisting (#51 (comment)) or something.

@edg2s
Copy link
Collaborator Author

edg2s commented May 11, 2020

I'm 99% sure this allows you to execute arbitrary PHP, just win some extra steps.

As a V+1 user I can create a patch that does the same thing, so surely this is no less secure?

@MatmaRex
Copy link
Owner

Yes but we won't demo your patch unless it has V+2.

@edg2s
Copy link
Collaborator Author

edg2s commented May 11, 2020

I mean V+2 - you can write a pretty malicious patch and still get V+2 as long as you are trusted. If you aren't trusted you can't create a patch demo anyway.

@DemianX0
Copy link

  1. Am I correct to assume as a non-trustedcontributor one can still create a demo from somebody's V+2 patch with arbitrary config.json, that could be malicious?

  2. What's the abuse potential? I guess dumping these wikis, gaining access to passwords preferably not used anywhere.

@edg2s
Copy link
Collaborator Author

edg2s commented Jun 1, 2020

I think we should figure out a different way of whitelisting (#51 (comment)) or something.

The problem with the email whitelist is that OAuth doesn't give us the user email, so we would need to create a separate SUL-based account whitelist.

@edg2s edg2s force-pushed the json-config branch 2 times, most recently from dbe9d3e to 9282fd7 Compare August 7, 2020 14:49
@edg2s
Copy link
Collaborator Author

edg2s commented Sep 17, 2020

See #112

@edg2s edg2s closed this Sep 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Provide a way to override configs
3 participants