As far as I can tell, we're missing these:
- Queries
- All Stories
- Search
- Advanced Search
- Transactions
- Transaction Logs
Advanced Search
Jun 4 2015
Jun 3 2015
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 2 2015
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.
This change is potentially going to make mailing lists useless for nonpublic installs. Our immediate options are:
Not actually meaningfully stateful:
These Editors are the only ones with state properties:
Jun 1 2015
May 23 2015
I've converted the ELBs to use the ECDHE policy.
May 22 2015
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 20 2015
- 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 1 2015
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.
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.
Apr 28 2015
escalate from that to any other account
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.
This escalation requires control of DNS/networking or something to point phabricator at the new LDAP server, correct?
Apr 13 2015
See-Also: https://phabricator.wikimedia.org/T493
Mar 26 2015
The redirects we handle manually are always only GET so we shouldn't run into problems with that.
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
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.
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?
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.
Oh, and the attacks mentioned above remain live:
After D12168, D12169 and D12170, I feel like we've reasonably mitigated this attack. The remaining vectors are:
D12169 mostly mitigates DNS rebinding:
Mar 25 2015
We may also be vulnerable to the parse_url() vs cURL parsing issues that SafeCurl encountered, however.
We may also be vulnerable to the parse_url() vs cURL parsing issues that SafeCurl encountered, however.
It doesn't, it hits the same dilemma and elects to disable SSL verification. See:
This library may help: https://github.com/fin1te/safecurl
D12151 protects against redirection attacks for in-process requests.
Mar 23 2015
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.
although I think this may only stop the data retrieval version of the attack
Remaining work here is:
Mar 7 2015
Ah right.
I don't believe this is unexpected. The URI is marked as "Optional".
Its unexpected that these show as links I think? FacebookPOC, for example, is not a link.
What is unexpected here?
Feb 28 2015
Feb 27 2015
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 20 2015
Feb 19 2015
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 =)
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?
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 18 2015
Feb 17 2015
Feb 13 2015
Notably, restarting daemons doesn't need a check, and none of the admin/management options have security implications.
For now, I think this is basically just:
Feb 7 2015
Feb 4 2015
Feb 1 2015
The remaining work is:
Jan 28 2015
This host is patched now.
Jan 27 2015
This analysis is much more detailed:
Jan 20 2015
- 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 15 2015
Jan 14 2015
Jan 13 2015
Jan 12 2015
I figure I'll toss this on my queue, though I want to do other things first.
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: