<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Luc Boussant-Roux on Medium]]></title>
        <description><![CDATA[Stories by Luc Boussant-Roux on Medium]]></description>
        <link>https://medium.com/@lucb_9888?source=rss-370faf0c217b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*VvpVXT5LnYv7BG7Z.jpg</url>
            <title>Stories by Luc Boussant-Roux on Medium</title>
            <link>https://medium.com/@lucb_9888?source=rss-370faf0c217b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 17 Nov 2026 15:48:11 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@lucb_9888/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How HTTP hacked me!]]></title>
            <link>https://medium.com/sipios/how-http-hacked-me-ddfc56f657cc?source=rss-370faf0c217b------2</link>
            <guid isPermaLink="false">https://medium.com/p/ddfc56f657cc</guid>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[ssl]]></category>
            <category><![CDATA[https]]></category>
            <category><![CDATA[encryption]]></category>
            <dc:creator><![CDATA[Luc Boussant-Roux]]></dc:creator>
            <pubDate>Wed, 31 Jul 2019 10:36:36 GMT</pubDate>
            <atom:updated>2019-09-11T20:39:06.007Z</atom:updated>
            <content:encoded><![CDATA[<h4>A small ‘S’ can change everything…</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/850/0*9OCpi1xYJBHvh7OB.jpg" /></figure><p>In this article, I am going to explain <strong>all of HTTPS</strong>. First, I am going to present <strong>how it works</strong>, what it protects and does not protect. Then in a future article, I am going to show you how to <strong>setup HTTPS on your website in 5 minutes only.</strong></p><p>Two years ago, I noticed that I received notifications for comments I did not add to <a href="http://www.lefigaro.fr/">lefigaro.fr</a> website. After finding my comments, reading their content and asking myself when I wrote this, I realized that someone <strong>hacked</strong> <strong>into my account</strong>! At that time, I had no idea how my nemesis did it… so I just changed my password and moved on. How naive I was!</p><p>A year ago, Google released a feature in its browser to show a “<strong>Not secure</strong>” label on all websites using HTTP instead of HTTPS. Even today, lefigaro.fr is still flagged as “Not secure”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/235/1*MEb2O8LOweGzvzK19NimWg.png" /></figure><blockquote>Thank you for the notice Google, but it is too late for me.</blockquote><p>However, until I recently learned what the differences between HTTP and HTTPS are, I was unaware of all the <strong>dangers</strong> of using an insecure website.</p><p>Today, more than <a href="https://w3techs.com/technologies/details/ce-httpsdefault/all/all"><strong>45%</strong></a><strong> </strong>of the one million most visited websites are also still using HTTP and that puts <strong>you</strong> at risk!</p><h3>Everything my nemesis could have done</h3><p>A question that is almost never asked is “Why do hackers hack ?”. Well, my answer to this question is that they have <strong>something to gain</strong> from it. In my case, my nemesis got inside my account and posted a few “funny” comments. He must have had a laugh or two while doing it.</p><p>However, he could have done much <strong>worse</strong>! He had access to my account which means he had <strong>all</strong> of the data that was accessible within the site: name, email address, postal address, age, etc. The more a hacker knows about you the easier it is for him to discover your passwords through <strong>social engineering</strong>.</p><p>When you login using an HTTP website, the hacker can see your <strong>login and password</strong>. Knowing that <a href="https://www.pandasecurity.com/mediacenter/security/password-reuse/"><strong>52%</strong></a> of people reuse their password, this means that the hacker not only has access to the small forum site that uses HTTP but also your email, social media or even <strong>bank account</strong>.</p><p>Moreover, when using an HTTP website, everything the server sends back to you is also readable. A hacker can then transform your website easily. For example, a company could <strong>inject ads</strong> into your website for its own gain as shown in <a href="https://www.infoworld.com/article/2925839/code-injection-new-low-isps.html">this article</a>.</p><p>Nowadays, if someone has access to all of that, they could <strong>control</strong> your entire life. <a href="https://www.purevpn.com/blog/how-online-hack-ruined-my-life/">Stories</a> about people that had their life <strong>destroyed</strong> in a second by a hacker are not hard to find. That is why you should always be <strong>cautious</strong> about what you do, specifically on insecure websites, because the effect that it can have on you is enormous.</p><p>Now that we have a small idea of what my nemesis could have done after hacking into my account. I wanted to understand how he did it for it to never happen again.</p><h3>How my nemesis hacked me</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/653/0*UYMPQFzgYygFYECL.png" /><figcaption>Difference between HTTP and HTTPS in a small example</figcaption></figure><p>If a website uses HTTP instead of HTTPS, any information being transmitted through the network can be seen and used against you. If you take a look at the image above, when you are logging in to your account on a website, you can see that the hacker sees your password when using HTTP whereas he can’t even see that you are communicating your password when using HTTPS because everything is encrypted.</p><p>That said, you can ask yourself why does he get access to the data that you are transmitting. Well, when you are using a public WIFI, everyone connected to it receives the same packets as you do because the packets are broadcast through the air. It is your computer that resolves which packets are for you and which are not, it does this using the MAC address. If you want to know more, check out <a href="https://www.howtogeek.com/169540/what-exactly-is-a-mac-address-used-for/">this article</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/521/1*QvVGdg5x7ZUHqWXJgMpHBw.png" /><figcaption>Example of packets going through a router</figcaption></figure><p>In the schema above, you can see that computer 1 and computer 2 receive the information that is meant for computer 3. So if the hacker is computer 1, he can see the packets. He can collect your <strong>cookie</strong>, your <strong>session id</strong>, your <strong>token</strong> and much more. When you login, you will broadcast a packet to the router with your username and password. The hacker only has to listen to see your credentials.</p><p>However, when you use your computer you don’t get a popup every time your roommate goes on Facebook.</p><blockquote>So, how did the hacker actually see the information ?</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*atCZ-a_L3-O4YTDK.png" /></figure><p>An application allows you to do exactly that. <a href="https://www.wireshark.org/">Wireshark</a> is an open-source packet analyzer often used for network troubleshooting. In our case, it is used to analyze the packets that were sent from the router: we call this <a href="https://www.greycampus.com/blog/information-security/what-is-a-sniffing-attack-and-how-can-you-defend-it"><strong>sniffing</strong></a><strong>.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*Fla20rdxKnruo9ghiOEw4A.png" /><figcaption>Example of a packet of an HTTP request</figcaption></figure><p>Above is an example of what a hacker can see using Wireshark. The UX/UI is not modern but with the <a href="https://www.wireshark.org/docs/">documentation</a> it can be an easy-to-use tool. However, knowing what to do with all of the info it gives you requires knowledge about Computer networks.</p><p>My nemesis must have used this tool to retrieve all of the information about my account. He only had to set an HTTP filter in the Wireshark interface to see only the packet sent with the HTTP protocol and get an easy look on everything I was doing.</p><p>To sum up, we now know what my nemesis was looking for and also how he did it. The only thing left is how do we make sure he never hacks me again. To get started on that we first need to understand the basic concepts of HTTPS.</p><h3>How does HTTPS work ?</h3><p>The first question I asked myself was: what is HTTP, HyperText Transfer Protocol? It is used to communicate information between a client and a server. It is transmitted via the application layer on the OSI model. The <a href="https://www.cloudflare.com/learning/ddos/glossary/open-systems-interconnection-model-osi/">OSI model</a> is a standard that can be used for computers to communicate between each other. It is used to characterize protocols and better understand how they interact.</p><p>When using HTTPS, <strong>HyperText Transfer Protocol Secured</strong>, the data being transmitted in the packet is encrypted.</p><p><em>How is the data encrypted and how do computers decrypt the data received?</em></p><p>There is in addition of HTTP a protocol which permits to secure the data being transmitted: TLS, <strong>Transport Layer Secure</strong>. You will also see SSL, Secure Sockets Layer, when looking up the HTTPS protocol: which is just an older version of the TLS protocol. SSL was created by Netscape, a private company, but it is now maintained by <a href="https://www.ietf.org/">IETF</a>, Internet Engineering Task Force, as an open source product. This explains why the name has changed from SSL to TLS.</p><p>The versatility of this protocol gives it the opportunity to be not only be used for websites (HTTP) but also in some mail or file exchange protocols (IMAP, FTP, SMTP, etc.). For our purpose, the only thing we need to know is that the most popular browsers (Chrome, Safari, IE, Firefox, etc.) have an implementation of TLS which permits them to use HTTPS.</p><p>However, when you need to use HTTPS on your server to connect to APIs you have to setup the connection yourself. Thankfully there exists a wide selection of libraries: <a href="https://www.ibm.com/support/knowledgecenter/de/SSZJPZ_8.7.0/com.ibm.swg.im.iis.ia.restapi.doc/topics/r_restapi_sending_https_java.html">HttpsURLConnection</a> in Java, <a href="https://github.com/kennethreitz/requests">requests</a> in Python, etc.</p><blockquote>What do these implementations actually do ?</blockquote><p>The TLS protocol uses what we call in networks a “<strong>hand shake</strong>” : First, they agree on the <strong>encryption methods</strong>. Then, they <strong>exchange</strong> securely a certain <strong>keyword</strong> known only by them. After doing all that, they <strong>generate the keys </strong>using the keyword to encrypt the data. I’ll try and explain those 3 parts below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/571/1*NtF-0I_ZgKVxkWsxFhgL0Q.png" /><figcaption>Lists of steps that the client and server go through to set up HTTPS</figcaption></figure><h4>The “Agreement” phase (steps 1–2)</h4><p><strong>Step 1: </strong>In the schema above, you can see there are 8 steps to the handshake phase. The first one is the <strong>ClientHello message</strong>. The client sends a message to the server with a random number, a list of the versions of the TLS protocol it accepts and a list of the ciphers and compression algorithms it can use.</p><p><strong>Step 2: </strong>After the server receives all of this information, the server sends back the <strong>ServerHello message. </strong>It uses the data, to respond accordingly with another independent random number, the protocol version, the cipher and compression algorithm chosen using the client’s preferences. It also initiates the session between the two parties and responds with the session id created.</p><h4><strong>Exchange of secret (steps 3–6)</strong></h4><p><strong>Step 3: </strong>Immediately after sending the ServerHello message, the server sends its <strong>Certificate</strong>. A certificate can be compared to a passport. It includes various piece of information: name of the owner, domain, its public key, its validity date, etc.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/582/1*NnNNgb16Dhg0PmgzI9DK7Q.png" /><figcaption>Certificate authentication for both the client and the server</figcaption></figure><p><strong>Step 4: </strong>With all of this data, the client can now <strong>authenticate</strong> the server. It checks if the certificate is implicitly trusted or if several Certificate Authorities (CAs) trust this certificate. For example, YouTube uses <a href="https://pki.goog/">Google Trust Services</a> to sign their certificate. The client uses this certificate to make sure that the server is identified by an authority that it trusts as shown in the schema above.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*kl-d0q6QAW-Y9gka.png" /><figcaption>Basics of asymmetric encryption</figcaption></figure><p>For the next part you will need to understand the basics of asymmetric encryption. The primary notion of this encryption method is that you have a pair of keys: the <strong>Public key</strong> which can be communicated to anybody; the <strong>Private key </strong>which is only known by you. Data encrypted by your public key can only be decrypted by your private key and vice versa. <a href="https://www.cloudflare.com/learning/ssl/what-is-asymmetric-encryption/">This</a> article explains in details how the keys are generated and why this method is secure.</p><p><strong>Step 5: </strong>If the server cannot be identified, then an error is returned. However, if the server is authenticated, the client generates another random number and encrypts it using the public key sent by the server. This number is called the <strong>pre-master secret.</strong></p><p><strong>Step 6: </strong>After the creation, it is sent to the server. Since the server is the only one with the private key, it is also the only one who can understand the secret. This secret exchange uses <a href="https://www.comparitech.com/blog/information-security/rsa-encryption/"><strong>RSA encryption</strong></a><strong>.</strong> As you can see this encryption method is quite useful to send information between two parties that have not yet communicated with each other.</p><h4>Generation of the keys (steps 7–8)</h4><p>However, encrypting and decrypting larger amount of data takes a long time. Thus, RSA encryption is only used to communicate the pre-master secret and not the full request payload.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2F52qtwCtj9OLTi%2Ftwitter%2Fiframe&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2Floading-52qtwCtj9OLTi&amp;image=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2F52qtwCtj9OLTi%2F200.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="186" frameborder="0" scrolling="no"><a href="https://medium.com/media/ea7155c2aeceda538022ef76d40d5ab4/href">https://medium.com/media/ea7155c2aeceda538022ef76d40d5ab4/href</a></iframe><blockquote>How is the rest of the communication encrypted ?</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*kLTBCFuqD_48S0zB.jpg" /><figcaption>AES basic concept</figcaption></figure><p>This is where the cipher algorithm chosen before is used. The encryption used is not going to be asymmetric but symmetric. Most browsers use <a href="https://www.comparitech.com/blog/information-security/what-is-aes-encryption/">AES encryption</a> for the next part. It is a faster way to secure your data used worldwide by many applications (Whatsapp, Signal, Veracrypt, WinZip, etc.). The problem to this method is that both parties have to have the same secret key. Thanks to the RSA encryption, we solved this problem.</p><p><strong>Step 7: </strong>The cipher algorithm is used by both the server and the client to generate session keys. Both sides should end up with the same session keys because they have chosen the same algorithm.</p><p><strong>Step 8: </strong>After that, the two parties each send a <strong>finished message. </strong>This message is encrypted using the session keys to validate that the communication between the two has been correctly established.</p><p>Finally, the only step left is to send the data encrypted using the session keys. You will then only have the client and the server that will be able to communicate with each other. Anyone listening will only see random bytes being communicated between the two parties.</p><blockquote>My nemesis now only has his eyes to weep.</blockquote><p>We now can put ourselves in the head of my nemesis. We know how to hack my account and what to do after. We also understand exactly how HTTPS works. In the next article coming soon, we will see how to setup HTTPS using OpenSSL in 5 minutes to stop my nemesis from hacking the users of my website. Finally, we will learn everything my nemesis could still do even though we use HTTPS.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ddfc56f657cc" width="1" height="1" alt=""><hr><p><a href="https://medium.com/sipios/how-http-hacked-me-ddfc56f657cc">How HTTP hacked me!</a> was originally published in <a href="https://medium.com/sipios">Theodo FinTech</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Meetup PWA #13 : Créer un client Reddit avec du SSR en Nuxt.js]]></title>
            <link>https://medium.com/sipios/meetup-pwa-13-cr%C3%A9er-un-client-reddit-avec-du-ssr-en-nuxt-js-a4e20fe14482?source=rss-370faf0c217b------2</link>
            <guid isPermaLink="false">https://medium.com/p/a4e20fe14482</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[vuejs]]></category>
            <category><![CDATA[reddit]]></category>
            <category><![CDATA[seo]]></category>
            <category><![CDATA[pwa]]></category>
            <dc:creator><![CDATA[Luc Boussant-Roux]]></dc:creator>
            <pubDate>Tue, 18 Jun 2019 12:11:43 GMT</pubDate>
            <atom:updated>2019-06-18T12:11:43.568Z</atom:updated>
            <content:encoded><![CDATA[<h3>Meetup PWA #13 : Créer un client Reddit avec du SSR en Nuxt.js</h3><p>Il y a quelques semaines, à <a href="https://www.sipios.com/">Sipios</a>, j’ai eu l’occasion de participer à mon premier dojo du <a href="https://www.meetup.com/fr-FR/Paris-Progressive-Web-App/">Meetup PWA Paris</a>. Un dojo est un atelier pratique pour se former à un geste technique. Ici, nous partons d’un backlog de fonctionnalités créées par les organisateurs. Celui-ci va nous guider vers notre application finale: un <strong>clone de Reddit</strong>, sous la forme d’une <strong>hybrid-rendered PWA</strong>. Le backlog commence par l’installation des pré-requis, comme <em>git</em>, <em>node</em> et <em>ngrok</em>, puis, donne les étapes pour développer les fonctionnalités de l’application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cO9WAeEJVeXs_l_mXekqnw.png" /><figcaption>Backlog des étapes du dojo</figcaption></figure><p>Le dojo se fait par groupe de 2. Nous commençons à dépiler la première colonne du backlog et nous arrivons à un premier obstacle: je n’arrive pas à installer <em>ngrok</em> sur mon ordinateur. Les groupes à côté nous débloquent rapidement. Pour les plus grosses difficultés, les organisateurs sont présents pour nous aider à tout moment. Chaque groupe avance à sa vitesse et peut selon son envie creuser plus en détails les aspects techs en lisant la documentation ou en demandant aux organisateurs.</p><p>Après 2 heures de dojo, nous prenons le temps de faire une pause pour dîner et networker. Ce moment permet de rencontrer d’autres personnes et de discuter des technologies présentées avec les organisateurs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cU6fxehzvPOWsHK6Lo_DzA.png" /><figcaption>Résultat final auquel je suis arrivé</figcaption></figure><p>Le temps restant nous a permis d’arriver à un peu plus de la moitié du projet. À la fin du dojo, nous avons alors une PWA qui affiche des posts Reddit.</p><p>Le backlog du projet est explicite ce qui permet à tout le monde de le continuer chez soi facilement. De plus, la communauté du <a href="https://www.meetup.com/fr-FR/Paris-Progressive-Web-App/">Meetup PWA Paris</a> propose un channel slack sur lequel tout le monde pourra poser ses questions.</p><p>Cet événement finit par une rétrospective où les participants se rejoignent pour partager des feedbacks. De manière unanime, nous avons tous apprécié ce dojo et souhaitons revenir au prochain. J’ai pu découvrir de multiples technologies (<em>SSR</em>, <em>Nuxt</em>, <em>Ngrok</em>). De plus, pratiquer permet d’apprendre plus que de simplement assister passivement à une présentation. Merci aux organisateurs !</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a4e20fe14482" width="1" height="1" alt=""><hr><p><a href="https://medium.com/sipios/meetup-pwa-13-cr%C3%A9er-un-client-reddit-avec-du-ssr-en-nuxt-js-a4e20fe14482">Meetup PWA #13 : Créer un client Reddit avec du SSR en Nuxt.js</a> was originally published in <a href="https://medium.com/sipios">Theodo FinTech</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>