Page MenuHomePhabricator

Security review for GPGMail
Closed, ResolvedPublic

Description

For overview see the task description of T12453.

Still going through normal review, so this just an early notice (but in case you do want to comment, the patches are https://gerrit.wikimedia.org/r/#/c/242791/ and https://gerrit.wikimedia.org/r/#/c/242000/). Part of it was published as a standalone library at https://github.com/tgr/php-gpglib, not sure what's the review process for those - done as CR of the patch for mediawiki/vendor?

Event Timeline

Tgr raised the priority of this task from to Needs Triage.
Tgr updated the task description. (Show Details)
Tgr subscribed.
Nemo_bis triaged this task as Medium priority.Nov 24 2015, 9:22 AM

General Observations

  • Positive
    • Extension seeks to conceal the fact that a user is encrypting their messages
    • PHP built-ins escapeshellcmd() and escapeshellarg() are used to mitigate command injection
  • Negative
    • Extension does not implement message signing

Issues

gpglib implements signing, however the GPGMail extension does provide user interface elements exposing this functionality. This limits users' ability to authenticate that messages have originated from WMF servers.

Files

mediawiki-extensions-GPGMail/GPGMail.php

OK

mediawiki-extensions-GPGMail/GPGMailHooks.php

LOW
- line 149, validateKey will always return true

php-gpglib/src/GpgLib.php

OK

php-gpglib/src/GpgLibException.php

OK

php-gpglib/src/GpgLibFactory.php

OK

php-gpglib/src/PgpMime.php

OK

php-gpglib/src/ShellGpgLib.php

OK

php-gpglib/src/ShellGpgLibFactory.php

OK

php-gpglib/src/TempDir.php

OK

php-gpglib/src/TempDirFactory.php

OK
csteipp subscribed.

I don't think the message signing is a blocker, if we wanted to deploy this. So I think we can call the security review done.