<?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 Eyibie Uche on Medium]]></title>
        <description><![CDATA[Stories by Eyibie Uche on Medium]]></description>
        <link>https://medium.com/@eyibieuche?source=rss-d7b798deaf7f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*1HkSO0iYKsdkkdq604nm5Q@2x.jpeg</url>
            <title>Stories by Eyibie Uche on Medium</title>
            <link>https://medium.com/@eyibieuche?source=rss-d7b798deaf7f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 16:36:40 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@eyibieuche/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[Some security best practices to be aware of whilst building your backend.]]></title>
            <link>https://medium.com/@eyibieuche/some-security-best-practices-to-be-aware-of-whilst-building-your-backend-38c2a0b42e0a?source=rss-d7b798deaf7f------2</link>
            <guid isPermaLink="false">https://medium.com/p/38c2a0b42e0a</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[backend]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Eyibie Uche]]></dc:creator>
            <pubDate>Thu, 02 Apr 2020 09:58:11 GMT</pubDate>
            <atom:updated>2020-04-02T10:03:13.813Z</atom:updated>
            <content:encoded><![CDATA[<h3>Six security best practices to be aware of whilst building your backend.</h3><figure><img alt="Person wearing a mask ( hacker )" src="https://cdn-images-1.medium.com/max/1024/0*VQh-2WmNrg6bOC1C" /><figcaption>Photo by <a href="https://unsplash.com/@nahelabdlhadi?utm_source=medium&amp;utm_medium=referral">Nahel Abdul Hadi</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3><strong>1. COMPROMISED DATABASE</strong></h3><p>These are some steps to take to prevent your database from being compromised or hacked.</p><ul><li>Strongly encrypt passwords with salt and hash(bcrypt)</li><li>Strongly encrypt password reset tokens (SHA 256)</li></ul><p><strong>* What does it mean to encrypt a data ? <em>Data encryption</em></strong> translates <strong>data</strong> into another form, or code, so that only people with access to a secret key (formally called a decryption key) or password <strong>can</strong> read it. <strong>Encrypted data is</strong> commonly referred to as cipher text, while unencrypted <strong>data is</strong> called plain text.</p><p><strong>* What is hash ? </strong>Hashing is the practice of using an algorithm to map data of any size to a fixed length. This is called a hash value (or sometimes hash code or hash sums or even a hash digest if you’re feeling fancy).</p><p><strong>* What is salting ? </strong>In cryptography, a <strong>salt is</strong> random <strong>data</strong> that <strong>is</strong> used as an additional input to a one-way function that hashes <strong>data</strong>, a password or passphrase. <strong>Salts are</strong> used to safeguard passwords in storage</p><h3><strong>2. BRUTE FORCE ATTACKS</strong></h3><p><strong>What is a Brute force attack ? </strong>A <strong>Brute Force Attack</strong> is the simplest method to gain access to a site or server (or anything that is password protected). It tries various combinations of usernames and passwords again and again until it gets in. This repetitive action is like an army attacking a fort.</p><p><strong>Below</strong> are some methods to implement to prevent a successful brute force.</p><ul><li>Use Bcrypt to make login requests slow.</li><li>Implement rate limiting.</li><li>Implement max login requests.</li></ul><h3>3. CROSS-SITE SCRIPTING ATTACKS</h3><p><strong>What is a CROSS-SITE Scripting attack ?</strong> Cross-site scripting attacks, often abbreviated as XSS, are a type of attack in which malicious scripts are injected into websites and web applications and run on an end user’s platform. XSS attacks are a common and widespread type of attack, using unsanitized or unvalidated user inputs, aimed at the generated output.</p><p>The XSS attack does not have to choose a specific target; the attacker simply exploits the vulnerability of the application or site, taking advantage of anyone unlucky enough to trigger an attack. Using XSS attacks, a web application or web site becomes the vector of delivering malicious scripts to the browsers of several victims.</p><p>XSS attacks can exploit vulnerabilities in several software environments, including VBScript, Flash, ActiveX, and JavaScript; XSS attacks most often use JavaScript due to the integrated nature of JavaScript in most browsers. This ability to exploit commonly used platforms makes XSS attacks one of the most common security vulnerabilities.</p><p><strong>Below</strong> are some methods to implement to prevent a successful <strong>XSS </strong>attack</p><ul><li>Store JWT in HTTPOnly cookies.</li><li>Sanitize user input data.</li><li>Set special HTTP headers.</li></ul><h3>4. DENIAL-OF-SERVICE (DoS) ATTACKS</h3><p><strong>What is a DoS attack ?</strong> a <strong>denial-of-service attack</strong> is a cyber-<strong>attack</strong> in which the perpetrator seeks to make a machine or network resource unavailable to its intended users by temporarily or indefinitely disrupting services of a host connected to the Internet.</p><p><strong>Below</strong> are some methods to implement to prevent a successful<strong> DoS </strong>attack</p><ul><li>Implement rate limiting.</li><li>Limit body payload.</li><li>Avoid Evil regular expressions</li></ul><h3>5. NOSQL QUERY INJECTION</h3><p><strong>What is a NOSQL QUERY INJECTION ?</strong> NoSQL Injection is security vulnerability that lets attackers take control of database queries through the unsafe use of user input. It can be used by an attacker to:</p><ul><li>Expose unauthorized information</li><li>Modify data</li><li>Escalate privileges</li><li>Take down your entire application</li></ul><p><strong>NOSQL QUERY INJECTION </strong>can be prevented by sanitizing user inputs</p><h3>6. OTHER SECURITY BEST PRACTICES AND SUGGESTIONS</h3><ul><li>Always use HTTPS</li><li>Create random password reset tokens with expiry dates</li><li>Deny access to JWT after password change</li><li>Don’t commit sensitive data to git</li><li>Don’t send error details to clients</li><li>Require re-authentication before a high value action (e.g password change )</li><li>Confirm user email address after creating account</li><li>Implement two factor authentications</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=38c2a0b42e0a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>