Technical information about our security practices
A big part of our commitment to your data protection is the security of our systems. We hold ourselves to high standards, but there is always room for improvement. Running a secure and robust web service is ongoing work at Loco, so this document will be updated from time to time.
Let's start with the big one: We don't store passwords. We store bcrypt hashes. This allows us to verify any password presented to us (such as when logging in) but the original password cannot be reversed from the hash other than through an infeasibly large number of guesses.
Each hash has a random salt and a "cost" factor of
10. The following is a hash of a password comprising three words in the English dictionary:
Good luck reversing it. From a list of ten thousand words you could make a trillion guesses, but computing bcrypt hashes is so slow that this approach is unworkable even with very fast computers.
From time to time we will upgrade the strength of this hash. This could be due to the emergence of vulnerabilities, or [inevitably] because computers have become faster. In such an event we double hash every password in our database instead of waiting for you to log in again.
Example: When Loco first launched we were using sha256 hashes before upgrading to bcrypt in Oct 2016.
Users that haven't logged in since then will now have a hash that's a bcrypt of their old hash. Effectively:
This method ensures weak legacy passwords are never left lying around.
We don't currently enforce strong password usage on the part of users, but this is on our roadmap to implement. In the mean time please use something suitably long, or random. As shown above, three adjoined words create a lot of randomness while still being easy to remember.
Staying signed in
Our auto-login feature uses the same bcrypt algorithm to hash a random 24 byte token. The clear text of this token is set on a long-lived cookie and regenerated every time it is used to log you into the site automatically. In effect this mechanism is identical to the password login, except the "password" (token) is stored on your computer until it is used.
This feature exists due to popular demand. If you're serious about protecting access to your Loco account, we recommend you don't use it.
A full access API key allows anyone in possession of it to modify and delete your translations. Although stolen keys would be worthless outside of the Loco API, you still don't want them falling into the wrong hands. For this reason we don't store full access API keys on our servers. Once a generated key appears on your screen, that's the last time we'll see it and it cannot be recovered.
We hash API keys using a function based on MD5. This is well known to be a weak hash, largely because it is fast. We chose this function deliberately for performance reasons, but we're confident that the huge range of our keys makes reversing the hashes a practical impossibility.
Our keys are unique, random strings of which there are
256^24 possible combinations. That's over six trillion, trillion, trillion, trillion.
This is an example plain text key:
If you were in possession of our database and had the resources to compute 200 billion hashes per second it would still take you trillions of years to produce a single working key from our tiny subset of combinations. We believe this provides a safe balance between speed and security, but as computers become faster we can easily upgrade the hash strength in future.
Data in transit (SSL certificates)
From time to time we may change our certificate. It's currently provided by Comodo CA and expires on 27th August 2019.
Data at rest (Disk encryption)
It's important to note that although security between your data and the web is strong, our disks are NOT encrypted at rest. Disk encryption may be implemented in future, but currently it would make our servers incompatible with our hosting provider's backup system.
Please not that no credit card numbers are stored on our disks, not even temporarily. See card transactions below.
Servers and databases
Our main servers are hosted with Linode and located in the UK. You can read about their physical security here. Take particular note of the high level of certification awarded to their London data centre.
Our back end database and application servers are on separate hardware from our front end web servers and are not accessible from the Web. Access to database servers from application servers additionally requires a strong password.
None of our servers can be accessed over SSH without a certificate. SSH access using a password is disabled, and SSH login by the root user is completely disabled.
In addition to our main servers in the UK, we also use Amazon S3 to store uploaded files and backups. These buckets are located in Ireland. All files stored on S3 are protected from public access with authorized access being granted via AWS Signature Version 4.
We generate card tokens using the Stripe.js v2 API. Although this all takes place over SSL this API is no longer automatically PCI compliant. We are working on upgrading our systems to use newer Stripe APIs and/or provide a PCI self-attestation document (SAQ A).