Posts

Showing posts from April, 2016

WhatsApp messages are now encrypted end-to-end: what does it mean?

In early April 2016, WhatsApp announced that all messages, calls, photos and files sent through the app are now protected by end-to-end encryption , for its more than one billion users. The implementation is based on the Signal Protocol, developed by Open Whisper Systems. What is end-to-end encryption? With end-to-end encryption (E2EE), a message is encrypted on the sender's device and can only be decrypted on the recipient's device. Nobody in between can read it: not your internet provider, not an attacker on the Wi-Fi network, and not even WhatsApp's own servers, which only relay encrypted data. This is different from ordinary encryption "in transit" (like HTTPS), where data is protected on the network but decrypted by the service provider's servers. How does it work, in short? Each device generates its own pair of cryptographic keys. The private key never leaves the phone . The sender's app uses the recipient's public key to establish a shar...

OWASP Top 10 Threats and Mitigations: Injection

The OWASP Top 10 lists the most critical security risks for web applications. In its 2013 edition, injection is number one. This post explains what it is and how to prevent it. What is an injection? An injection happens when an application sends untrusted input to an interpreter (a database, a shell, an LDAP directory) as part of a command or query. If the input is not properly separated from the code, an attacker can change the meaning of the command. Classic example, a login query built by concatenation: SELECT * FROM users WHERE name = '" + username + "' AND password = '" + password + "' If the attacker types ' OR '1'='1 as a username, the condition is always true, and the query may return every user. Common types SQL injection : manipulating database queries. OS command injection : running system commands through the application. LDAP and XPath injection : manipulating directory or XML queries. Possible impact da...