Page MenuHomePhabricator
Feed Advanced Search

Apr 13 2017

chad claimed T12178: Users can send messages to Conpherence rooms they do not have CAN_JOIN permission for.
Apr 13 2017, 3:50 AM · Conpherence (v4), Security
chad added a comment to T12178: Users can send messages to Conpherence rooms they do not have CAN_JOIN permission for.

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.

Apr 13 2017, 3:49 AM · Conpherence (v4), Security

Apr 10 2017

epriestley added a comment to T12515: Upgrading: File Integrity Hashing and SHA1.

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.

Apr 10 2017, 11:04 PM · Files, Guides, Security
epriestley closed T12526: parse_url() behavior has changed with PHP7, causing libphutil unit tests to fail and possibly creating security concerns as Resolved by committing Restricted Diffusion Commit.
Apr 10 2017, 5:34 PM · libphutil, Security
epriestley added a revision to T12526: parse_url() behavior has changed with PHP7, causing libphutil unit tests to fail and possibly creating security concerns: Restricted Differential Revision.
Apr 10 2017, 4:54 PM · libphutil, Security
epriestley added a comment to T12526: parse_url() behavior has changed with PHP7, causing libphutil unit tests to fail and possibly creating security concerns.

I think this is, to at least some degree, a legitimate security problem. Consider:

Apr 10 2017, 4:26 PM · libphutil, Security
epriestley added a parent task for T12526: parse_url() behavior has changed with PHP7, causing libphutil unit tests to fail and possibly creating security concerns: T12101: Phabricator PHP 7 Compatibility.
Apr 10 2017, 3:46 PM · libphutil, Security
epriestley created T12526: parse_url() behavior has changed with PHP7, causing libphutil unit tests to fail and possibly creating security concerns.
Apr 10 2017, 1:26 PM · libphutil, Security

Apr 6 2017

epriestley created T12515: Upgrading: File Integrity Hashing and SHA1.
Apr 6 2017, 11:24 PM · Files, Guides, Security
epriestley added a revision to T12509: Plan the path forward from HMAC-SHA1: Restricted Differential Revision.
Apr 6 2017, 5:10 PM · Infrastructure, Security
epriestley added a revision to T12509: Plan the path forward from HMAC-SHA1: Restricted Differential Revision.
Apr 6 2017, 5:03 PM · Infrastructure, Security
epriestley added a revision to T12509: Plan the path forward from HMAC-SHA1: Restricted Differential Revision.
Apr 6 2017, 4:38 PM · Infrastructure, Security
epriestley added a comment to T12509: Plan the path forward from HMAC-SHA1.

(That said, the hash cost may become very relevant when we eventually ship "Phabricator Valuable Golden Coin Money", our blockchain-based virtual currency.)

Apr 6 2017, 2:01 PM · Infrastructure, Security
epriestley added a comment to T12509: Plan the path forward from HMAC-SHA1.

I get these rough per-hash costs locally (Macbook Pro), with a 64-byte key:

Apr 6 2017, 1:05 PM · Infrastructure, Security
siepkes added a comment to T12509: Plan the path forward from HMAC-SHA1.

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

Apr 6 2017, 12:54 PM · Infrastructure, Security
epriestley added a comment to T6994: Write a general "Security guidelines" document.

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.

Apr 6 2017, 11:49 AM · Security
epriestley closed T12512: Bug in Upload URL's (Require user authentication over URL's ) as Resolved.

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 6 2017, 11:39 AM · Security, Bug Report
wjhussain added a project to T12512: Bug in Upload URL's (Require user authentication over URL's ): Security.
Apr 6 2017, 11:10 AM · Security, Bug Report

Apr 5 2017

epriestley added a comment to T12509: Plan the path forward from HMAC-SHA1.

I'm maybe going to try to do this in the short term:

Apr 5 2017, 8:26 PM · Infrastructure, Security
epriestley created T12509: Plan the path forward from HMAC-SHA1.
Apr 5 2017, 8:21 PM · Infrastructure, Security
cspeckmim added a comment to T12506: hackerone: possible issue with secrets sharing.

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.

Apr 5 2017, 1:53 PM · Security
epriestley added a comment to T12506: hackerone: possible issue with secrets sharing.

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.

Apr 5 2017, 1:16 PM · Security
cspeckmim added a comment to T12506: hackerone: possible issue with secrets sharing.

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.

Apr 5 2017, 1:09 PM · Security
cxzzero added a comment to T12506: hackerone: possible issue with secrets sharing.

Thanks for the response Evan.

Apr 5 2017, 1:04 PM · Security
epriestley closed T12506: hackerone: possible issue with secrets sharing as Invalid.

You can review the HackerOne report, including my response, here:

Apr 5 2017, 12:51 PM · Security
cxzzero created T12506: hackerone: possible issue with secrets sharing.
Apr 5 2017, 12:44 PM · Security

Mar 26 2017

epriestley reopened T8918: Header shows number of notifications and various other controls on the 2FA auth screen as "Open".

(This was incorrectly closed by the text "doesn't actually fix T8918" in rP08de131da525.)

Mar 26 2017, 8:15 PM · Security, Auth

Mar 20 2017

epriestley closed T12408: Security: "Show Raw File" in Differential generated files with overbroad permissions as Resolved.

We don't plan to take any other upstream actions here, but let us know if anyone has further questions.

Mar 20 2017, 2:16 PM · Differential, Files, Security

Mar 16 2017

epriestley added a comment to T12408: Security: "Show Raw File" in Differential generated files with overbroad permissions.

(You could also pipe the list into bin/remove destroy --force, equivalently.)

Mar 16 2017, 8:22 PM · Differential, Files, Security
epriestley added a comment to T12408: Security: "Show Raw File" in Differential generated files with overbroad permissions.

You can re-run the migration explicitly with:

Mar 16 2017, 8:22 PM · Differential, Files, Security
cspeckmim added a comment to T12408: Security: "Show Raw File" in Differential generated files with overbroad permissions.

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.

Mar 16 2017, 8:11 PM · Differential, Files, Security
epriestley added a comment to T12408: Security: "Show Raw File" in Differential generated files with overbroad permissions.

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.

Mar 16 2017, 5:35 PM · Differential, Files, Security
epriestley added a comment to T12408: Security: "Show Raw File" in Differential generated files with overbroad permissions.

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 16 2017, 5:17 PM · Differential, Files, Security
epriestley added a revision to T12408: Security: "Show Raw File" in Differential generated files with overbroad permissions: Restricted Differential Revision.
Mar 16 2017, 4:55 PM · Differential, Files, Security
epriestley created T12408: Security: "Show Raw File" in Differential generated files with overbroad permissions.
Mar 16 2017, 4:51 PM · Differential, Files, Security
epriestley added a parent task for T12046: PHPMailer RCE [CVE-2016-10033 and CVE-2016-10045]: T12404: Implement a first-party SMTP client.
Mar 16 2017, 1:06 AM · Mail, Security

Mar 3 2017

epriestley added a revision to T12313: Cloudflare leaked all HTTPS traffic on the internet into public caches ("Cloudbleed"): Restricted Differential Revision.
Mar 3 2017, 10:22 PM · Guides, Security

Mar 2 2017

epriestley closed T12313: Cloudflare leaked all HTTPS traffic on the internet into public caches ("Cloudbleed") as Resolved.

Closing this since there doesn't seem to be any thing left that's actionable for us.

Mar 2 2017, 5:29 PM · Guides, Security

Feb 24 2017

allixsenos updated the task description for T12313: Cloudflare leaked all HTTPS traffic on the internet into public caches ("Cloudbleed").
Feb 24 2017, 2:41 PM · Guides, Security
epriestley added a comment to T12313: Cloudflare leaked all HTTPS traffic on the internet into public caches ("Cloudbleed").

Broadly, there is nothing Phabricator could have done differently to anticipate or prevent this issue.

Feb 24 2017, 2:31 PM · Guides, Security
epriestley added a comment to T12313: Cloudflare leaked all HTTPS traffic on the internet into public caches ("Cloudbleed").

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.

Feb 24 2017, 2:24 PM · Guides, Security
epriestley updated the task description for T12313: Cloudflare leaked all HTTPS traffic on the internet into public caches ("Cloudbleed").
Feb 24 2017, 2:12 PM · Guides, Security
epriestley added a comment to T12313: Cloudflare leaked all HTTPS traffic on the internet into public caches ("Cloudbleed").

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.

Feb 24 2017, 2:12 PM · Guides, Security
allixsenos added a comment to T12313: Cloudflare leaked all HTTPS traffic on the internet into public caches ("Cloudbleed").

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.

Feb 24 2017, 1:43 PM · Guides, Security
epriestley added a comment to T12313: Cloudflare leaked all HTTPS traffic on the internet into public caches ("Cloudbleed").
NOTE: If Aphlict is served from the same domain as Phabricator (e.g., just on a different port) with Cloudflare as an intermediary, none of the rest of this comment applies: browsers could have sent credentials with the request and Cloudflare could have cached them.
Feb 24 2017, 12:50 PM · Guides, Security
epriestley added a comment to T12313: Cloudflare leaked all HTTPS traffic on the internet into public caches ("Cloudbleed").

To cycle passwords, you can do this:

Feb 24 2017, 12:43 PM · Guides, Security
allixsenos added a comment to T12313: Cloudflare leaked all HTTPS traffic on the internet into public caches ("Cloudbleed").

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.

Feb 24 2017, 10:56 AM · Guides, Security
revi added a comment to T12313: Cloudflare leaked all HTTPS traffic on the internet into public caches ("Cloudbleed").

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.

Feb 24 2017, 6:03 AM · Guides, Security
epriestley added a comment to T12313: Cloudflare leaked all HTTPS traffic on the internet into public caches ("Cloudbleed").

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 24 2017, 12:21 AM · Guides, Security
epriestley updated the task description for T12313: Cloudflare leaked all HTTPS traffic on the internet into public caches ("Cloudbleed").
Feb 24 2017, 12:15 AM · Guides, Security
epriestley updated the task description for T12313: Cloudflare leaked all HTTPS traffic on the internet into public caches ("Cloudbleed").
Feb 24 2017, 12:15 AM · Guides, Security
epriestley created T12313: Cloudflare leaked all HTTPS traffic on the internet into public caches ("Cloudbleed").
Feb 24 2017, 12:11 AM · Guides, Security

Feb 14 2017

epriestley added a comment to T12178: Users can send messages to Conpherence rooms they do not have CAN_JOIN permission for.

(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?)

Feb 14 2017, 3:08 PM · Conpherence (v4), Security
epriestley added a comment to T12178: Users can send messages to Conpherence rooms they do not have CAN_JOIN permission for.

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 14 2017, 3:07 PM · Conpherence (v4), Security

Feb 8 2017

remusvrm updated Q561: Why tickets created using API Token don't appear in "Recent Activity" view? from to Why tickets created using API Token don't appear in "Recent Activity" view?.
Feb 8 2017, 9:23 AM · Security

Feb 1 2017

chad added a comment to T12178: Users can send messages to Conpherence rooms they do not have CAN_JOIN permission for.

🤔

Feb 1 2017, 1:14 AM · Conpherence (v4), Security
epriestley created T12178: Users can send messages to Conpherence rooms they do not have CAN_JOIN permission for.
Feb 1 2017, 1:10 AM · Conpherence (v4), Security

Jan 5 2017

aubort added a watcher for Security: aubort.
Jan 5 2017, 8:42 AM

Jan 1 2017

DemiMarie added a comment to T12046: PHPMailer RCE [CVE-2016-10033 and CVE-2016-10045].

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.

Jan 1 2017, 7:50 PM · Mail, Security

Dec 28 2016

epriestley added a comment to T12046: PHPMailer RCE [CVE-2016-10033 and CVE-2016-10045].

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!

Dec 28 2016, 8:11 AM · Mail, Security
eadler renamed T12046: PHPMailer RCE [CVE-2016-10033 and CVE-2016-10045] from PHPMailer RCE [CVE-2016-10033] to PHPMailer RCE [CVE-2016-10033 and CVE-2016-10045].
Dec 28 2016, 7:24 AM · Mail, Security
eadler added a comment to T12046: PHPMailer RCE [CVE-2016-10033 and CVE-2016-10045].

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 28 2016, 7:16 AM · Mail, Security

Dec 26 2016

epriestley lowered the priority of T12046: PHPMailer RCE [CVE-2016-10033 and CVE-2016-10045] from High to Low.

This appears to be the fix:

Dec 26 2016, 4:51 PM · Mail, Security
epriestley created T12046: PHPMailer RCE [CVE-2016-10033 and CVE-2016-10045].
Dec 26 2016, 4:14 PM · Mail, Security

Dec 12 2016

epriestley closed T4439: Set up SPF records for domains we control as Resolved.

This got done at some point, I believe, since we have an SPF record now.

Dec 12 2016, 9:44 PM · Security, Mail

Nov 10 2016

chad added a project to T11761: Return to previous page after exiting high security mode: Security.
Nov 10 2016, 6:12 PM · Security

Aug 27 2016

epriestley added a comment to T9770: It is possible to use the same 2FA token more than once.

Basically, if you want to see this implemented, please describe an attack scenario you're concerned about in detail.

Aug 27 2016, 2:17 PM · Security, Auth
epriestley added a comment to T9770: It is possible to use the same 2FA token more than once.

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:

Aug 27 2016, 1:32 PM · Security, Auth
reed added a comment to T9770: It is possible to use the same 2FA token more than once.

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 27 2016, 8:33 AM · Security, Auth

Aug 25 2016

jcox closed T10999: Expand MFA checks to all email operations as Resolved by committing Restricted Diffusion Commit.
Aug 25 2016, 1:01 PM · Contributor Onboarding, Security

Aug 24 2016

jcox added a revision to T10999: Expand MFA checks to all email operations: Restricted Differential Revision.
Aug 24 2016, 9:09 PM · Contributor Onboarding, Security

Aug 22 2016

epriestley moved T10999: Expand MFA checks to all email operations from Backlog to Basic on the Contributor Onboarding board.
Aug 22 2016, 7:34 PM · Contributor Onboarding, Security
epriestley assigned T10999: Expand MFA checks to all email operations to jcox.

In Settings → (Personal Account Settings) → Email Addresses, you can take several actions with email addresses associated with your account, including adding new addresses.

Aug 22 2016, 7:34 PM · Contributor Onboarding, Security
epriestley closed T8595: Don't show CSRF exception in the error logs as Resolved.

This and a few other overly-chatty errors should be quieter after T11480.

Aug 22 2016, 6:48 PM · Security
epriestley added a project to T10999: Expand MFA checks to all email operations: Contributor Onboarding.
Aug 22 2016, 5:42 PM · Contributor Onboarding, Security

Aug 16 2016

epriestley closed T11359: "httpoxy" HTTP Proxy Environmental Vulnerability as Resolved.

This has been live for several weeks without causing any apparent issues, so I believe we're in good shape.

Aug 16 2016, 11:36 PM · Security

Jul 26 2016

thoughtpolice added a watcher for Security: thoughtpolice.
Jul 26 2016, 8:21 AM
cspeckmim added a watcher for Security: cspeckmim.
Jul 26 2016, 4:17 AM

Jul 22 2016

epriestley created T11359: "httpoxy" HTTP Proxy Environmental Vulnerability.
Jul 22 2016, 12:36 AM · Security

Jul 2 2016

epriestley added a comment to T11257: HTML in Diffusion not escaped in certain circumstances.

For reference, @Danny_B filed a copy of this on HackerOne here so I could award a bounty for it:

Jul 2 2016, 2:50 PM · Security, Wikimedia, Diffusion, Bug Report
epriestley added a comment to T11257: HTML in Diffusion not escaped in certain circumstances.

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.

Jul 2 2016, 2:49 PM · Security, Wikimedia, Diffusion, Bug Report
Danny_B updated subscribers of T11257: HTML in Diffusion not escaped in certain circumstances.
Jul 2 2016, 1:25 PM · Security, Wikimedia, Diffusion, Bug Report
epriestley added a comment to T11257: HTML in Diffusion not escaped in certain circumstances.

The Phacility cluster has been patched.

Jul 2 2016, 1:12 PM · Security, Wikimedia, Diffusion, Bug Report
epriestley added a comment to T11257: HTML in Diffusion not escaped in certain circumstances.

In the future, please report security issues via HackerOne:

Jul 2 2016, 12:27 PM · Security, Wikimedia, Diffusion, Bug Report
epriestley claimed T11257: HTML in Diffusion not escaped in certain circumstances.
Jul 2 2016, 12:27 PM · Security, Wikimedia, Diffusion, Bug Report

Jun 17 2016

epriestley closed T10917: Build Glorious High-Security Notification/Audit Infrastructure as Resolved.

I believe this is resolved and accounted for, let us know if anyone runs into issues.

Jun 17 2016, 2:01 AM · Auth, Prioritized, Security, Feature Request

Jun 5 2016

epriestley closed T10832: Evaluate Git remote execution vulnerabilities with 2GB pathnames as Resolved.
Jun 5 2016, 10:22 PM · Ops, Git, Phacility, Security

May 20 2016

epriestley created T10999: Expand MFA checks to all email operations.
May 20 2016, 4:48 PM · Contributor Onboarding, Security

May 19 2016

epriestley moved T10917: Build Glorious High-Security Notification/Audit Infrastructure from The Queue to Paused on the Prioritized board.

In HEAD of master, keys now have a detail screen which shows a transaction record. Clicking the key name will take you there:

May 19 2016, 10:20 PM · Auth, Prioritized, Security, Feature Request
epriestley added a revision to T10917: Build Glorious High-Security Notification/Audit Infrastructure: Restricted Differential Revision.
May 19 2016, 10:13 PM · Auth, Prioritized, Security, Feature Request
epriestley added a revision to T10917: Build Glorious High-Security Notification/Audit Infrastructure: Restricted Differential Revision.
May 19 2016, 6:04 PM · Auth, Prioritized, Security, Feature Request
epriestley added a revision to T10917: Build Glorious High-Security Notification/Audit Infrastructure: Restricted Differential Revision.
May 19 2016, 5:20 PM · Auth, Prioritized, Security, Feature Request
epriestley added a revision to T10917: Build Glorious High-Security Notification/Audit Infrastructure: Restricted Differential Revision.
May 19 2016, 4:06 PM · Auth, Prioritized, Security, Feature Request

May 18 2016

epriestley added a revision to T10917: Build Glorious High-Security Notification/Audit Infrastructure: Restricted Differential Revision.
May 18 2016, 4:46 PM · Auth, Prioritized, Security, Feature Request
epriestley added a comment to T10917: Build Glorious High-Security Notification/Audit Infrastructure.

Here's my technical plan on this:

May 18 2016, 3:26 PM · Auth, Prioritized, Security, Feature Request

May 8 2016

epriestley closed T10921: Phabricator and ImageTragick as Resolved.

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 8 2016, 3:59 PM · Macros, Security

May 4 2016

chad added a comment to T10917: Build Glorious High-Security Notification/Audit Infrastructure.

(☞゚ヮ゚)☞ Prioritized ☜(゚ヮ゚☜)

May 4 2016, 9:50 PM · Auth, Prioritized, Security, Feature Request
epriestley claimed T10917: Build Glorious High-Security Notification/Audit Infrastructure.
May 4 2016, 9:46 PM · Auth, Prioritized, Security, Feature Request
epriestley moved T10917: Build Glorious High-Security Notification/Audit Infrastructure from Backlog to The Queue on the Prioritized board.
May 4 2016, 9:46 PM · Auth, Prioritized, Security, Feature Request
epriestley renamed T10917: Build Glorious High-Security Notification/Audit Infrastructure from Send email when an SSH key is added for a user to Build Glorious High-Security Notification/Audit Infrastructure.
May 4 2016, 9:45 PM · Auth, Prioritized, Security, Feature Request