<?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 X0_AhMeD_0X on Medium]]></title>
        <description><![CDATA[Stories by X0_AhMeD_0X on Medium]]></description>
        <link>https://medium.com/@a7md.3bdullah?source=rss-4e03a70d0877------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*oO9DMIHUnVjuTorsR5N8sQ.jpeg</url>
            <title>Stories by X0_AhMeD_0X on Medium</title>
            <link>https://medium.com/@a7md.3bdullah?source=rss-4e03a70d0877------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 04:41:49 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@a7md.3bdullah/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[All You Need to know About Broken Authentication and Session Management]]></title>
            <link>https://medium.com/@a7md.3bdullah/all-you-need-to-know-about-broken-authentication-and-session-management-26920f100714?source=rss-4e03a70d0877------2</link>
            <guid isPermaLink="false">https://medium.com/p/26920f100714</guid>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[pentesting]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[bugs]]></category>
            <category><![CDATA[vulnerability]]></category>
            <dc:creator><![CDATA[X0_AhMeD_0X]]></dc:creator>
            <pubDate>Sat, 31 Aug 2024 04:14:44 GMT</pubDate>
            <atom:updated>2024-08-31T04:15:31.302Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>السلام عليكم ورحمة الله وبركاتة قبل كل شئ ارجو منكم الدعاء لإخواننا فى غزة والسودان وكل الدول العربية والإسلاميه🇵🇸</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TPy8zWurBmiZJVmNa72Uhw.jpeg" /><figcaption>Broken Authentication</figcaption></figure><h4><strong>What is Broken Authentication and Session Management ??</strong></h4><p>All application requires users to log in to access their accounts, make a process, transaction, etc. More often than not, this is done using a username and password. With this info, a site will assign and send each logged-in visitor a unique session ID that serves as a key to the user’s identity on the server.</p><p>If not properly secured, a cyber criminal can impersonate a valid user and access that user’s account, resulting in a broken authentication and session management attack.</p><h4>These vulnerabilities can occur due to a variety of reasons, such as:</h4><ul><li>Inadequate protection of credentials during transmission and storage.</li><li>Insufficient session expiration, allowing an attacker to use a session ID even after the user has logged out.</li><li>Session fixation, where an attacker can force a user to use a session ID known to the attacker.</li><li>Inadequate session invalidation after a successful password change.</li><li>Exposing session IDs in the URL (URL rewriting).</li></ul><h3>Identifying Broken Authentication and Session Management in Code Review :</h3><p>During a secure code review, the primary goal is to identify places in the code where the application handles user authentication and session management. Here are some things to look for:</p><ol><li>Insecure transmission of credentials: If the application transmits credentials over an insecure channel (non-HTTPS), it’s a potential vulnerability.</li><li>Insecure storage of credentials: If the application stores credentials in plaintext or uses weak hashing algorithms, it’s a potential vulnerability.</li><li>Insufficient session expiration: If the application does not properly expire sessions, it’s a potential vulnerability.</li><li>Session fixation: If the application does not properly handle session IDs, it’s a potential vulnerability.</li><li>Inadequate session invalidation: If the application does not invalidate the session after a successful password change or logout, it’s a potential vulnerability.</li></ol><h3>How to find this vulnerability :</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0dvo7Mg0W0uLOgumQAGFCw.png" /><figcaption>Broken Authentication and Session Management</figcaption></figure><h3>Now Lets Go Know How to Preventing Broken Authentication and Session Management</h3><p>Preventing broken authentication and session management vulnerabilities involves proper design and coding practices. Here are some measures that can be taken:</p><ol><li>Secure transmission of credentials: Always transmit credentials over a secure channel (HTTPS).</li><li>Secure storage of credentials: Always store credentials securely. Use strong, salted hashing algorithms for password storage.</li><li>Proper session expiration: Always expire sessions after a period of inactivity or after the user logs out.</li><li>Prevent session fixation: Always assign a new session ID to a user when they authenticate.</li><li>Proper session invalidation: Always invalidate the session after a successful password change or logout.</li></ol><p><em>In conclusion , Thanks to you all for reading</em></p><p><strong>ان احسنت فمن الله وان اخطأت فمن نفسى او من عمل الشيطان</strong></p><p><strong>You can connect with me on :</strong></p><p><a href="https://www.linkedin.com/in/ahmed-hilal/">https://www.linkedin.com/in/ahmed-hilal/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=26920f100714" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[TryHackMe CTF: Pickle Rick — Walkthrough]]></title>
            <link>https://medium.com/@a7md.3bdullah/tryhackme-ctf-pickle-rick-walkthrough-1455ffd6863b?source=rss-4e03a70d0877------2</link>
            <guid isPermaLink="false">https://medium.com/p/1455ffd6863b</guid>
            <category><![CDATA[tryhackme]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[ctf-walkthrough]]></category>
            <category><![CDATA[ctf-writeup]]></category>
            <category><![CDATA[ctf]]></category>
            <dc:creator><![CDATA[X0_AhMeD_0X]]></dc:creator>
            <pubDate>Wed, 21 Feb 2024 22:03:33 GMT</pubDate>
            <atom:updated>2024-02-21T22:03:33.712Z</atom:updated>
            <content:encoded><![CDATA[<h3>TryHackMe CTF: Pickle Rick — Walkthrough</h3><h3>Pickle Rick TryHackMe Walkthrough</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MZX3R4Fl7-nCjqGWBzLPeg.jpeg" /></figure><h3>General information</h3><ul><li><strong>Difficulty level:</strong> easy</li><li><strong>Platform:</strong> TryHackMe</li></ul><h3>Task 1 (Pickle Rick)</h3><p>This Rick and Morty themed challenge requires you to exploit a webserver to find 3 ingredients that will help Rick make his potion to transform himself back into a human from a pickle.</p><p>Deploy the virtual machine on this task and explore the web application: &lt;ip&gt;</p><h3>Enumeration</h3><p>Let’s get going! The first thing we should do is take a thorough look at the machine. This includes both the homepage itself, as well as the server and network.</p><p><em>sudo nmap &lt;TARGET_IP&gt; -A -T 4 -v -oN scan_results</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/831/1*5UKSLaJC3Jyc5ZYxXdUMyQ.png" /></figure><h3>Exploring the website</h3><p>if we navigate to “http://&lt;TARGET_IP&gt;:80”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m_7dYBXaEeqVX0-LOj0A6Q.png" /></figure><h3>Source code</h3><p>Let’s look at the source code. Here we find a username:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/383/1*S0ZgJnl0cUG7w70hj7wDzA.png" /></figure><h3>Brute-forcing directories and files from the website</h3><p>To find directories or files in a web application, we can use <strong>GoBuster </strong>to brute-force URIs. We could use another tool like “<strong>Nikto</strong>”, but we are just gonna be focusing on <strong>GoBuster</strong>, as this tool is able to get all the work done.</p><p>So, we are going to execute the following command on our shell:</p><p><em>gobuster dir -u &lt;TARGET_URL&gt; -x php,html,css,js,txt,pdf -w &lt;WORDLIST&gt;</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/962/1*WznJtZOErfNdJ1XHigIQ5g.png" /></figure><p>We can see <strong>we found 3 new files</strong>: login.php, portal.php and robots.txt. So, let’s navigate to then and see if we can find any interesting information.</p><p>The “<strong>robots.txt</strong>” file usually contains directories that web developers do NOT want search engines finding and displaying on Google for example. Checking that file could reveal some interesting hidden directories:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/504/1*c6TWcOQwQy48NySlelhuuw.png" /></figure><p>In the “portal.php” (200 HTTP Status Code) webpage we are greeted with this login form. We already have a username, but no passwords. So, let’s just try to see if the other files we found gives us any insights about a password.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/955/1*qgPUmPT158SKqI73z0FyYQ.png" /></figure><p>Let’s try the portal login page. We have a username: R1ckRul3s, and also have found the text Wubbalubbadubdub in the robots.txt file. Might this be a password?</p><p>Username -&gt;R1ckRul3s<br>password-&gt; Wubbalubbadubdub</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/797/1*mm9fkU2H4GDdWkA11Uh4YA.png" /></figure><h3>Using the website’s Command Panel</h3><p>Now on this “portal.php” webpage we can see something that is gonna be extremely useful to us: <strong>a command panel</strong>. If you do a little bit of testing, you will see that this command panel basically accepts Linux commands, so it’s just like a web shell!</p><p>By the way, if we try to access any other tabs, we are always gonna end up in the “denied.php” webpage, that looks like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/847/1*wfz5cQY_QAzE3V8-O4LjmA.png" /></figure><p>So, let’s input some Linux Command into that Command Panel to see what we can do.</p><h3>Getting the first ingredient/flag</h3><p>First, by inputting the command “ls -a” we can see all the files that are in the current folder we’re in:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/413/1*EigicSgxKsP7T52pt8ThCg.png" /></figure><p>Look at that! A text file called Sup3rPickl3Ingred.txt. That seems like something worth checking out.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/741/1*jClzmzRJBvv3Gm8d0sMxag.png" /></figure><p>We are not allowed to use the cat command :(</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/599/1*RQenj_QcTimZNHK3LLDEdw.png" /></figure><p>Well well, we just can’t use the “cat” command! So.. how are we gonna read what’s inside of this file? Actually there’s plenty ways of doing it, <strong>here’s a few commands that can replace “cat” in this situation:</strong></p><ul><li><em>tac Sup3rS3cretPickl3Ingred.txt</em></li><li><em>less Sup3rS3cretPickl3Ingred.txt</em></li><li><em>strings Sup3rS3cretPickl3Ingred.txt</em></li><li><em>grep . Sup3rS3cretPickl3Ingred.txt</em></li><li><em>cp Sup3rS3cretPickl3Ingred.txt /dev/stdout</em></li><li><em>while read line; do echo $line; done &lt; Sup3rS3cretPickl3Ingred.txt</em></li></ul><p>So, by using of the commands above we can find the 1st ingredient that Rick needs:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/978/1*Q1bAoO5saWpe3u_00yfDJA.png" /></figure><p>There we go! First flag done!</p><h3>Getting the second ingredient/flag</h3><p>We also saw another filed called “clue.txt” which, as the name suggests, could give us some clues as to where the other ingredients are. If we open up the same way we just did by appending it, we get a hint.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/715/1*MYd_e-qp5Hb8CvtU9uUYgA.png" /></figure><p>This tells us to look around the file system. Going back to the “<strong>Command Panel</strong>” we know it is acting like a normal terminal on Linux where we can use various commands. One of the most important directories to check for important files is the <strong>/home</strong> directory to reveal certain users and possibly files inside their sub-directory. If we run the “<strong>ls /home</strong>” command we see two directories belonging to users — <strong>rick </strong>and <strong>ubuntu</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/959/1*j98fyFt72UBhTys-7ogRkA.png" /></figure><p>The “<strong>ubuntu</strong>” directory seems like a default directory on the Linux system itself but the “<strong>rick</strong>” directory is most certainly a configured user. If we list the contents of the “<strong>/home/rick</strong>” directory via “<strong>ls /home/rick</strong>” it reveals an interesting file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yD_oJ1V2jmlqdfqDozrnBQ.png" /></figure><p>We have found the second ingredient. To read the contents of this file, we can try using the cat command followed by the full directory path — <strong>cat /home/rick/second\ ingredients</strong>.<strong> </strong>(NOTE: the backslash after second is needed due to a space in the filename).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hTeux2fY5UYVYlcOpgFIvw.png" /></figure><p>And so, by reading the contents of this file with “tac /home/rick/second\ ingredients” we get the 2nd ingredient Rick needs!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/406/1*bYCllx7macOm13HBm98r0w.png" /></figure><p><strong>Be aware of the backslash after the word “second”</strong>, this is a special character that allow us to, in this case, use a space. If we don’t use the backslash, the command won’t work, or we will need to put the full file path in quotes (tac “/home/rick/second ingredients”). The way you do is up to you.</p><h3>Getting the third ingredient/flag</h3><p>Now there’s only one ingredient/flag remaining, but we don’t have any clues where it is, so we can assume it’s the “root flag”, which will demand us to escalate privileges to become the root user.</p><p>If we type the command “whoami” in the Command Panel, we will see that <strong>we are “www-data” at the moment</strong>, and this user can’t access the “/root/” directory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/344/1*zNINwENl4fJobZE8Xy_UvA.png" /></figure><p>To root ourselves, I am going to explain two different approaches we can take: the simple and the sweaty one.</p><h3>Escalating privileges: simple way</h3><p>The simple method is… well… simple. If we type on the Command Panel “sudo -l” we are gonna get a output from the “/etc/sudoers” file, and there is an entry that specifically talks about our “www-data” user, and this entry is basically saying that the<strong> “www-data” user can execute any commands in the system as the root user without providing any password”.</strong></p><p>Well, if we can execute any command as the root without providing the root password, why won’t we just execute what we want with the “sudo” prefix evey time? This is what we’re gonna do!</p><p>So, by listing all the content from the “/root/” directory with the “sudo” prefix, we can see a list of files, which one of then has a very peculiar name of “3rd.txt”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/639/1*z-YGKZ7hc84AcaRAgCj5RA.png" /></figure><p>There we go! This is the 3rd ingredient/flag, let’s read what’s inside the “3rd.txt” file:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/505/1*-fucr6bLGW40FrKNpZqckA.png" /></figure><p><strong>The CTF is already done;</strong></p><h3>Questions</h3><p><strong>What is the first ingredient Rick needs?</strong></p><blockquote><strong><em>Answer</em></strong><em>: mr. meeseek hair</em></blockquote><p><strong>Whats the second ingredient Rick needs?</strong></p><blockquote><strong><em>Answer</em></strong><em>: 1 jerry tear</em></blockquote><p><strong>Whats the final ingredient Rick needs?</strong></p><blockquote><strong><em>Answer</em></strong><em>: fleeb juice</em></blockquote><h3>Conclusion</h3><p>That’s it! The CTF is done!</p><p>We successfully helped Rick turn back to human by hacking into his machine and getting all the three necessary ingredients.</p><p>This is a easy level CTF that definitely helps new cybersecurity students to get into how CTFs works. Me myself am a beginner at cybersecurity and pentesting, I had to think a little bit and try different things to make sure I could get all the three flags, that’s why these CTFs helps us learn a lot, we need to test and try different things, which sometimes doesn’t result in anything in a particular CTF, but still, we end up learning how to do something new, that can help us in other CTFs or even in specific future situations.</p><p>This was my first post about cybersecurity, as well as my first post on Medium. If you enjoyed, leave it a clap and comment you thoughts or questions about it.</p><p>Thanks!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1455ffd6863b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Google XSS game]]></title>
            <link>https://medium.com/@a7md.3bdullah/google-xss-game-088137a4ce69?source=rss-4e03a70d0877------2</link>
            <guid isPermaLink="false">https://medium.com/p/088137a4ce69</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[xss-attack]]></category>
            <category><![CDATA[xss-vulnerability]]></category>
            <category><![CDATA[oscp]]></category>
            <category><![CDATA[ctf-writeup]]></category>
            <dc:creator><![CDATA[X0_AhMeD_0X]]></dc:creator>
            <pubDate>Wed, 20 Dec 2023 20:44:43 GMT</pubDate>
            <atom:updated>2023-12-20T20:44:43.892Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Cross-site scripting </strong>is a classic well-known type of attack that is possible because some software applications take user input in an insecure way. This happens via search fields, survey forms, cookies, and online web forms.</p><p>Types Of XSS =&gt; <em>Reflected XSS, Stored XSS, and DOM XSS.</em></p><h3><strong>let’s go:</strong></h3><h3>[1/6] Level 1: Hello, world of XSS</h3><p><strong>Mission Description:</strong>This level demonstrates a common cause of cross-site scripting where user input is directly included in the page without proper escaping.Interact with the vulnerable application window below and find a way to make it execute JavaScript of your choosing. You can take actions inside the vulnerable window or directly edit its URL bar.</p><p><strong>Mission Objective:</strong>Inject a script to pop up a JavaScript <strong>alert()</strong> in the frame below. Once you show the alert you will be able to advance to the next level.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TPz4ByOQuu1OGKcrsxd6Fw.png" /></figure><p><strong>Solution: </strong>Well this level is just an introductory challenge just to show how a XSS works, of course its a <em>“very basic and non realistic”</em> example. Anything we type get embedded into the page. Hence, just inject a script tag with an alert code.</p><p>You can view the frame source via view-source: .</p><p>Enter hello to the url bar. You will find that hello is reflection back to the page.</p><blockquote>Now type</blockquote><pre>&lt;script&gt;alert()&lt;/script&gt;</pre><p>you will see that there is no encoding happening and the popup gets triggered</p><h3>[2/6] Level 2: Persistence is key</h3><p><strong>Mission Description: </strong>Web applications often keep user data in server-side and, increasingly, client-side databases and later display it to users. No matter where such user-controlled data comes from, it should be handled carefully.This level shows how easily XSS bugs can be introduced in complex apps.</p><p><strong>Mission Objective: </strong>Inject a script to pop up an <strong>alert()</strong> in the context of the application.Note: the application saves your posts so if you sneak in code to execute the alert, this level will be solved every time you reload it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-b70crynZ1HPQTpccIH7LA.png" /></figure><blockquote>Now type</blockquote><pre>&lt;img src=x onerror=alert(1) &gt;</pre><p><strong>Why does it work:</strong> The page will try to load the image from the source ‘<em>x’ </em>which will fail miserably and then trigger the <em>onerror</em> attribute’s code.</p><h3>[3/6] Level 3: That sinking feeling…</h3><p><strong>Mission Description: </strong>As you’ve seen in the previous level, some common JS functions are execution sinks which means that they will cause the browser to execute any scripts that appear in their input. Sometimes this fact is hidden by higher-level APIs which use one of these functions under the hood.The application on this level is using one such hidden sink.</p><p><strong>Mission Objective: </strong>As before, inject a script to pop up a JavaScript <strong>alert()</strong> in the app.Since you can’t enter your payload anywhere in the application, you will have to manually edit the address in the URL bar below.</p><p>Clicking on the different image tabs will load different set of pics.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hBdasqSFCTOFyjdZLcAHow.png" /></figure><p><strong>Solution: </strong>The application chooses the image tab based on first <a href="https://www.oho.com/blog/explained-60-seconds-hash-symbols-urls-and-seo">URL fragment</a>, (the hash after the URL). Passing a malicious fragment that will get inserted into the page will trigger the alert.</p><blockquote>Now type</blockquote><pre>1&#39; onerror=&#39;alert();//</pre><p>along the url <a href="https://xss-game.appspot.com/level3/frame#3">https://xss-game.appspot.com/level3/frame#3</a> will trigger the popup. (seeing the frame source, we find the parseInt happens for num.)</p><p><strong>Why does it work:</strong> The page’s source code shows that it gets the URL fragment and passes to a <em>choosetab </em>function.</p><p>We can fool this by closing the <em>src </em>attribute with a single quote, and then add an <em>onerror </em>attribute with an alert function<em> </em>like in the previous level, and commenting the ‘.jpg’ part with double slashes.</p><h3>[4/6] Level 4: Context matters</h3><p><strong>Mission Description</strong>: Every bit of user-supplied data must be correctly escaped for the context of the page in which it will appear. This level shows why.</p><p><strong>Mission Objective:</strong> Inject a script to pop up a JavaScript <strong>alert()</strong> in the application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ECW9RHQ0Urqx1fFrA541gQ.png" /></figure><p><strong>Solution</strong>: The index page shows a form which we can pass a number, that is passed to the timer page which function is just to count the number we passed in seconds and then redirect us back to the beginning. We can fool its timer function to execute arbitrary code, since it is straightly added to the page.</p><blockquote>Now type</blockquote><pre>3&#39;**alert());//</pre><h3>[5/6] Level 5: Breaking protocol</h3><p><strong>Mission Description: </strong>Cross-site scripting isn’t just about correctly escaping data. Sometimes, attackers can do bad things even without injecting new elements into the DOM.</p><p><strong>Mission Objective: </strong>Inject a script to pop up an <strong>alert()</strong> in the context of the application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_oLpZjb_-hdV8dLgZj35mw.png" /></figure><p><strong>Solution: </strong>After hitting the next link, you will go to the <em>confirm </em>page, that will redirect you to the beginning in a given time. But looking at the <em>confirm’s </em>source code, we see that it also accepts the next parameter, which is used to redirect you to its given value. We can then, again, mess with this.</p><blockquote>Now type</blockquote><pre>javascript:alert(1);</pre><h3>[6/6] Level 6: Follow the 🐇</h3><p><strong>Mission Description: </strong>Complex web applications sometimes have the capability to dynamically load JavaScript libraries based on the value of their URL parameters or part of <strong>location.hash</strong>.</p><p>This is very tricky to get right — allowing user input to influence the URL when loading scripts or other potentially dangerous types of data such as <strong>XMLHttpRequest</strong> often leads to serious vulnerabilities.</p><p><strong>Mission Objective: </strong>Find a way to make the application request an external file which will cause it to execute an <strong>alert()</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AyVC0gNxcqsqotZ29_o7_Q.png" /></figure><p><strong>Solution:</strong> The page adds a script tag with the <em>src </em>attribute pointing to the first URL fragment’s value. But, before doing so, it evaluates if the fragment begins with the ‘http’ or ‘https’ words, to prevent us from loading external files. But we can bypass this validation by omitting the ‘http’ protocol. For this solution I am using this command :</p><blockquote>Now type</blockquote><pre>data:javascript,alert(‘XSS’)</pre><h3>Congratulations…</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cJ1Ti3cfPAL9xhcL5gl4TQ.png" /></figure><p>So we have completed the challenge , Hope you enjoyed the write-up <strong>Thanks for reading!</strong></p><blockquote><strong><em>GOOD BYE</em></strong></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=088137a4ce69" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>