I think we should remove the CAN_JOIN. If you can see it, you can join it. I don't see any parallel in Slack and looks like there are mods that add it forceably by kicking you off a channel if you leave a message. lulz.
- Queries
- All Stories
- Search
- Advanced Search
- Transactions
- Transaction Logs
Advanced Search
Apr 13 2017
Apr 10 2017
T12531: Unable to upload file: failed to read 4583864320 bytes after offset 0 discusses one side effect of these changes, it should be fixed in HEAD of master and stable now.
I think this is, to at least some degree, a legitimate security problem. Consider:
Apr 6 2017
(That said, the hash cost may become very relevant when we eventually ship "Phabricator Valuable Golden Coin Money", our blockchain-based virtual currency.)
I get these rough per-hash costs locally (Macbook Pro), with a 64-byte key:
Piece of info (you guys might already be aware of it) which might be of interest when implementing this; SHA512 is often faster then SHA256 on x64. See for example: https://crypto.stackexchange.com/questions/26336/sha512-faster-than-sha256
Some guidance about "configure captchas if you're a public-facing, password-login install" would be good here too, but maybe we should just raise it as a setup issue if you have password auth enabled, and let users ignore it if they're VPN'd.
In the future, please report security issues via HackerOne: https://hackerone.com/phabricator -- notably, this allows us to award you a security bounty if you discover an issue.
Apr 5 2017
I'm maybe going to try to do this in the short term:
Thank you for explaining - I didn't mean to imply I thought it was a security concern, as it is very clear what giving someone Edit access means.
T4721 (which I also linked on the HackerOne report) discusses usability improvements to Passphrase, including better documentation and hinting about this use case and possibly the separation of the "Can Use Credential" and "Can View Secret" policies. These are reasonable usability concerns.
It sounds like the user is confused that having View access doesn't let them have access to decrypt/see the secret - only that they can use the secret within Phabricator. So in order to allow others to decrypt/see the secret he gives them Edit access which does give them the ability to change the secret.
Thanks for the response Evan.
You can review the HackerOne report, including my response, here:
Mar 26 2017
(This was incorrectly closed by the text "doesn't actually fix T8918" in rP08de131da525.)
Mar 20 2017
We don't plan to take any other upstream actions here, but let us know if anyone has further questions.
Mar 16 2017
(You could also pipe the list into bin/remove destroy --force, equivalently.)
You can re-run the migration explicitly with:
We ran the script provided above to get an audit of at-risk files. Afterwards we upgraded our instance and the upgrade succeeded however its attempts to delete the affected files failed. The failure is due to using a local file store which is accessible to our web service account but not the phabricator phd services account (T4752). After correcting the file permissions so both accounts have appropriate access, running upgrade again doesn't seem to remove the files.
It is likely that the vulnerable code predates significant portions of the Files and permissions systems, and was just overlooked as these other systems upgraded and gained more powerful policy and permissions capabilities.
The fix is now available on master (rP7626ec0c) and stable (rP6f879559). I've upgraded this install without incident. Per above, note that upgrading destroys evidence, so you should plan any audit or response actions you want to take before upgrading.
Mar 3 2017
Mar 2 2017
Closing this since there doesn't seem to be any thing left that's actionable for us.
Feb 24 2017
Broadly, there is nothing Phabricator could have done differently to anticipate or prevent this issue.
We could also provide some kind of bin/auth burn-everything-to-the-ground to automate these steps, but I worry that it would almost never be tested (I think it's very difficult to test comprehensively in an automated way) or run, and there's a good chance it might be forgotten about when authentication changes occur.
Ah, you're right. It looks like request data may also have leaked. I'll edit my earlier posts to reflect that. Briefly, the change is: passwords and VCS passwords are potentially at risk.
Has cloudflare explicitly said that only responses were leaked, and never
requests? I recall "POST data" being explicitly called out as showing up in
the leaks, but I can't remember if this was in an official write up or
media coverage.
To cycle passwords, you can do this:
Only our websocket host is behind CF proxies, so I invalidated all auth sessions by changing the security.hmac-key. I wanted to also invalidate all Conduit tokens just as a fire drill but couldn't found a method of doing this.
If you have configured your entire install behind Cloudflare (we do not encourage this in the documentation), you are at greater risk, as anything served by Phabricator could have been leaked. If you believe you are affected and would like help rotating sessions and invalidating credentials, let us know.
Although this problem is severe, the absolute size of the leak appears to be small (my task title is hyperbolic). From the Cloudflare disclosure:
Feb 14 2017
(Or we should just remove CAN_JOIN -- is there any actual use case for read-only rooms? If there is, shouldn't users still be able to join those rooms in order to follow them, just not send messages?)
A related issue is that CAN_EDIT does not imply CAN_JOIN, so users with CAN_EDIT but no CAN_JOIN can get a policy error while trying to join.
Feb 8 2017
Feb 1 2017
🤔
Jan 5 2017
Jan 1 2017
libcurl supports SMTP (see https://curl.haxx.se/libcurl/c/smtp-mail.html) and can be used instead, provided that the relevant functions are exposed to PHP. This avoids needing to shell out to an external executable.
Dec 28 2016
From a cursory read of CVE-2016-10045, it seems like PHP may be written in such a way that mail() can not be invoked safely. Silly PHP!
updated advisory; https://legalhackers.com/advisories/PHPMailer-Exploit-Remote-Code-Exec-CVE-2016-10045-Vuln-Patch-Bypass.html
I don't think this changes the plan you suggest, just linking for completeness.
Dec 26 2016
This appears to be the fix:
Dec 12 2016
This got done at some point, I believe, since we have an SPF record now.
Nov 10 2016
Aug 27 2016
Basically, if you want to see this implemented, please describe an attack scenario you're concerned about in detail.
This is technically easy for us to implement, I'd just like a real security justification for it. From the first link, the justification seems to be:
See https://github.com/tinfoil/devise-two-factor/issues/30 and https://github.com/mdp/rotp/issues/44 for some discussion about this issue (also discussed a bit on oss-security mailing list as http://www.openwall.com/lists/oss-security/2015/06/20/4).
Aug 25 2016
Aug 24 2016
Aug 22 2016
In Settings → (Personal Account Settings) → Email Addresses, you can take several actions with email addresses associated with your account, including adding new addresses.
This and a few other overly-chatty errors should be quieter after T11480.
Aug 16 2016
This has been live for several weeks without causing any apparent issues, so I believe we're in good shape.
Jul 26 2016
Jul 22 2016
Jul 2 2016
For reference, @Danny_B filed a copy of this on HackerOne here so I could award a bounty for it:
Also worth noting is that Content Security Policy (T4340) would have prevented this. CSP is obviously worth implementing, but I believe the last attack it would have prevented was D4534 in January 2013, so it's hard to prioritize if it only defuses one attack every 3-4 years.
The Phacility cluster has been patched.
In the future, please report security issues via HackerOne:
Jun 17 2016
I believe this is resolved and accounted for, let us know if anyone runs into issues.
Jun 5 2016
May 20 2016
May 19 2016
In HEAD of master, keys now have a detail screen which shows a transaction record. Clicking the key name will take you there:
May 18 2016
Here's my technical plan on this:
May 8 2016
We don't appear to be affected directly and I've discussed this in the changelog now, so I'm going to close this out as I think there's no action remaining on our side. Let us know if anyone has questions, etc.
May 4 2016
(☞゚ヮ゚)☞ Prioritized ☜(゚ヮ゚☜)