Page MenuHomePhabricator
Feed Advanced Search

Jun 4 2015

epriestley closed T8387: Convert Mailing Lists into special users, similar to bot users, a subtask of T6367: Send email with recipient's language and access levels, not sender's, as Resolved.
Jun 4 2015, 1:43 AM · Wikimedia, Security, Localization, Mail

Jun 3 2015

epriestley added a revision to T6367: Send email with recipient's language and access levels, not sender's: Restricted Differential Revision.
Jun 3 2015, 9:24 PM · Wikimedia, Security, Localization, Mail
epriestley added a comment to T6367: Send email with recipient's language and access levels, not sender's.

As far as I can tell, we're missing these:

Jun 3 2015, 9:23 PM · Wikimedia, Security, Localization, Mail
epriestley added a comment to T6367: Send email with recipient's language and access levels, not sender's.

One thing I caught is that things which use Transactions now need to implement ApplicationTransactionInterface. At least one object (PhameBlog) does not. I'll check the rest of the codebase and see if there are any more.

Jun 3 2015, 9:13 PM · Wikimedia, Security, Localization, Mail
epriestley added a revision to T6367: Send email with recipient's language and access levels, not sender's: Restricted Differential Revision.
Jun 3 2015, 9:03 PM · Wikimedia, Security, Localization, Mail
epriestley added a revision to T6367: Send email with recipient's language and access levels, not sender's: Restricted Differential Revision.
Jun 3 2015, 2:16 PM · Wikimedia, Security, Localization, Mail
epriestley added a revision to T6367: Send email with recipient's language and access levels, not sender's: Restricted Differential Revision.
Jun 3 2015, 12:02 AM · Wikimedia, Security, Localization, Mail

Jun 2 2015

epriestley updated subscribers of T6367: Send email with recipient's language and access levels, not sender's.
Jun 2 2015, 8:57 PM · Wikimedia, Security, Localization, Mail
epriestley added a comment to T6367: Send email with recipient's language and access levels, not sender's.

I suppose using a logged-out viewer might be fine, since we'll use the omnipotent viewer if metamta.one-mail-per-recipient is not set, and essentially all installs that use mailing lists probably have this setting configured off.

Jun 2 2015, 2:42 PM · Wikimedia, Security, Localization, Mail
epriestley added a comment to T6367: Send email with recipient's language and access levels, not sender's.

This change is potentially going to make mailing lists useless for nonpublic installs. Our immediate options are:

Jun 2 2015, 2:39 PM · Wikimedia, Security, Localization, Mail
epriestley added a revision to T6367: Send email with recipient's language and access levels, not sender's: Restricted Differential Revision.
Jun 2 2015, 2:11 PM · Wikimedia, Security, Localization, Mail
epriestley added a comment to T6367: Send email with recipient's language and access levels, not sender's.

Not actually meaningfully stateful:

Jun 2 2015, 12:54 PM · Wikimedia, Security, Localization, Mail
epriestley added a comment to T6367: Send email with recipient's language and access levels, not sender's.

These Editors are the only ones with state properties:

Jun 2 2015, 12:19 PM · Wikimedia, Security, Localization, Mail
epriestley added a revision to T6367: Send email with recipient's language and access levels, not sender's: Restricted Differential Revision.
Jun 2 2015, 12:57 AM · Wikimedia, Security, Localization, Mail
epriestley claimed T6367: Send email with recipient's language and access levels, not sender's.
Jun 2 2015, 12:43 AM · Wikimedia, Security, Localization, Mail

Jun 1 2015

epriestley added a parent task for T6367: Send email with recipient's language and access levels, not sender's: T8377: Build the core "Spaces" Application.
Jun 1 2015, 11:04 PM · Wikimedia, Security, Localization, Mail

May 23 2015

epriestley closed T8275: Assess impact of "Logjam" attack on Diffie-Helman / TLS as Resolved.

I've converted the ELBs to use the ECDHE policy.

May 23 2015, 6:09 PM · Security

May 22 2015

epriestley added a comment to T8275: Assess impact of "Logjam" attack on Diffie-Helman / TLS.

AWS has released a new LB policy (it looks like my understanding about the relationship between ciphersuites and DH groups above wasn't quite accurate):

May 22 2015, 4:53 PM · Security

May 20 2015

chad merged task T8281: Email notification not respecting project restrictions into T6367: Send email with recipient's language and access levels, not sender's.
May 20 2015, 8:52 PM · Security
chad updated subscribers of T6367: Send email with recipient's language and access levels, not sender's.
May 20 2015, 8:52 PM · Wikimedia, Security, Localization, Mail
NorthIsUp created T8281: Email notification not respecting project restrictions.
May 20 2015, 8:02 PM · Security
epriestley updated subscribers of T6367: Send email with recipient's language and access levels, not sender's.
May 20 2015, 6:25 PM · Wikimedia, Security, Localization, Mail
epriestley added a comment to T8275: Assess impact of "Logjam" attack on Diffie-Helman / TLS.
  • secure.phabricator.com does not support export-grade (weak) ciphers, and is safe from the brunt of this attack.
  • nlb*.phacility.com is terminated by the notification server, which does not support export-grade (weak) ciphers, and is safe from the brunt of this attack.
  • *.phacility.com is terminated by ELBs, which do not support weak ciphers as configured, but do use a common 1024-bit DH group. This means connections could theoretically be compromised by state-level actors. I think we can't address this directly (we can configure cipher suites, but not the DH group). I haven't found AWS issuing any guidance on it yet. I would expect them to remedy the issue or provide guidance on it in the next few days; if not, we can evaluate running software loadbalancers instead of ELBs (this is a fair amount of work, but we already run software LBs on the vault tier and terminate our own SSL on the nlb tier).
May 20 2015, 3:02 PM · Security
epriestley created T8275: Assess impact of "Logjam" attack on Diffie-Helman / TLS.
May 20 2015, 2:44 PM · Security

May 1 2015

eadler added a comment to T8014: Add configuration option to ignore invalid TLS certificates for LDAP start_tls.

I would guess this is not an uncommon setup: many LDAP instances have self-signed certificates. Without this knob many standard LDAP setups would not work.

May 1 2015, 2:16 AM · Security, Auth, LDAP
chad closed T8014: Add configuration option to ignore invalid TLS certificates for LDAP start_tls as Wontfix.

We're not likely to add this into the upstream. Mostly, we're very allergic to adding configuration options (and plan to remove many this year). It could easily be maintained in a fork or local patch.

May 1 2015, 2:14 AM · Security, Auth, LDAP
eadler created T8014: Add configuration option to ignore invalid TLS certificates for LDAP start_tls.
May 1 2015, 2:11 AM · Security, Auth, LDAP

Apr 28 2015

epriestley added a comment to T4131: Store LDAP domain as credential source for LDAP external accounts.

escalate from that to any other account

Apr 28 2015, 2:44 PM · Security, Auth
epriestley added a comment to T4131: Store LDAP domain as credential source for LDAP external accounts.

No -- you point Phabricator at the new LDAP server by using a compromised administrative account and going to Auth → LDAP and changing ldap.mycompany.com to ldap.evil.com.

Apr 28 2015, 2:23 PM · Security, Auth
cburroughs added a comment to T4131: Store LDAP domain as credential source for LDAP external accounts.

This escalation requires control of DNS/networking or something to point phabricator at the new LDAP server, correct?

Apr 28 2015, 2:01 PM · Security, Auth

Apr 13 2015

devurandom added a comment to T6367: Send email with recipient's language and access levels, not sender's.

See-Also: https://phabricator.wikimedia.org/T493

Apr 13 2015, 4:17 PM · Wikimedia, Security, Localization, Mail

Mar 26 2015

epriestley added a comment to T6755: Allow more granular configuration of `security.allow-outbound-http`.

The redirects we handle manually are always only GET so we shouldn't run into problems with that.

Mar 26 2015, 8:21 PM · Security
Agarri_FR added a comment to T6755: Allow more granular configuration of `security.allow-outbound-http`.

I see a minor problem (non security related) with the handling of HTTP redirects. Depending on the exact HTTP code (ex: 303 vs 307), a POST request may need to be converted to GET when redirected: https://tools.ietf.org/html/rfc7231#section-6.4.7

Mar 26 2015, 8:18 PM · Security
epriestley added a comment to T6755: Allow more granular configuration of `security.allow-outbound-http`.

Since D12151, we don't follow "Location:" headers for these requests. If the response comes back with a 3XX code, we look for a "Location:" header, explicitly verify that the URI it specifies is OK (permitted by the outbound rules), and then repeat the process with the new URI. We abort after following too many redirects or encountering a loop.

Mar 26 2015, 6:49 PM · Security
Agarri_FR added a comment to T6755: Allow more granular configuration of `security.allow-outbound-http`.

I didn't went through a thorough analysis of the proposed patch, but the global analysis and some specific portions (like DNS rebinding) seem fine. How did you deal with HTTP redirects?

Mar 26 2015, 6:43 PM · Security
epriestley closed T6755: Allow more granular configuration of `security.allow-outbound-http` as Resolved.

I'm going to consider this resolved and close out the associated HackerOne issue, but let me know if there's anything I missed or you think any part of my assessment is off.

Mar 26 2015, 6:18 PM · Security
epriestley added a comment to T6755: Allow more granular configuration of `security.allow-outbound-http`.

Oh, and the attacks mentioned above remain live:

Mar 26 2015, 5:21 PM · Security
epriestley created T7667: Provide `auth lock` and `auth unlock` to restrict authentication provider management to the CLI.
Mar 26 2015, 5:13 PM · Auth, Security
epriestley added a comment to T6755: Allow more granular configuration of `security.allow-outbound-http`.

After D12168, D12169 and D12170, I feel like we've reasonably mitigated this attack. The remaining vectors are:

Mar 26 2015, 5:08 PM · Security
epriestley added a revision to T6755: Allow more granular configuration of `security.allow-outbound-http`: Restricted Differential Revision.
Mar 26 2015, 4:50 PM · Security
epriestley added a comment to T6755: Allow more granular configuration of `security.allow-outbound-http`.

D12169 mostly mitigates DNS rebinding:

Mar 26 2015, 2:14 PM · Security
epriestley added a revision to T6755: Allow more granular configuration of `security.allow-outbound-http`: Restricted Differential Revision.
Mar 26 2015, 2:05 PM · Security
epriestley added a revision to T6755: Allow more granular configuration of `security.allow-outbound-http`: Restricted Differential Revision.
Mar 26 2015, 1:55 PM · Security

Mar 25 2015

epriestley added a comment to T6755: Allow more granular configuration of `security.allow-outbound-http`.

We may also be vulnerable to the parse_url() vs cURL parsing issues that SafeCurl encountered, however.

Mar 25 2015, 11:42 AM · Security
epriestley added a revision to T6755: Allow more granular configuration of `security.allow-outbound-http`: Restricted Differential Revision.
Mar 25 2015, 11:41 AM · Security
epriestley added a comment to T6755: Allow more granular configuration of `security.allow-outbound-http`.

We may also be vulnerable to the parse_url() vs cURL parsing issues that SafeCurl encountered, however.

Mar 25 2015, 11:19 AM · Security
epriestley added a revision to T6755: Allow more granular configuration of `security.allow-outbound-http`: Restricted Differential Revision.
Mar 25 2015, 11:13 AM · Security
epriestley added a comment to T6755: Allow more granular configuration of `security.allow-outbound-http`.

It doesn't, it hits the same dilemma and elects to disable SSL verification. See:

Mar 25 2015, 10:41 AM · Security
Agarri_FR added a comment to T6755: Allow more granular configuration of `security.allow-outbound-http`.

This library may help: https://github.com/fin1te/safecurl

Mar 25 2015, 10:08 AM · Security
epriestley added a comment to T6755: Allow more granular configuration of `security.allow-outbound-http`.

D12151 protects against redirection attacks for in-process requests.

Mar 25 2015, 12:59 AM · Security
epriestley added a revision to T6755: Allow more granular configuration of `security.allow-outbound-http`: Restricted Differential Revision.
Mar 25 2015, 12:49 AM · Security
epriestley added a revision to T6755: Allow more granular configuration of `security.allow-outbound-http`: Restricted Differential Revision.
Mar 25 2015, 12:13 AM · Security

Mar 23 2015

Agarri_FR added a comment to T6755: Allow more granular configuration of `security.allow-outbound-http`.

The DNS result will be cached... depending on its TTL. Setting the TTL to 0 is enough to get a fresh request for each resolution.

Mar 23 2015, 6:43 PM · Security
epriestley added a comment to T6755: Allow more granular configuration of `security.allow-outbound-http`.

although I think this may only stop the data retrieval version of the attack

Mar 23 2015, 6:04 PM · Security
epriestley updated subscribers of T6755: Allow more granular configuration of `security.allow-outbound-http`.

Remaining work here is:

Mar 23 2015, 6:02 PM · Security
epriestley added a revision to T6755: Allow more granular configuration of `security.allow-outbound-http`: Restricted Differential Revision.
Mar 23 2015, 3:54 PM · Security

Mar 7 2015

joshuaspence closed T7491: Mailing lists show external links as Invalid.

Ah right.

Mar 7 2015, 2:44 AM · Mailing Lists, Security
chad added a comment to T7491: Mailing lists show external links.

I don't believe this is unexpected. The URI is marked as "Optional".

Mar 7 2015, 2:23 AM · Mailing Lists, Security
joshuaspence added a comment to T7491: Mailing lists show external links.

Its unexpected that these show as links I think? FacebookPOC, for example, is not a link.

Mar 7 2015, 2:18 AM · Mailing Lists, Security
chad added a comment to T7491: Mailing lists show external links.

What is unexpected here?

Mar 7 2015, 2:17 AM · Mailing Lists, Security
joshuaspence created T7491: Mailing lists show external links.
Mar 7 2015, 2:07 AM · Mailing Lists, Security

Feb 28 2015

epriestley added a parent task for T6367: Send email with recipient's language and access levels, not sender's: T5791: Write Herald rules for outbound mail.
Feb 28 2015, 9:48 PM · Wikimedia, Security, Localization, Mail

Feb 27 2015

epriestley removed a parent task for T6706: Allow SSH keys (and other Conduit tokens) to be restricted to specific IP ranges: T7399: Fully separate live credentials from development repositories.
Feb 27 2015, 3:45 PM · Phacility, Security
epriestley added a parent task for T6706: Allow SSH keys (and other Conduit tokens) to be restricted to specific IP ranges: T7399: Fully separate live credentials from development repositories.
Feb 27 2015, 3:44 PM · Phacility, Security
epriestley moved T6741: Lock Almanac networks, and allow Almanac domain namespaces to be locked from Do After Launch to Do Eventually on the Phacility board.
Feb 27 2015, 12:54 AM · Almanac (v2), Security, Phacility
epriestley lowered the priority of T6741: Lock Almanac networks, and allow Almanac domain namespaces to be locked from Normal to Low.

The urgency of fixing this is dramatically reduced by Almanac being a prototype and installs not having access to prototypes so this can be punted to the horizon.

Feb 27 2015, 12:53 AM · Almanac (v2), Security, Phacility

Feb 20 2015

epriestley moved T4340: Implement Content-Security-Policy and Strict-Transport-Security headers from v1 Open Beta to Do After Launch on the Phacility board.
Feb 20 2015, 8:38 PM · Phacility, Security

Feb 19 2015

jesseendahl added a comment to T5590: Change diffusion.allow-http-auth into an application policy and improve security features.

My mistake, I thought VCS password was referring to setting a password for the "vcs user," and then sharing that password with anyone who wanted to clone repos over HTTPS. I'm glad that's not how it works =)

Feb 19 2015, 8:53 PM · Diffusion, Security
epriestley added a comment to T5590: Change diffusion.allow-http-auth into an application policy and improve security features.

Maybe I'm misunderstanding, but per-user auth is already supported via HTTPS (Settings > VCS Password). Each user gets a username/password. Or do you mean something else?

Feb 19 2015, 8:03 PM · Diffusion, Security
jesseendahl added a comment to T5590: Change diffusion.allow-http-auth into an application policy and improve security features.

In addition to the things mentioned above, it'd be great if some form of per-user auth was supported via HTTPS. Perhaps this could be done by utilizing the existing user specific arc certificate, or generating a similar secondary certificate for the sole purpose of cloning repos.

Feb 19 2015, 8:02 PM · Diffusion, Security
epriestley added a revision to T4340: Implement Content-Security-Policy and Strict-Transport-Security headers: Restricted Differential Revision.
Feb 19 2015, 2:25 PM · Phacility, Security

Feb 18 2015

epriestley claimed T4340: Implement Content-Security-Policy and Strict-Transport-Security headers.
Feb 18 2015, 10:32 PM · Phacility, Security
btrahan closed T7202: Make sure administrative options have approriate two-factor auth checks as Resolved by committing Restricted Diffusion Commit.
Feb 18 2015, 7:43 PM · Security, Phacility
btrahan added a revision to T7202: Make sure administrative options have approriate two-factor auth checks: Restricted Differential Revision.
Feb 18 2015, 7:37 PM · Security, Phacility
btrahan added a revision to T7202: Make sure administrative options have approriate two-factor auth checks: Restricted Differential Revision.
Feb 18 2015, 7:35 PM · Security, Phacility

Feb 17 2015

btrahan triaged T7202: Make sure administrative options have approriate two-factor auth checks as High priority.
Feb 17 2015, 10:51 PM · Security, Phacility

Feb 13 2015

epriestley added a comment to T7202: Make sure administrative options have approriate two-factor auth checks.

Notably, restarting daemons doesn't need a check, and none of the admin/management options have security implications.

Feb 13 2015, 7:51 PM · Security, Phacility
epriestley assigned T7202: Make sure administrative options have approriate two-factor auth checks to btrahan.

For now, I think this is basically just:

Feb 13 2015, 7:50 PM · Security, Phacility

Feb 7 2015

epriestley created T7202: Make sure administrative options have approriate two-factor auth checks.
Feb 7 2015, 12:13 AM · Security, Phacility

Feb 4 2015

epriestley moved T4340: Implement Content-Security-Policy and Strict-Transport-Security headers from Backlog to v1 Open Beta on the Phacility board.
Feb 4 2015, 7:26 PM · Phacility, Security
chad added a parent task for T6367: Send email with recipient's language and access levels, not sender's: T7047: Add user preference for diffs in emails.
Feb 4 2015, 4:42 PM · Wikimedia, Security, Localization, Mail
epriestley moved T4340: Implement Content-Security-Policy and Strict-Transport-Security headers from Do After Launch to Backlog on the Phacility board.
Feb 4 2015, 3:55 PM · Phacility, Security

Feb 1 2015

epriestley renamed T6741: Lock Almanac networks, and allow Almanac domain namespaces to be locked from Allow Almanac services to be locked to Lock Almanac networks, and allow Almanac domain namespaces to be locked.
Feb 1 2015, 1:04 AM · Almanac (v2), Security, Phacility
epriestley moved T6741: Lock Almanac networks, and allow Almanac domain namespaces to be locked from v0 Closed Beta to Do After Launch on the Phacility board.
Feb 1 2015, 1:03 AM · Almanac (v2), Security, Phacility
epriestley added a comment to T6741: Lock Almanac networks, and allow Almanac domain namespaces to be locked.

The remaining work is:

Feb 1 2015, 1:03 AM · Almanac (v2), Security, Phacility

Jan 28 2015

epriestley closed T7057: gethostbyname() allows some set of horrible things, up to arbitrary remote execution as Resolved.

This host is patched now.

Jan 28 2015, 6:51 PM · Security

Jan 27 2015

epriestley added a comment to T7057: gethostbyname() allows some set of horrible things, up to arbitrary remote execution.

This analysis is much more detailed:

Jan 27 2015, 5:09 PM · Security
epriestley created T7057: gethostbyname() allows some set of horrible things, up to arbitrary remote execution.
Jan 27 2015, 4:28 PM · Security

Jan 20 2015

epriestley moved T6960: Support %P in qsprintf() from Do After Launch to Do Eventually on the Phacility board.
Jan 20 2015, 10:03 PM · Security, Infrastructure
epriestley added a comment to T6994: Write a general "Security guidelines" document.
  • Via HackerOne, git-remote-https may leak HTTP basic auth credentials to other users on the machine by making them visible in ps auxwww or similar. We consider these users trusted and this is outside the range of what we protect an install from.
Jan 20 2015, 7:02 PM · Security
epriestley created T6994: Write a general "Security guidelines" document.
Jan 20 2015, 7:00 PM · Security

Jan 15 2015

btrahan closed T6949: Hide OAuth server secrets behind "Show Secret" to defuse screenshot/over-the-shoulder leaks as Resolved by committing Restricted Diffusion Commit.
Jan 15 2015, 1:27 AM · Phacility, Security, OAuthServer

Jan 14 2015

btrahan added a revision to T6949: Hide OAuth server secrets behind "Show Secret" to defuse screenshot/over-the-shoulder leaks: Restricted Differential Revision.
Jan 14 2015, 10:51 PM · Phacility, Security, OAuthServer

Jan 13 2015

epriestley moved T6960: Support %P in qsprintf() from Backlog to Do After Launch on the Phacility board.
Jan 13 2015, 3:31 PM · Security, Infrastructure
epriestley created T6960: Support %P in qsprintf().
Jan 13 2015, 3:28 PM · Security, Infrastructure

Jan 12 2015

btrahan claimed T6949: Hide OAuth server secrets behind "Show Secret" to defuse screenshot/over-the-shoulder leaks.

I figure I'll toss this on my queue, though I want to do other things first.

Jan 12 2015, 10:45 PM · Phacility, Security, OAuthServer
epriestley moved T6949: Hide OAuth server secrets behind "Show Secret" to defuse screenshot/over-the-shoulder leaks from Backlog to v0 Closed Beta on the Phacility board.
Jan 12 2015, 9:39 PM · Phacility, Security, OAuthServer
epriestley added a project to T6949: Hide OAuth server secrets behind "Show Secret" to defuse screenshot/over-the-shoulder leaks: Phacility.

This is actually a blocker (for launch, not blocking anything in the short term) because the view policy is always "All Users", and you only need View to see the secret. We should modernize the application:

Jan 12 2015, 9:39 PM · Phacility, Security, OAuthServer
epriestley created T6949: Hide OAuth server secrets behind "Show Secret" to defuse screenshot/over-the-shoulder leaks.
Jan 12 2015, 9:33 PM · Phacility, Security, OAuthServer

Jan 11 2015

fabe added a revision to T6367: Send email with recipient's language and access levels, not sender's: Restricted Differential Revision.
Jan 11 2015, 5:01 PM · Wikimedia, Security, Localization, Mail