<?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 Vipul Mehta on Medium]]></title>
        <description><![CDATA[Stories by Vipul Mehta on Medium]]></description>
        <link>https://medium.com/@vipul.mehta?source=rss-2cdfde1d006------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*ninqnqp8MoCy4PDeAExWxg.jpeg</url>
            <title>Stories by Vipul Mehta on Medium</title>
            <link>https://medium.com/@vipul.mehta?source=rss-2cdfde1d006------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 18 Nov 2026 01:00:57 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@vipul.mehta/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[OpenSSL CVE-2022–0778 Analysis]]></title>
            <link>https://medium.com/@vipul.mehta/openssl-cve-2022-0778-analysis-c17101afe712?source=rss-2cdfde1d006------2</link>
            <guid isPermaLink="false">https://medium.com/p/c17101afe712</guid>
            <category><![CDATA[openssl]]></category>
            <category><![CDATA[vulnerability]]></category>
            <dc:creator><![CDATA[Vipul Mehta]]></dc:creator>
            <pubDate>Sun, 27 Mar 2022 16:14:10 GMT</pubDate>
            <atom:updated>2022-03-27T16:25:19.177Z</atom:updated>
            <content:encoded><![CDATA[<p>OpenSSL has been patched for a new high vulnerability marked as CVE-2022–0778:</p><p>“The BN_mod_sqrt() function, which computes a modular square root, contains a bug that can cause it to loop forever for non-prime moduli.”</p><p><a href="https://nvd.nist.gov/vuln/detail/CVE-2022-0778">https://nvd.nist.gov/vuln/detail/CVE-2022-0778</a></p><p><a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-0778">CVE - CVE-2022-0778</a></p><p>BN_mod_sqrt() is used while computing public key used in Elliptic Curve Cryptography by OpenSSL.</p><p>For detailed explanation we need to dig into how Elliptic Curve Cryptography works.</p><p>An Elliptic curve over a prime p is defined by following equation:</p><blockquote>y² = x³ + ax + b (mod p), where p is prime</blockquote><p>For Elliptic Curve Cryptography, client and server needs to agree on following elliptic curve parameters:</p><p><em>p, a, b, G, n, h</em></p><p><em>G</em> = Generator Point used to generate other points</p><p><em>p, a, b</em> are as shown in the equation</p><p><em>n</em> = order of curve</p><p><em>h</em> = (No. of points on the curve)/<em>n</em></p><p>Elliptic Curve Cryptography is asymmetric cryptography, so we need a private and public key.</p><p>Private Key = Random Number</p><p>Public Key = Another Point on 2D elliptic curve = <em>G</em>*(Private Key) = <em>(x0,y0)</em></p><blockquote>y0 = sqrt(x0³ + ax0 + b) (mod p) and -sqrt(x0³ + ax0 + b)(mod p)</blockquote><p>If the public key point is <em>(x0, y0)</em> then the client will send <em>(x0,y0)</em> to the server.</p><p>But, client can use point compression and send <em>x0</em> with a sign of <em>y0</em> as <em>y0</em> can have two values i.e. +ve and -ve.</p><p>Server will compute <em>y0</em> using the curve equation and p.</p><blockquote>y0 = sqrt(x0³ + bx0 + c) (mod p)</blockquote><p>If p is incorrect then due to infinite loop bug in calculation of modular square root in OpenSSL, vulnerability will get triggered.</p><p>If the server has the correct value of <em>p</em> then there will be no vulnerability.</p><p>Similarly, if client is using correct value of <em>p</em> then also there will be no vulnerability for client.</p><p>Following are the possible attack vectors for this vulnerability:</p><blockquote>TLS clients consuming attacker server certificates.</blockquote><blockquote>TLS servers consuming attacker client certificates.</blockquote><blockquote>Hosting providers taking certificates or private keys from attacker.</blockquote><blockquote>Certificate authorities parsing certification requests from attacker.</blockquote><blockquote>Anything else which computes value of y0 in ECC using x0 where the attacker can control the value of p.</blockquote><blockquote>Anything else that calls BN_mod_sqrt<em> </em>function where the attacker can control the value of p.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c17101afe712" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Crypto Trading Rules I have learned in past 6 months]]></title>
            <link>https://medium.com/stature-network/crypto-trading-rules-i-have-learned-in-past-6-months-89fe7e267ec1?source=rss-2cdfde1d006------2</link>
            <guid isPermaLink="false">https://medium.com/p/89fe7e267ec1</guid>
            <category><![CDATA[cryptocurrency-investment]]></category>
            <category><![CDATA[community]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[bitcoin]]></category>
            <dc:creator><![CDATA[Vipul Mehta]]></dc:creator>
            <pubDate>Thu, 15 Feb 2018 07:39:45 GMT</pubDate>
            <atom:updated>2020-10-28T17:35:45.324Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*PwuoPuTvGNXJK3CDpFORBw.jpeg" /></figure><p><strong>Rule 1:</strong> Invest only what you can afford to lose. (most important rule)</p><p><strong>Rule 2:</strong> Try hard to make sure you don’t lose what you have invested. (second most important rule)</p><p><strong>Rule 3:</strong> Less profit is always better than small/big loss. Do not dream to be overnight millionaire. Compounding via frequent small profits can give great returns.</p><p><strong>Rule 4:</strong> Never chase the peak. If a coin has gained significantly in last 24 hours or few days then stay away. Even if your friend has invested in it and you are afraid that he will earn more than you then keep calm. Do not invest.</p><p><strong>Rule 5:</strong> Use pump and dump groups and trading signal groups carefully. Pull out on 1st target if there are multiple suggested targets, if first target has been achieved in last 1 hour then stay away. Always assume that you will be the one making least profits following such groups, owners will make the most. Lot of experienced crypto traders suggest to not use such groups as they are meant to scam inexperienced and new traders. Following is the profit layout for such groups (source : <a href="https://bitfalls.com/2018/01/12/anatomy-pump-dump-group/">https://bitfalls.com/2018/01/12/anatomy-pump-dump-group/</a>)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/676/1*qGWLVlIFFjFtpWPBQxNWKw.png" /></figure><p><strong>Rule 6:</strong> Never take loan or borrow money to invest.</p><p><strong>Rule 7:</strong> Always be prepared for unforeseen events and 50–60% loss within few days.</p><p><strong>Rule 8:</strong> Read and analyze a coin yourself before investing. Never ever invest based on suggestions from random blogs or internet posts. Understand and apply trading technical analysis on your own instead of blindly following analysis of any other person.</p><p><strong>Rule 9:</strong> HODL (holding) is not always the best strategy, so is frequent trading. It all depends on type of coin, current scenario, FUDs (Fear, uncertainty and doubt), events, trading exchange etc.</p><p><strong>Rule 10:</strong> Do not translate your stock trading experience into crypto trading experience.</p><p><strong>Rule 11:</strong> Put your crypto profits to good use. Paying your fee, loans, dues, rent, reinvesting into safer options etc. is always better than buying things you do not actually need. Taking out initial principal amount should be your first goal.</p><p><strong>Rule 12: </strong>If you are trading against BTC/ETH and not against USD/USDT then track your actual profits in USD/USDT.</p><p><strong>Rule 13:</strong> Pay taxes, stay safe.</p><p><strong>Rule 14:</strong> Always have at least two backup exchanges where you can transfer your cryptos if you find issues with current exchange.</p><p><strong>Rule 15:</strong> Use stop-loss when you have earned profits.</p><p><strong>Rule 16:</strong> A good team behind a coin does not always mean successful underlying product and huge profits.</p><p><strong>Rule 17:</strong> Use cheaper and faster means of crypto transfer like LTC, XRP instead of BTC. But if market is highly volatile then you need to be extremely careful. Remember that there is BTC to LTC/XRP and vice-versa conversion cost and risk of huge price fluctuation during such transfer itself. So, if you are going to trade against BTC then transferring 1 BTC will give you 1 BTC (excluding fee) but transferring LTC/XRP equivalent of 1BTC might give you lesser BTCs.</p><p><strong>Rule 18:</strong> 90% of the crypto investors are just gambling and doing blind trade. They are easily influenced by FUDs, fake news etc. If 90% will dump after a fake news then your intelligence and common sense is of no use. You need to anticipate the response of this herd and act accordingly.</p><p><strong>Rule 19:</strong> Do not put your money in any exchange not having enough account security. Minimum 2 factor authentication is must.</p><p><strong>Rule 20:</strong> Try margin trade on price gap between exchanges. It is another good way of earning profits.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=89fe7e267ec1" width="1" height="1" alt=""><hr><p><a href="https://medium.com/stature-network/crypto-trading-rules-i-have-learned-in-past-6-months-89fe7e267ec1">Crypto Trading Rules I have learned in past 6 months</a> was originally published in <a href="https://medium.com/stature-network">CryptoTradeTalks</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>