Please do a security review of the GLAM Wiki Toolkit.
Version: unspecified
Severity: normal
Please do a security review of the GLAM Wiki Toolkit.
Version: unspecified
Severity: normal
| Status | Subtype | Assigned | Task | ||
|---|---|---|---|---|---|
| Resolved | None | T58181 Review and deploy GWToolset | |||
| Resolved | None | T58182 Deploy GWToolset to Beta Cluster | |||
| Resolved | • csteipp | T58178 Security review of GLAM Wiki Toolkit |
on friday, 2013-11-01 we agreed that the tentative review date will be monday, 2013-11-11 depending on the mvp status, architecture review and chris’ schedule.
Correct, I'm targeting 11/11 as a start date for the review, which I should be able finish sometime that week. If you can have everything merged by then, that would help.
Hi Dan,
I'm working through the review. There are a couple of things I'd like to see fixed at their root, so I don't have to document every occurrence, so this is just a partial list for now. Let me know if you have questions.
includes/Php/Filter.php
includes/Handlers/Forms/FormHandler.php
Line 109: getForm is called without validating the class beyond existence. Please check this is a form class you're expecting (have them all inherit and check instanceof?)
includes/Handlers/Forms/MetadataDetectHandler.php
includes/functions/functions.php
includes/Specials/SpecialGWToolset.php
includes/Handlers/Xml/XmlHandler.php
• filter: https://gerrit.wikimedia.org/r/#/c/97051/
• functions: https://gerrit.wikimedia.org/r/#/c/97062/
• form-handler: https://gerrit.wikimedia.org/r/#/c/97369/
• max-file-size: https://gerrit.wikimedia.org/r/#/c/97465/
• external-entity: https://gerrit.wikimedia.org/r/#/c/97521/
includes/Helpers/FileChecks.php
includes/Jobs/UploadMetadataJob.php
includes/Php/File.php
includes/Handlers/UploadHandler.php
includes/Handlers/Xml/XmlDetectHandler.php
includes/Handlers/Forms/MetadataMappingHandler.php
includes/Forms/PreviewForm.php
includes/Adapters/Php/MediawikiTemplatePhpAdapter.php
includes/Adapters/Php/MappingPhpAdapter.php
table-create-gwtoolset-mediawiki-templates.sql
includes/Handlers/Forms/MetadataMappingHandler.php
ext.gwtoolset.js
• js-error-output: https://gerrit.wikimedia.org/r/#/c/98686/
• mime-type: https://gerrit.wikimedia.org/r/#/c/98725/
• table-create: https://gerrit.wikimedia.org/r/#/c/98735/
• sanitizer-escape-id: https://gerrit.wikimedia.org/r/#/c/98742/
• derivative-request: https://gerrit.wikimedia.org/r/#/c/98807/
• augmentAllowedExtensions: https://gerrit.wikimedia.org/r/#/c/98812/
• PreviewForm: https://gerrit.wikimedia.org/r/#/c/98825/
• FOR_PUBLIC: https://gerrit.wikimedia.org/r/#/c/98835/
• original-post: https://gerrit.wikimedia.org/r/#/c/98846/
no access control on who can access files in the backend.
as far as i can tell there is no way to restrict MediaWiki User access similar to the way UploadStash does. the only “security” i’ve seen is via the FileBackend->prepare() and FileBackend->secure() methods. the code is already implementing the prepare() method.
(In reply to comment #11)
I think Dan's addressed everything. LGTM.
Is this bug resolved/fixed then? :-)
(In reply to comment #12)
(In reply to comment #11)
I think Dan's addressed everything. LGTM.
Is this bug resolved/fixed then? :-)
Yep :)