<?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 TECNO Security on Medium]]></title>
        <description><![CDATA[Stories by TECNO Security on Medium]]></description>
        <link>https://medium.com/@security.tecno?source=rss-24695556bc50------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*haW-_nd4erDM0Ls3E5AIZw.png</url>
            <title>Stories by TECNO Security on Medium</title>
            <link>https://medium.com/@security.tecno?source=rss-24695556bc50------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 23:17:51 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@security.tecno/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[Security Vulnerability in Hidden Parameters: IDOR Attack on Mighty App Payment Page]]></title>
            <link>https://medium.com/@security.tecno/security-vulnerability-in-hidden-parameters-idor-attack-on-mighty-app-payment-page-e01ea2f2dc48?source=rss-24695556bc50------2</link>
            <guid isPermaLink="false">https://medium.com/p/e01ea2f2dc48</guid>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[bugs]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[apps]]></category>
            <category><![CDATA[hacking]]></category>
            <dc:creator><![CDATA[TECNO Security]]></dc:creator>
            <pubDate>Fri, 09 May 2025 08:52:44 GMT</pubDate>
            <atom:updated>2025-05-09T08:52:44.429Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ziRJbW_jXZXrzHo4T_VpQA.png" /></figure><p>By <a href="https://medium.com/u/b74be475b332">Rashedul Islam</a></p><h3>1. Summary of the Issue</h3><p>In this write-up, I’ll share an IDOR vulnerability found on the Bxxxxxxx Web App. The impact of that issue was, it prevented victims from running music promotion campaigns that may lead to direct revenue loss of Bxxxxxxx. Here we’ll see how an IDOR can directly affect business. As a bonus, I’ll share a tool for the automation of this task for a bigger project/web application. Now we will focus on what the IDOR is.</p><h3>2. IDOR Overview</h3><p>Insecure Direct Object Reference is widely known as IDOR in the bug bounty industry. Its severity can be low to critical. For instance, If you can reset the password for the highly privileged user account e.g., admin, and later you can do the most sensitive actions abusing the account on the server, it can be flagged as even Critical. The case might be different in the context of the evaluated Apps.</p><p>Before giving the official definition I want to share mine.</p><p>“If a malicious user can create, read, update or delete any object on behalf of a victim, just by any guessable character on an application, it is an IDOR.”</p><p><strong>Example: </strong>POST request for deleting your playlist.</p><pre>```<br>POST /playlist/delete HTTP/2<br>Host: Bxxxxxxx.com<br>Cookie: YOUR COOKIE HERE<br>Content-Type: application/x-www-form-urlencoded<br><br>id=123<br>```</pre><p>The below POST request will delete the victim’s playlist which id is `124` if the app is vulnerable.</p><pre>```<br>POST /playlist/delete HTTP/2<br>Host: Bxxxxxxx.com<br>Cookie: YOUR COOKIE HERE<br>Content-Type: application/x-www-form-urlencoded<br><br>id=124<br>```</pre><p>If you can perform “CRUD” operations on a web app that isn’t publicly available, you may treat it as a security vulnerability.</p><p><strong>CRUD Operation Means:</strong></p><p>C = Create</p><p>R = Read</p><p>U = Update</p><p>D = Delete</p><p><strong>Now it’s time to offer an official definition.</strong></p><p>According to OWASP, Insecure Direct Object Reference (IDOR) is a vulnerability that arises when attackers can access or modify objects by manipulating identifiers used in a web application’s URLs or parameters. It occurs due to missing access control checks, which fail to verify whether a user should be allowed to access specific data.</p><h3>3. Vulnerability Discovery Process</h3><p>When I was analyzing the Bxxxxxxx, I chose the “Artist Panel” where an artist can do some extra actions. The reason for doing that, only a few researchers had that type of account. My methodology is to follow the ‘Blue Ocean Strategy’ in the bug bounty industry to find bugs that fewer people have tested. If you follow the trick, there is a huge chance that your bugs will not be duplicated. This is my real-life experience.</p><p><strong>Music Promotion:</strong> When I navigated to the dashboard of an artist account user, I found that there is an option by which an artist can boost their music, like boosting a video on YouTube or boosting a post on Facebook.</p><h4>3.1 What was the Flow</h4><p>When I chose to run a music promotion campaign, I filled out all the required information. The interesting page was the last page, which was the payment page. Actually, the last page was vulnerable to IDOR. There were 2 options for paying.</p><p><strong>How would you like to pay?</strong></p><p>① Digital Payment (PayPal)</p><p>② Bank Transfer (Indeed, it was the affected component)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/795/1*yXS7Ny-v8FFec4-MEER-Xw.png" /></figure><p><strong>Affected Request:</strong></p><p><a href="https://android.bxxxxxxxmusic.com/Bxxxxxxxer/bfa/package/order/updatePaymentPhoto?sessionID=YOUR-SESSION-ID&amp;imei=IMEI-VALUE&amp;channel=WEB">https://android.Bxxxxxxxmusic.com/Bxxxxxxxer/bfa/package/order/updatePaymentPhoto?sessionID=YOUR-SESSION-ID&amp;imei=IMEI-VALUE&amp;channel=WEB</a> [POST Request]</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/794/1*iJeeBiy8X0q-OrX0zvtp4Q.png" /></figure><h4>3.2 What Developer Missed There</h4><p>In a broader sense there was no access control (AC) check. Developers assumed that as a user reached this page, he must be authorized to perform this. They thought of it in a linear method. But an attacker can issue this request directly as the particular endpoint is stateless.</p><h4>3.3 How I Exploited</h4><p>The exploitation was very simple. Actually complexity of IDOR exploiting is most of the cases easy but impacts are high. Here I just replaced the vulnerable parameter `orderId` value with the victim’s orderId as it is incremental and very easy to guess.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/803/1*-LSh1b967hbbxdRLg35yPQ.png" /></figure><h4>3.4 What Happened to Victim’s End</h4><p>State of a Victim before Attack:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/807/1*21F0yZCwiPGQutzu7roWrw.png" /></figure><p>After exploitation, the victim artist saw that his ‘Upload’ button for payment disappeared immediately. As the server thought that the victim user just uploaded his payment proof so this button was no longer needed for him. Actually the victim didn’t upload that from his end.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/802/1*TqODujqkCJhI96OpNXwPgw.png" /></figure><h3>4. Vulnerability Impacts</h3><h4>4.1 Replace Payment Proof to Prevent Running Campaign</h4><p>An attacker could replace the victim’s payment proof image so that he can’t verify his transaction which results in failure to run his promotional campaign.</p><h4>4.2 Stop Victims from Uploading Proof</h4><p>While a victim user pays through Bank Transfer, in the meantime an attacker could upload a dummy screenshot on behalf of the victim. It was easy to conduct this attack by running a continuous automation script loop, guessing the incremental future ‘orderId’s. So the victim user would see the ‘Upload’ button vanished in the form and he would not be able to upload his legit payment proof anymore.</p><h3>5. Mitigation Steps</h3><p>As stated earlier, exploitation of IDOR vulnerability is simple and so is the mitigation. Here the developers should put an access control system to check whether the authenticated user has such an `orderId`. If yes, update the payment proof for that particular user otherwise don’t. Very straightforward, huh.</p><h3>6. Best Practices for Developers</h3><h4>6.1 Access Control for Every Object</h4><p>Check every request where a user tries to access an object. Some web frameworks may offer such security.</p><h4>6.2 Complex Identifiers</h4><p>Instead of using guessable numerical ID, consider using complex identifiers.</p><p>Use a random ID. You can achieve this by putting a random identifier in the database and adding a new column. Using UUID can be another good choice.</p><h3>7. Tip for Hackers</h3><p>Create Privileged Account: Creating a privileged account unveils some functionalities which have less people access to it. Might be you’re the first person to test it. If it’s the case you’ll have more functionalities to test for and can earn more rewards.</p><h3>8. [Additional Benefits] Automation Tool</h3><p>Hackers who love automations for these tedious tests prefer making automation tools so that they can focus on more creative attacks.</p><h4>8.1 About the Burp Suite App Store</h4><p>Like Google Chrome extensions, Burp Suite also has such a store where you can find some add-ons which can help you to do some additional tasks. It works like a Shop where additional supporting tools for specific tasks can be purchased or freely downloaded. Luckily this awesome tool is freely available to use till today. Let’s grab the link and download it immediately.</p><h4>8.2 Installation Process</h4><p><strong>Autorize Link: </strong><a href="https://portswigger.net/bappstore/f9bbac8c4acf4aefa4d7dc92a991af2f">https://portswigger.net/bappstore/f9bbac8c4acf4aefa4d7dc92a991af2f</a></p><p>NB. You can download directly from the above link and install manually or you can install from Burp via navigating ‘Extensions’ tab through ‘BApp Store’ using the search button in the right corner. I’d suggest choosing the second method.</p><p>By the way, this ‘Autorize’ extension is written in Python and using python extensions on Burp Suite requires ‘Jython’. Please download ‘Jython Standalone JAR’ as a requirement from here at <a href="https://www.jython.org/download.html.">https://www.jython.org/download.html.</a></p><p>From ‘Extension settings’ you have to select the ‘Jython Standalone JAR’ file location (Usually your ‘Download’ folder, the location where the file was just downloaded).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/799/1*QULe2CMZcJFknw-RWaUkrg.png" /></figure><h4>8.3 How the Tool Works</h4><p>The tool actually echos our HTTP requests. In particular, it reissues our HTTP requests three times. 1st one for base request, second one on behalf of the low privileged users and the last one for the unauthenticated condition.</p><p><strong>Example POST Request:</strong></p><p>I’m sharing 3 examples for you so that you can understand better.</p><p><strong>1st Request: </strong>(Base)</p><pre>```<br>POST /playlist/update/123/ HTTP/2<br>Host: Bxxxxxxx.com<br>Cookie: VICTIM COOKIE HERE<br>Content-Type: application/x-www-form-urlencoded</pre><pre>name=Favorite_Songs<br>```</pre><p><strong>2nd Request: </strong>(For testing authorization validation — Issued by the ‘Autorize’ tool)</p><pre>```<br>POST /playlist/update/123/ HTTP/2<br>Host: Bxxxxxxx.com<br>Cookie: ATTACKER COOKIE HERE<br>Content-Type: application/x-www-form-urlencoded<br><br>name=Name_Updated_by_Attacker<br>```</pre><p><strong>3rd Request:</strong> (Unauthenticated via removing the cookies)</p><pre>```<br>POST /playlist/update/123/ HTTP/2<br>Host: Bxxxxxxx.com<br>Cookie: BLANK (NO COOKIE HERE for testing unauthenticated modification)<br>Content-Type: application/x-www-form-urlencoded<br><br>name=Name_Updated_without_Login<br>```</pre><h4>8.4 Configuring the Tool</h4><p>Navigate to the ‘Autorize’ tab after installing. Put the low privileged/attacker user cookie in the empty box positioned in the middle. Then turn on the ‘Autorize’ tool. It’s time to browse your target site. Don’t forget to add your target site ‘In Scope’ in Burp. By observing the ‘Original Length’ and ‘Modified Length’, you can decide whether the ‘Authorization Status’ flag is false positive or not.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/803/1*Nh25j2C8UUwJvmpykkUr7w.png" /></figure><p>For practical demonstration, the @stokfredrik video helped me a lot in this case. I’ve shared the link so that you can give it a check for better understanding — <a href="https://www.youtube.com/watch?v=3K1-a7dnA60">https://www.youtube.com/watch?v=3K1-a7dnA60</a>.</p><p><strong>Resources （参考）:</strong></p><p>① <a href="https://portswigger.net/web-security/access-control">Access control vulnerabilities and privilege escalation</a></p><p>② <a href="https://cheatsheetseries.owasp.org/cheatsheets/Insecure_Direct_Object_Reference_Prevention_Cheat_Sheet.html">Insecure Direct Object Reference Prevention Cheat Sheet</a></p><p>③ <a href="https://owasp.org/Top10/A01_2021-Broken_Access_Control/">A01:2021 — Broken Access Control</a></p><p>Article resouce: <a href="https://security.tecno.com/SRC/blogdetail/418?lang=en_US">Security Vulnerability in Hidden Parameters: IDOR Attack on Mighty App Payment Page</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e01ea2f2dc48" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[[Vulnerability Campaign] Protect TECNO devices]]></title>
            <link>https://medium.com/@security.tecno/vulnerability-campaign-protect-tecno-devices-070e2324175a?source=rss-24695556bc50------2</link>
            <guid isPermaLink="false">https://medium.com/p/070e2324175a</guid>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[report]]></category>
            <dc:creator><![CDATA[TECNO Security]]></dc:creator>
            <pubDate>Mon, 21 Apr 2025 06:57:51 GMT</pubDate>
            <atom:updated>2025-04-21T06:57:51.626Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MrW5NYJEyhV2ZiyZak5XFw.jpeg" /></figure><p>⁉️Are you a white hat good at finding Android phone security vulnerabilities?</p><p>‼️Submit valid critical &amp; high-risk ones, and the reward will be doubled!</p><h4><strong>1. Campaign Time</strong></h4><p>Time: April 20th — 24:00 May 31, 2025 (UTC+8)</p><h4><strong>2. Bounty Rewards</strong></h4><p>* <strong>Cash Rewards</strong></p><p>· Critical severity: $7000~$20000</p><p>· High severity: $4000~$7000</p><p>* <strong>Additional Incentives</strong></p><p>· <strong>One-Shot device reimbursement</strong>: Researcher can get equipment expense reimbursement for any valid vulnerability during this campaign, refer to <a href="https://security.tecno.com/SRC/blogdetail/34?lang=en_US">Reimbursement Requirements</a> here. Please note that the campaign reports will not be calculated into qualfications of our normal Phone Reimbursement Plan V2.0.</p><p>· <strong>CVE certification</strong>: After the vulnerability is fixed, a CVE number will be awarded, and the TECNO Security Response Center (SRC) will publicly thank you to enhance the industry influence.</p><h4><strong>3. Participation Guide</strong></h4><p>· Submit through the official SRC website <strong>with the report title prefix-”2025 device”.</strong></p><p>· Feedback preliminary results within 7 working days, complex vulnerabilities will be handled according to specific circumstances.</p><p>· Scoring rules: <a href="https://security.tecno.com/SRC/blogdetail/241?lang=en_US">TECNO Device Security Vulnerability Reward Rules V4.4</a></p><p>* Additional downgrade scenario supplement (may reduce the reward level):</p><p>✅ The attack requires multiple cooperations or complex operations of the victim;</p><p>✅ Only affects specific scenarios or a small number of devices;</p><p>✅ Requires special permissions/privileged accounts authorized by TECNO.</p><p><strong>Activity Details:</strong><a href="https://security.tecno.com/SRC/blogdetail/408?lang=en_US"> [Vulnerability Campaign] Protect TECNO devices</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=070e2324175a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[(Ⅱ)【Report Review】2024 OWASP Mobile Top 10 Risks]]></title>
            <link>https://medium.com/@security.tecno/%E2%85%B1-report-review-2024-owasp-mobile-top-10-risks-216b6cf6b2e3?source=rss-24695556bc50------2</link>
            <guid isPermaLink="false">https://medium.com/p/216b6cf6b2e3</guid>
            <category><![CDATA[application]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[owasp]]></category>
            <dc:creator><![CDATA[TECNO Security]]></dc:creator>
            <pubDate>Fri, 11 Apr 2025 08:40:10 GMT</pubDate>
            <atom:updated>2025-04-11T08:40:10.121Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vgAvw5pYYevoDNReQbMaPQ.png" /></figure><p>By TECNO Security team</p><p><strong>Article type: </strong>Security Technology Research</p><p><strong>Article difficulty: </strong>⭐⭐</p><p>In the previous article, <a href="https://security.tecno.com/SRC/blogdetail/405?lang=en_US">(Ⅰ)【Report Review】2024 OWASP Mobile Top 10 Risks</a>, we provided a detailed analysis of the first five security risks: Improper Credential Usage, Inadequate Supply Chain Security, Insecure Authentication/Authorization, Insufficient Input/Output Validation, and Insecure Communication.</p><p>Today, let us dive into the remaining five critical security risks: Insufficient Privacy Controls, Inadequate Binary Protections, Misconfiguration Issues, Insecure Data Storage, and Weak Cryptographic Measures. By understanding these risks, we can better protect mobile applications and enhance overall security practices.</p><h3>M6: Inadequate Privacy Controls</h3><p>In mobile applications, “privacy controls” refer to mechanisms for managing permissions related to the collection, use, storage, and sharing of personal data by users or the applications themselves. The primary goal is to empower users to control the flow of their data and limit applications from excessively accessing sensitive information. Privacy controls are crucial for protecting Personally Identifiable Information (PII), such as names, addresses, credit card information, emails, IP addresses, health information, religious beliefs, sexual orientation, and political views.</p><p>PII typically originates from sources that are well-protected, such as application sandboxes, network communications with servers, application logs, and backups. Some sources, although less protected, remain difficult to access, such as URL query parameters and clipboard content. Despite these protections, PII is commonly stored, processed, and transmitted through mobile devices, and there are numerous ways to extract or tamper with it. Accessing PII often requires breaching other security layers, and attackers might intercept network communications, access file systems, the clipboard, or logs, or use Trojans to gain control of mobile devices and create backups for analysis or attacks.</p><h4><strong>↓ Potential Security Risks</strong></h4><p>Data traceability risks, System operational risks, Legal and regulatory risks, Financial and reputational losses, PII misuse risks</p><h4><strong>↓ Risk Scenarios</strong></h4><p><strong>🔺Excessive Data Collection: </strong>Many applications may collect and process PII beyond their functional needs, making them targets for attacks without a business requirement.</p><p><strong>🔺Privacy Violation Risks: </strong>Improper handling of PII by developers. PII should always be handled considering the possibility of attackers accessing communication and storage media.</p><p><strong>🔺Improper Information Handling: </strong>Including PII in report logs, error messages, or third-party libraries, using PII in URL query parameters, or failing to configure personal data explicitly in backups can lead to privacy leakage risks.</p><p><strong>↓ Security Measures: </strong>To minimize the quantity and type of PII processed, consider the following:</p><p><strong>● Ensure Data Necessity: </strong>Do not process unnecessary data such as names, gender, addresses, and ages.</p><p><strong>● Information Obfuscation: </strong>Replace sensitive information with non-essential data, such as using approximate data instead of precise details.</p><p><strong>● Reduce Information Processing Frequency:</strong> Lower the frequency of processing sensitive information, such as refreshing geographic location data less frequently.</p><p><strong>● Information Anonymization: </strong>Use techniques like hashing or adding noise to obfuscate or anonymize sensitive information.</p><p><strong>● Immediate Data Storage: </strong>Delete critical data promptly after use within a specified period.</p><p><strong>● Data Usage Consent: </strong>Obtain user consent and inform them of risks before using sensitive information.</p><h3>M7: Insufficient Binary Protections</h3><p>In mobile applications, “binary” generally refers to the low-level data format that computers process directly, consisting of machine language made up of 0s and 1s. This includes the application itself (compiled binary files), data transmission (binary format), and low-level operations (direct binary data manipulation).</p><p>Attackers may target binary files to extract confidential information, as these files can contain sensitive data, such as commercial API keys or hard-coded encryption keys. The code within binary files might also include critical business logic or pre-trained AI models — valuable information that can serve as entry points for attacks. Additionally, attackers could manipulate application binaries to access paid features for free or bypass other security checks. In extreme cases, popular apps might be modified to include malicious code and distributed through third-party app stores or under new names, exploiting unprepared users.</p><h4><strong>↓ Potential Security Risks</strong></h4><p>Information leakage, Disruption of backend systems, Commercial abuse, Intellectual property loss, Reputation damage.</p><h4><strong>↓ Risk Scenarios</strong></h4><p><strong>🔺Reverse Engineering:</strong> Attackers use decompilation tools (e.g., Jadx, Hopper) to retrieve source code directly, analyze encryption algorithms, API keys, and business logic vulnerabilities, potentially leading to data leakage or feature abuse.</p><p><strong>🔺Code Tampering and Pirated Distribution: </strong>Attackers modify payment verification logic (e.g., bypassing in-app purchases), insert ad SDKs or Trojans, and re-sign the tampered app to release it on third-party platforms, damaging user trust and developer revenue.</p><p><strong>🔺Exposed Resource Files: </strong>Configuration files storing database passwords in plaintext, uncompressed Lua scripts, or game assets being directly extracted.</p><p><strong>🔺Function Hook Attacks: </strong>Implementing man-in-the-middle attacks by hooking key functions (e.g., SSL handshake), or tampering with face recognition SDK return results to forge identity authentication.</p><p><strong>🔺Repackaging and Update Hijacking: </strong>Malicious apps masquerading as official versions to trick users into downloading, applying excessive permissions to steal contacts, SMS, or even encrypt user files for ransom.</p><p><strong>🔺Integrity Check Failures: </strong>Applications are unable to detect if they have been modified (e.g., signature verification bypassed), leading to persistent malware presence like ransomware.</p><h4><strong>↓ Defensive Measures</strong></h4><p><strong>● Prevent Reverse Engineering: </strong>Employ techniques to make understanding the application’s binary files more difficult, such as using obfuscation tools, native compilation (iOS and Android), interpreters, or nested virtual machines.</p><p><strong>● Enhance Security Mechanisms: </strong>Apply code obfuscation, enforce backend security checks locally, and conduct integrity checks.</p><p><strong>● Integrity Checks: </strong>Perform integrity checks at application startup to detect redistribution and modification of binary files, proactively prevent unauthorized copies.</p><p><strong>● Continuous Monitoring: </strong>Establish APK/IAP file hash comparison mechanisms to promptly remove counterfeit apps.</p><h3>M8: Security Misconfiguration</h3><p>Security configuration errors in mobile applications refer to improper configuration of security settings, permissions, and controls, which expose vulnerabilities and trigger security risks. Common types of security configuration vulnerabilities include: insecure default settings, improper access control, weak encryption or hashing algorithms, lack of secure communication, unprotected storage, insecure file permissions, and improperly configured session management.</p><p>Due to time constraints, lack of awareness, or human errors during the development process, security configuration errors are common in mobile applications. <strong>Examples of security configuration errors are as follows:</strong></p><p>🔺Failed to disable the debugging function in the released version, which may expose sensitive information.</p><p>🔺Allow insecure Communication Protocols (such as HTTP) instead of forcing secure communication through HTTPS.</p><p>🔺The default username and password have not been changed, providing attackers with easy access.</p><p>🔺Insufficient access control allows unauthorized users to perform privileged operations.</p><h4><strong>↓ Potential security risks</strong></h4><p>Unauthorized access to sensitive data, account hijacking or impersonation, data leakage, backend system compromise, financial and reputational damage, etc.</p><h4><strong>↓ Risk Scenarios</strong></h4><p><strong>🔺Unreviewed default settings: </strong>Use default configurations without reviewing security settings, permissions, and default credentials.</p><p><strong>🔺Lack of secure communication: </strong>using unencrypted or weakly encrypted communication channels.</p><p><strong>🔺Weak or missing access control: </strong>Allowing unauthorized access to sensitive functions or data.</p><p><strong>🔺Failed to update or patch:</strong> Necessary security updates or patches have not been applied.</p><p><strong>🔺Improper storage of sensitive data: </strong>Storing sensitive data in plaintext or weakly protected format.</p><p><strong>🔺Insecure file provider path setting:</strong> File content only for internal use is exposed by the provider to other applications or users, which may lead to sensitive data leakage or unauthorized resource access.</p><p><strong>🔺Export Activity Risk:</strong> The app exports activities for internal use or browsing only, exposing additional Attack Surface.</p><h4><strong>↓ Defensive measures</strong></h4><p><strong>● Secure default configuration: </strong>Ensure that default settings and configurations are properly protected, without exposing sensitive information or providing unnecessary permissions.</p><p><strong>● Default credentials: </strong>Avoid hardcoding default credentials.</p><p><strong>● Insecure permissions: </strong>Avoid storing application files with overly permissive permissions (such as globally readable and/or globally writable).</p><p><strong>● Principle of Least Privilege: </strong>Only request the functional permissions required for the normal operation of the application.</p><p><strong>● Secure network configuration: </strong>prohibit plaintext traffic and use certificate locking as much as possible.</p><p><strong>● Disable debugging: </strong>Disable the debugging function in the released version of the application.</p><p><strong>● Disable backup mode (Android): </strong>By disabling backup mode on Android devices, application data can be prevented from being included in device backups.</p><p><strong>● Restrict application attacks on Surface:</strong> Only export necessary activities, content providers, and services.</p><h3>M9: Insecure Data Storage</h3><p>There is a large amount of data in mobile applications. Improper storage/processing of this data may lead to user privacy leaks, data tampering, and even legal risks. Common data storage risks include: storing sensitive data in plaintext, insecure storage locations, unencrypted databases, log leaks of sensitive information, and backup data exposure.</p><p><strong>Insecure mobile data storage may expose multiple attack routes, which are as follows:</strong></p><p><strong>🔺</strong>Unauthorized access to the device’s file system through physical or remote means.</p><p><strong>🔺</strong>Intercept data transmissions using weak encryption or lack thereof, and exploit malicious software or applications installed on the device.</p><p><strong>🔺</strong>Using jailbreak or cracked devices to bypass security measures and directly access sensitive data.</p><p><strong>🔺</strong>Social engineering techniques: Inducing users to provide access to their data or manipulate application behavior.</p><h4><strong>↓ Potential security risks</strong></h4><p>data breaches, personal account breaches, data tampering and integrity issues, unauthorized access, compliance violations, brand reputation damage, etc.</p><h4><strong>↓ Risk Scenarios</strong></h4><p><strong>🔺Lack of access control: </strong>Insufficient access control within the application may allow unauthorized users or attackers to access sensitive data stored in the device or application database.</p><p><strong>🔺Insufficient encryption: </strong>Incorrect encryption of sensitive data may result in inadvertent data leakage when attackers access storage locations.</p><p><strong>🔺Unintentional data exposure:</strong> Mobile applications may inadvertently expose sensitive data through application logs, error messages, or debugging functions, allowing unauthorized personnel to view or capture sensitive information.</p><p><strong>🔺Improper session management: </strong>Weak session management may lead to unintentional data leakage. If session tokens or user authentication information are not properly protected or managed, they may be intercepted or tampered with, allowing unauthorized access to sensitive data.</p><p><strong>🔺Insufficient input validation: </strong>Insufficient input validation and data cleaning may lead to unintentional data leakage. Attackers may exploit this vulnerability to inject malicious scripts or retrieve sensitive data by manipulating input fields.</p><p><strong>🔺Cloud storage configuration error:</strong> If a mobile application uses cloud storage services to store data and the configuration management is improper or incorrect, it may lead to unintentional exposure or unauthorized access to the stored data.</p><p><strong>🔺Third-party library vulnerability:</strong> Insecure third-party libraries used in mobile applications may have vulnerabilities, leading to unintentional data leakage. Attackers can exploit these vulnerabilities to obtain unauthorized sensitive information.</p><p><strong>🔺Unexpected data sharing: </strong>Improper handling of data sharing functions within the application may lead to unintentional data leakage. If sensitive data is shared with people who should not receive it, or the sharing process is not adequately protected, it may lead to privacy violations.</p><h4><strong>↓ Defensive measures</strong></h4><p><strong>● Use strong encryption:</strong> Implement strong encryption algorithms and practices to protect static and transmitted data. Use industry-standard encryption algorithms and ensure secure storage and management of encryption keys.</p><p><strong>● Secure data transmission:</strong> Use secure communication protocols (such as HTTPS, SSL/TLS) to protect the data transmitted between mobile applications and backend servers, avoiding sending sensitive data through insecure channels.</p><p><strong>● Implement a secure storage mechanism: </strong>Store sensitive data in a secure storage location that unauthorized users cannot access.</p><p><strong>● Implement appropriate access control: </strong>Implement strong access control to restrict unauthorized access to sensitive data.</p><p><strong>● Verify input and clean data:</strong> Implement input validation and data cleaning techniques to prevent injection attacks and ensure that only valid and expected data is stored.</p><p><strong>● Apply secure session management:</strong> Implement secure session management techniques, such as using randomly generated session tokens, setting appropriate session timeouts, and securely storing client and server session data.</p><p><strong>● Regularly update and patch dependencies:</strong> Keep the latest versions of all libraries, frameworks, and third-party dependencies, and regularly apply security patches and updates provided by vendors.</p><p><strong>● Keep information updated: </strong>Stay informed of the latest security threats and vulnerabilities in the mobile application area, and respond to new risks promptly.</p><h3>M10: Insufficient Cryptography</h3><p>If mobile applications use insecure encryption measures, encryption may become useless and user privacy and security may be seriously threatened. Some core encryption scenarios are as follows: data transmission encryption, local storage encryption, memory temporary data protection, code and resource confusion, etc.</p><p>Attackers may use various techniques to exploit insecure encryption vulnerabilities, such as password attacks, brute force attacks, or side-channel attacks; they may also use weak encryption algorithms or insufficient key lengths, poor key management practices, improper handling of encryption keys, insecure random number generation, incorrect implementation of encryption protocols, vulnerabilities in encryption libraries or frameworks, and other related weaknesses to bypass encryption, perform password attacks, tamper with data, or obtain unauthorized access to encrypted information.</p><h4><strong>↓ Potential security risks</strong></h4><p>data breaches, loss of intellectual property, compliance and legal consequences, loss of property, etc.</p><h4><strong>↓ Risk Scenarios</strong></h4><p><strong>🔺Weak encryption algorithm: </strong>Using known and outdated weak encryption algorithms cannot effectively protect sensitive data.</p><p><strong>🔺Insufficient key length:</strong> Insufficient key length or easy guessing will weaken encryption strength.</p><p><strong>🔺Improper key management: </strong>Improper key management leads to unauthorized access risks.</p><p><strong>🔺Encryption implementation flaw: </strong>There are flaws in the encryption/decryption process itself that may lead to bypassing or weakening encryption protection.</p><p><strong>🔺Insecure data/encryption key storage: </strong>Insecure encryption key storage can easily be bypassed or decrypted, leading to data leakage.</p><p><strong>🔺Lack of secure transport layer: </strong>Encrypted data transmission does not implement secure transmission protocols, which may lead to data interception or tampering.</p><p><strong>🔺Insufficient verification and authentication: </strong>Insufficient verification and authentication by all parties involved in the encryption process may weaken overall security.</p><p><strong>🔺Lack of Salting:</strong> Salting refers to the process of adding random data to the input before hashing. Insecure hashing functions may not support salting or use weak salting methods, making password hashing vulnerable to pre-calculation tables or brute force attacks.</p><h4><strong>↓ Protective measures</strong></h4><p><strong>● Use strong encryption algorithms: </strong>Implement widely accepted and secure encryption algorithms, maintain synchronization with cutting-edge encryption standards, and avoid using deprecated or weakened algorithms.</p><p><strong>● Ensure sufficient key length: </strong>Choose an appropriate encryption key length to ensure encryption strength; follow industry-recommended key lengths for the specific encryption algorithm used.</p><p><strong>● Follow secure key management practices: </strong>use secure key management techniques to securely store encryption keys; protect keys from unauthorized access, including restricting access to only authorized personnel, encrypting keys, and ensuring secure key distribution mechanisms.</p><p><strong>● Properly implement encryption: </strong>Carefully implement encryption and decryption processes in mobile applications, follow established encryption libraries and frameworks; avoid using custom encryption implementations that are prone to errors or vulnerabilities.</p><p><strong>● Secure storage of encryption keys: </strong>Ensure that encryption keys are securely stored on mobile devices, avoiding storing keys in plaintext or in easily accessible locations.</p><p><strong>● Use secure transport layer protocols: </strong>Use secure transport layer protocols such as HTTPS (Secure HTTP) to transmit encrypted data over the network and implement appropriate certificate verification.</p><p><strong>● Verification and authentication: </strong>Implement strong verification and authentication mechanisms to verify the integrity and authenticity of all parties involved in the encryption process.</p><p><strong>● Regularly update security measures:</strong> Pay attention to security updates, patches, and suggestions from encryption libraries, frameworks, and platform providers, and keep mobile applications and underlying encryption components updated to address any identified vulnerabilities or weaknesses.</p><p><strong>● Comprehensive security testing: </strong>Conduct comprehensive security testing, including password vulnerability assessment, penetration testing, and code review; identify and fix any weaknesses or vulnerabilities discovered during the testing process.</p><p><strong>● Follow industry standards and best practices: </strong>Focus on industry standards and best practices related to encryption.</p><p><strong>● Use strong hash function: </strong>Choose widely recognized and cryptographically secure hash functions to resist attacks and provide high-level security.</p><p>● <strong>Implement salting: </strong>Hash passwords always use strong random salts to add an extra layer of security.</p><p><strong>● Use key derivation functions (KDFs): </strong>Use encryption keys specifically designed for secure derivation to ensure higher security features, such as iteration counting, to slow down brute force attacks.</p><p>The “Top 10 Risks of Mobile Security in 2024 OWASP” emphasizes the urgent security risks currently faced by mobile applications, and emphasizes the importance of taking proactive measures to protect user data and maintain application integrity. By understanding security risks (from improper credential use to inadequate privacy controls) and implementing best practices (such as secure coding, regular security evaluations, and effective data management), developers and security teams can not only reduce latent risks but also enhance user trust in the mobile application ecosystem. <strong>Security researchers focus on the latest and most common top ten security risks to help raise awareness and help find security vulnerablilities in products.</strong></p><p>— — END — —</p><p>Article resource: <a href="https://security.tecno.com/SRC/blogdetail/407?lang=en_US">(Ⅱ)【Report Review】2024 OWASP Mobile Top 10 Risks</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=216b6cf6b2e3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[(Ⅰ)【Report Review】2024 OWASP Mobile Top 10 Risks]]></title>
            <link>https://medium.com/@security.tecno/%E2%85%B0-report-review-2024-owasp-mobile-top-10-risks-0a3df63284bc?source=rss-24695556bc50------2</link>
            <guid isPermaLink="false">https://medium.com/p/0a3df63284bc</guid>
            <category><![CDATA[owasp]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <dc:creator><![CDATA[TECNO Security]]></dc:creator>
            <pubDate>Thu, 10 Apr 2025 07:59:28 GMT</pubDate>
            <atom:updated>2025-04-10T08:00:43.485Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iauJGZjmg0tppyLBQdwtcQ.png" /></figure><p>By TECNO Security team</p><p><strong>Article type: </strong>Security Technology Research</p><p><strong>Article difficulty: </strong>⭐⭐</p><p><strong>Chapter content preview ↓↓↓</strong></p><p>M1: Improper Credential Usage</p><p>M2: Inadequate Supply Chain Security</p><p>M3: Insecure Authentication/Authorization</p><p>M4: Insufficient Input/Output Validation</p><p>M5: Insecure Communication</p><p>The rapid expansion of mobile applications has brought about security risks such as data collection violations, malicious data misuse, unlawful data acquisition, and malicious data dissemination. These security risks are prevalent in the current mainstream mobile application systems, posing serious threats to data security and personal information safety.</p><p>In 2024, OWASP (Open Web Application Security Project) released the latest version of its top ten security risks report for mobile application systems, marking the first update on mobile application system-related risks since 2016. This update places a particular emphasis on risks related to supply chain security and privacy protection. The report covers ten major risks in mobile application systems and provides detailed descriptions of security weaknesses, business impacts, risk scenarios, and preventive measures, offering a comprehensive security reference for mobile application developers and security professionals. Let’s delve into the relevant risks and protective measures together.</p><h3>M1: Improper Credential Usage</h3><p>In mobile applications, credentials refer to sensitive information used for identity verification or access authorization. Common types of credentials include API keys, database passwords, third-party service tokens, encryption keys, payment gateway credentials, biometric templates, backend server URLs, and user session tokens. When mobile applications use hard-coded credentials or credentials are improperly handled, it can lead to insecure credential management, posing significant security risks.</p><p><strong>Note: </strong>Hard-coded credentials refer to the practice of developers embedding sensitive authentication information (e.g., passwords, API keys, database connection strings) directly in the source code in plain text. This is equivalent to engraving your house key on the doorframe — an extremely dangerous practice.</p><p>Attackers can exploit vulnerabilities caused by hard-coded credentials or improper credential usage, such as gaining unauthorized access to sensitive functions in mobile applications through hard-coded credentials, or bypassing legitimate authentication by exploiting improperly validated or stored credentials.</p><h4><strong>↓ Potential Security Risks</strong></h4><p>Data leaks, Loss of user privacy, Fraudulent activities, Damage to reputation, Information theft, Unauthorized access to administrative functions and sensitive information</p><h4><strong>↓ Risk Scenarios</strong></h4><p><strong>🔺Hard-coded credentials:</strong> If mobile applications include hard-coded credentials in their source code or configuration files, it introduces a clear and significant security risk.</p><p><strong>🔺Insecure credential transmission:</strong> Credentials transmitted without encryption or over insecure communication channels may expose vulnerabilities.</p><p><strong>🔺Insecure credential storage:</strong> If user credentials are stored on the device in an insecure manner, it poses a security risk.</p><p><strong>🔺Weak user authentication:</strong> Relying on weak protocols or easily bypassed methods for user authentication can lead to security vulnerabilities.</p><h4><strong>↓ Security Measures</strong></h4><p><strong>● Avoid hard-coded credentials:</strong> Refrain from embedding credentials in the code or configuration files of mobile applications.</p><p><strong>● Handle user credentials securely: </strong>Always store, transmit, and validate user credentials in a secure manner. Use encryption for credential storage and transmission, and rely on strong authentication protocols.</p><h3>M2: Inadequate Supply Chain Security</h3><p>In mobile applications, the “supply chain” refers to all the processes, tools, and dependencies involved in the journey from development to user delivery. It can be understood as the “complete lifecycle of mobile application development and distribution,” including the development supply chain (code and components, toolchains, and cloud service dependencies) and the distribution supply chain (app store reviews, OTA update channels, and third-party download platforms).</p><p>Attackers can inject malicious code into the mobile application’s codebase or tamper with the code during the build process to insert backdoors, spyware, or other malicious software. Such actions allow attackers to steal data, monitor users, or even control mobile devices. Additionally, attackers may exploit vulnerabilities in third-party libraries, SDKs, vendors, or hard-coded credentials to gain unauthorized access to mobile applications or backend servers. This can lead to unauthorized data access or tampering, denial of service, or even complete takeover of the mobile application or device authentication mechanisms, particularly if multi-factor authentication (MFA) is absent or session management is inadequate.</p><p>Vulnerabilities related to inadequate supply chain security often stem from a lack of secure coding practices, insufficient code reviews, and inadequate testing. They may also arise due to insecure application signing and distribution processes, weaknesses in third-party software components or libraries, insufficient security controls for data, encryption, and storage, or exposure of sensitive data to unauthorized access.</p><h4><strong>↓ Potential Security Risks</strong></h4><p>Data breaches, Malware infections, Unauthorized access, System compromise, Economic losses, Reputation damage, Legal and regulatory consequences, Supply chain disruptions</p><h4><strong>↓ Risk Scenarios</strong></h4><p><strong>🔺Third-party component vulnerabilities:</strong> Third-party components (such as libraries or frameworks) may contain exploitable vulnerabilities. If mobile application developers fail to thoroughly review or update these components, the application may be susceptible to attacks.</p><p><strong>🔺Malicious insider threats:</strong> Malicious insiders (such as untrusted developers or vendors) may deliberately introduce vulnerabilities into the mobile application. This can occur if developers fail to implement adequate security controls and monitoring in the supply chain process.</p><p><strong>🔺Insufficient testing and validation: </strong>If mobile application developers fail to conduct thorough testing or validation of the application and the supply chain process, vulnerabilities may remain undetected, making the application more prone to attacks.</p><p><strong>🔺Lack of security awareness: </strong>Developers lacking adequate security awareness may fail to implement necessary controls to defend against supply chain attacks.</p><h4><strong>↓ Defensive Measures</strong></h4><p>Implement secure coding practices, code reviews, and testing throughout the mobile application development lifecycle to identify and eliminate vulnerabilities.</p><p>● Ensure secure application signing and distribution processes to prevent attackers from impersonating signatures and distributing malicious code.</p><p>● Use only trusted and verified third-party libraries or components to reduce the risk of vulnerabilities.</p><p>● Establish secure controls for application updates, patches, and version management to prevent attackers from exploiting vulnerabilities in the application.</p><p>● Use security testing, scanning, and monitoring to detect and respond to supply chain security incidents in a timely manner.</p><h3><strong>M3: Insecure Authentication/Authorization</strong></h3><p>In mobile applications, authentication and authorization are core mechanisms for ensuring the security of user data. Authentication is primarily used to verify the user’s identity, with common methods including account passwords, SMS verification codes, biometric authentication, and third-party login authorization. Authorization, on the other hand, is used to control the scope of resources a user can access, with common methods including role-based permissions, OAuth2.0 authorization, and dynamic permission requests.</p><p>If vulnerabilities in authentication or authorization mechanisms are discovered, attackers may launch attacks using their own devices or mobile malware in botnets. There are two main attack methods: one involves forging or bypassing authentication by directly submitting service requests to the backend server of the mobile application, bypassing direct interaction with the app; the other involves gaining control after successfully bypassing authentication and logging in as a legitimate user, then forcefully navigating to a vulnerable endpoint to execute administrative functions.</p><p>Insufficient authentication and authorization can have broad and significant technical impacts on the system, depending on the level of overprivileged functionality being exploited. For example, improper authorization of remote or local administrative functions could result in system damage or sensitive information leaks, with potentially severe consequences.</p><h4><strong>↓ Potential Security Risks</strong></h4><p>System damage, Sensitive information leaks, Privilege escalation, Compromised authentication logic.</p><h4><strong>↓ Risk Scenarios</strong></h4><p><strong>🔺Insecure Direct Object Reference (IDOR) vulnerabilities:</strong> The presence of IDOR vulnerabilities indicates that the code does not perform proper authorization checks.</p><p><strong>🔺Hidden endpoints:</strong> Developers may overlook authorization checks for backend hidden functions, assuming they will only be accessed by users with appropriate roles.</p><p><strong>🔺User role or permission transmission: </strong>If a mobile application transmits user roles or permissions to the backend system in requests, it could indicate insecure authorization.</p><p><strong>🔺Anonymous backend API execution: </strong>If the application can execute backend API service requests without providing an access token, this indicates insecure authentication.</p><p><strong>🔺Local storage of passwords or shared keys:</strong> If the application stores passwords or shared keys locally on the device, it is a sign of insecure authentication.</p><p><strong>🔺Weak password policy: </strong>Simplified password input processes may indicate insecure authentication.</p><p><strong>🔺Use of FaceID and TouchID: </strong>While features like FaceID or TouchID enhance convenience, improper use may lead to insecure authentication. It is critical to avoid weak configurations and strengthen security measures for both authentication and authorization.</p><h4><strong>↓ Defensive Measures</strong></h4><p><strong>● Avoid Weak Configurations:</strong></p><p>→ Avoid reducing the number of authentication factors for mobile applications compared to web applications.</p><p>→ Handle all authentication requests on the server side whenever possible.</p><p>→ Do not store user passwords on the device.</p><p>→ Avoid using easily forgable values for authentication.</p><p>→ Avoid relying on 4-digit PIN codes for authentication.</p><p><strong>● Strengthen Authentication:</strong></p><p>→ Enforce robust client-side authorization and authentication controls.</p><p>→ For offline use, perform local integrity checks to ensure the authenticity of the application.</p><p>→ Protect sensitive authentication data securely.</p><p><strong>● Prevent Insecure Authorization:</strong></p><p>→ Backend systems should independently verify the roles and permissions of authenticated users.</p><p>→ Strengthen server-side authorization controls wherever possible.</p><p>→ For offline authorization checks, perform local integrity verification.</p><h3>M4: Insufficient Input/Output Validation</h3><p>In mobile applications, data from external sources such as user input or network data is often inadequately validated or sanitized, making the system vulnerable to attacks specific to mobile environments. These attacks include SQL injection, command injection, cross-site scripting (XSS), command injection, and path traversal, which could lead to unauthorized access to sensitive data, data tampering, code execution, or complete backend system compromise.</p><p>Vulnerabilities related to insufficient input/output validation typically occur when applications fail to properly check and sanitize user input or fail to validate and sanitize output data. These vulnerabilities often stem from application logic errors, incomplete implementation of validation checks, lack of security awareness, or insufficient testing and code reviews.</p><h4><strong>↓ Potential Security Risks</strong></h4><p>Code execution, Data breaches, System compromise, Application disruption, Reputation damage, Legal compliance issues, Financial impact.</p><h4><strong>↓ Risk Scenarios</strong></h4><p><strong>🔺Lack of input validation:</strong> Inadequate user input validation may expose the application to injection attacks such as SQL injection, command injection, or XSS.</p><p><strong>🔺Insufficient output sanitization:</strong> Improper output sanitization may lead to XSS vulnerabilities, allowing attackers to inject and execute malicious scripts.</p><p><strong>🔺Neglecting context-specific validation: </strong>Failing to consider specific validation requirements based on data context may result in vulnerabilities such as path traversal attacks or unauthorized file access.</p><p><strong>🔺Insufficient data integrity checks: </strong>Not performing adequate checks for data integrity may lead to data corruption or unauthorized modifications, compromising reliability and security.</p><p><strong>🔺Poor security coding practices:</strong> Neglecting secure coding practices, such as using parameterized queries or escaping/encoding data, may result in input/output validation vulnerabilities.</p><h4><strong>↓ Security Measures</strong></h4><p><strong>● Input Validation:</strong></p><p>→ Use strict validation techniques to verify and sanitize user input.</p><p>→ Implement input length restrictions and reject unexpected or malicious data.</p><p><strong>● Output Sanitization:</strong></p><p>→ Properly sanitize output data to prevent cross-site scripting (XSS) attacks.</p><p>→ Use output encoding techniques when displaying or transmitting data.</p><p><strong>● Context-Specific Validation: </strong>Perform validation based on data context (e.g., file uploads, database queries) to prevent path traversal or injection attacks.</p><p><strong>● Data Integrity Checks:</strong> Implement data integrity checks to detect and prevent data corruption or unauthorized modifications.</p><p><strong>● Secure Coding Practices: </strong>Adhere to secure coding practices, such as using parameterized queries and precompiled statements to prevent SQL injection.</p><p><strong>● Regular Security Testing: </strong>Conduct regular security assessments, including penetration testing and code reviews, to identify and remediate vulnerabilities.</p><h3>M5: Insecure Communication</h3><p>In mobile applications, “communication” typically refers to the process of exchanging data or information between different components, devices, or systems. Common scenarios include network communication (HTTP/API calls), inter-component communication (within the app), inter-process communication (IPC), cross-device communication, and local communication (threads/storage).</p><p>Modern applications rely on encryption protocols such as SSL/TLS. However, these implementations may have vulnerabilities, such as using outdated protocols, poor configuration settings, accepting invalid SSL certificates (self-signed certificates, revoked certificates, expired certificates, incorrect hostnames, etc.), or inconsistent use (e.g., applying SSL/TLS only to certain workflows like authentication). These flaws can expose data and session IDs, leading to security risks in mobile applications.</p><h4><strong>↓ Potential Security Risks</strong></h4><p>Data leaks, Account takeover, User impersonation, Personal identity information exposure, Fraudulent activities</p><h4><strong>↓ Risk Scenarios</strong></h4><p><strong>🔺Lack of certificate validation: </strong>A mobile application successfully connects to an endpoint and performs a TLS handshake to establish a secure channel but fails to validate the server-provided certificate, unconditionally accepting any certificate. This can lead to man-in-the-middle (MITM) attacks through TLS proxies.</p><p><strong>🔺Weak handshake negotiation: </strong>The mobile application connects to an endpoint and negotiates a weak cipher suite during the handshake, resulting in weak encryption that attackers can easily decrypt.</p><p><strong>🔺Privacy information leakage: </strong>The mobile application transmits personally identifiable information (PII) to an endpoint via an insecure channel instead of SSL/TLS, leading to privacy data exposure.</p><p><strong>🔺Credential information leakage: </strong>The mobile application transmits user credentials to an endpoint via an insecure channel instead of SSL/TLS, allowing attackers to intercept these credentials in plaintext.</p><p><strong>🔺Two-factor authentication bypass: </strong>The mobile application receives session identifiers from an endpoint via an insecure channel instead of SSL/TLS, enabling attackers to bypass two-factor authentication using intercepted session identifiers.</p><h4><strong>↓ Defensive Measures</strong></h4><p><strong>● Secure Communication Channels:</strong></p><p>→ Apply SSL/TLS protection for all communication channels used by the mobile application to ensure data is securely transmitted to backend APIs or web services.</p><p>→ Use the SSL version provided by external entities (e.g., third-party analytics companies, social networks) when running through browsers/WebKit. Avoid mixing SSL sessions, as this may expose session IDs.</p><p><strong>● Strong Encryption Standards:</strong></p><p>→ Use robust, industry-standard cipher suites with appropriate key lengths.</p><p>→ Always use certificates issued by trusted Certificate Authorities (CAs).</p><p><strong>● Certificate Validation:</strong></p><p>→ Never allow invalid certificates (e.g., self-signed certificates, expired certificates, untrusted root certificates, revoked certificates, incorrect hostnames).</p><p>→ Consider implementing certificate pinning.</p><p>→ Always require SSL chain validation.</p><p>→ Establish secure connections only after verifying the endpoint server’s identity with trusted certificates.</p><p><strong>● User Warnings and Data Handling:</strong></p><p>→ Warn users via the UI if the mobile application detects invalid certificates.</p><p>→ Avoid sending sensitive data through alternative channels such as SMS, MMS, or notifications.</p><p><strong>● Layered Encryption: </strong>If possible, apply an independent encryption layer to sensitive data before transmitting it through the SSL channel. This provides secondary protection against confidentiality breaches in case future SSL vulnerabilities are discovered.</p><p><strong>● Development Best Practices: </strong>Avoid overriding SSL validation methods to allow untrusted certificates. Instead, use self-signed certificates or local development Certificate Authorities (CAs) during development cycles.</p><p><strong>● Secure Traffic Analysis: </strong>During security assessments, analyze application traffic to ensure no data is being transmitted via plaintext channels.</p><p>By adopting these measures, developers can significantly mitigate insecure communication risks and ensure robust protection for data transmitted within mobile applications.</p><p>The above is the first half of the top 10 risks of WASP mobile in 2024. There are also 5 security risks to stay tuned for!</p><p>Article resource: <a href="https://security.tecno.com/SRC/blogdetail/405?lang=en_US">https://security.tecno.com/SRC/blogdetail/405?lang=en_US</a></p><p>— — To be continued — —</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0a3df63284bc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[(Ⅱ) Android Identity Authentication: A Game of Cat and Mouse between Developers and “Hackers”]]></title>
            <link>https://medium.com/@security.tecno/%E2%85%B1-android-identity-authentication-a-game-of-cat-and-mouse-between-developers-and-hackers-b1b1789453b0?source=rss-24695556bc50------2</link>
            <guid isPermaLink="false">https://medium.com/p/b1b1789453b0</guid>
            <category><![CDATA[security]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <dc:creator><![CDATA[TECNO Security]]></dc:creator>
            <pubDate>Wed, 26 Mar 2025 06:24:59 GMT</pubDate>
            <atom:updated>2025-03-26T06:24:59.862Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KJTiDCBZDWFMIwUS46Dw_Q.png" /></figure><p>By TECNO Security team</p><p><strong>In the previous sharing,</strong> we learned about some misunderstandings and security risks related to identity authentication and also gained some understanding of blind spots related to Activity identity authentication and Broadcast identity authentication. <strong>Click to read the details: </strong><a href="https://security.tecno.com/SRC/blogdetail/399?lang=en_US">“(Ⅰ) Android Identity Authentication: A Cat and Mouse Game between Developers and Hackers”</a></p><p>This article will focus on identity authentication-related topics within applications and system services, while also proposing some effective security practices. These practices aim to help developers resist related security risks during the development process and enhance the security of product services.</p><h3>5. The “Trap” of Service Identity Authentication</h3><p>Today, we will discuss identity authentication in applications and system services, which is also the most important part of Android. Whether it is AOSP or various OEM manufacturers, there have been many vulnerabilities caused by improper authentication of the caller’s identity.</p><h4>5.1 Cat-and-Mouse Game: How Hackers Attack Services</h4><p>Understanding attacks is essential to better know how to defend against them. First, let’s illustrate how “hackers” maliciously attack service interfaces. Generally, there are three methods of attack:</p><p>① Obtaining or rewriting AIDL to bypass weak permission controls via an external entry point and call the service, which is consistent with the normal calling process.</p><p>② Obtaining the service’s IBinder, constructing a Binder communication Parcel, and directly invoking the service by calling the `transact` method.</p><p>③ Reflecting on internal classes or interface objects of the Stub to invoke service interfaces through reflection.</p><h4>5.2 Barking Up the Wrong Tree: Authentication on the Client Side</h4><p>Many system services expose their interfaces to applications, allowing them to make calls. Generally, applications use the client-side XxxManager, while the corresponding server-side XxxManagerService resides in the system_server. Taking ActivityManager as an example, although both ActivityManager and ActivityManagerService are system classes, when an application makes a call, the code for the ActivityManager class runs in the caller’s process, while ActivityManagerService runs in the system process! Running in the caller’s process means the caller can interfere at will.</p><p>Placing identity verification on the client side is like a “cat” looking for a “mouse” in the tree while the “mouse” is freely moving on the ground — akin to “barking up the wrong tree.” Authentication on the client side can be easily bypassed and cannot effectively protect the server side.</p><p><strong>🔺 Error Example</strong></p><p>For instance, CVE-2021–0554 involves the `isBackupServiceActive` interface in BackupManagerService. When calling BackupManager, the permissions are checked within the current process, but the interface in BackupManagerService is not protected.</p><pre>//Authentication in Client<br>@SystemApi<br>@RequiresPermission(android.Manifest.permission.BACKUP)<br>public boolean isBackupServiceActive(UserHandle user) {<br>    mContext.enforceCallingOrSelfPermission(android.Manifest.permission.BACKUP,<br>            &quot;isBackupServiceActive&quot;);<br>    checkServiceBinder();<br>    if (sService != null) {<br>        try {<br>            return sService.isBackupServiceActive(user.getIdentifier());<br>        } catch (RemoteException e) {<br>            Log.e(TAG, &quot;isBackupEnabled() couldn&#39;t connect&quot;);<br>        }<br>    }<br>    return false;<br>}</pre><p>For example, the caller can self-implement the BackupManager function or self-implement the proxy based on the binder communication mechanism (to build an IBinder #transact interface) to call the BackupManagerService interface. Whether using reflection, hook, or directly calling IBackupManager, permission checks can be easily bypassed.</p><p><strong>★ Recommended measures</strong></p><p>Therefore, all authentication operations should be placed at the server level to avoid being bypassed, and both applications and system services should follow this principle. An example is as follows:</p><pre>//BackupManagerService<br>@Override<br>public boolean isBackupServiceActive(int userId) {<br>    mContext.enforceCallingPermission(android.Manifest.permission.BACKUP,<br>            &quot;isBackupServiceActive&quot;);<br>    synchronized (mStateLock) {<br>        return !mGlobalDisable &amp;&amp; isBackupActivatedForUser(userId);<br>    }<br>}</pre><h4>5.3 Carving a Boat to Find a Sword: Authentication in onBind</h4><p>In services, the Binder class provides methods like `getCallingUid` and `getCallingPid` to obtain the identity of the caller. However, similar to Activity, there is a significant misconception here. During requests or calls that are not via binder communication (as the official documentation states, “the current thread is not currently executing an incoming transaction”), the `getCallingXXX` methods return the service’s own uid and pid.</p><pre>/**<br> * Return the Linux UID assigned to the process that sent you the<br> * current transaction that is being processed. This UID can be used with<br> * higher-level system services to determine its identity and check<br> * permissions. If the current thread is not currently executing an<br> * incoming transaction, then its own UID is returned.<br> */<br>@CriticalNative<br>@android.ravenwood.annotation.RavenwoodReplace<br>public static final native int getCallingUid();</pre><p>Therefore, if you attempt to authenticate before establishing communication, you are actually authenticating yourself, which will result in authentication failure and interface exposure.</p><p><strong>🔺 Error example</strong></p><p>As follows: Any API that uses the getCallingXXX class methods to obtain uid and pid for authentication will be ineffective in onBind. The enforceCallingXXX class methods also rely on the caller UID returned by Binder.getCallingUid().</p><pre>public class MyService extends Service {<br>    @Override<br>    public IBinder onBind(Intent intent) {<br>        //Useless authentication<br>        enforceCallingPermission(&quot;com.permission.example&quot;);<br>        return mBinder;<br>    }<br> <br>    private final IMyBinder.Stub mBinder = new IMyBinder.Stub() {<br>        public String myApi(String input) {<br>            return &quot;someThing&quot;;<br>        }<br>    };<br>}</pre><p><strong>★ Recommended measures</strong></p><p>Authentication in interface implementation ensures that it is during the binder communication processing event process.</p><pre>//Interface implementation<br>public class MyService extends Service {<br>    @Override<br>    public IBinder onBind(Intent intent) {<br>        return mBinder;<br>    }<br> <br>    private final IMyBinder.Stub mBinder = new IMyBinder.Stub() {<br>        public String myApi(String input) {<br>            enforceCallingPermission(&quot;com.permission.example&quot;);<br>            return &quot;someThing&quot;;<br>        }<br>    };<br>}</pre><h4>5.4 Setting Your Own Trap: Misuse of clearCallingIdentity</h4><p>As mentioned earlier, APIs like enforceCallingXXX rely on the caller UID returned by Binder.getCallingUid() for authentication. Another API, clearCallingIdentity, allows for the clearance of essential identity information to make high-privilege interface calls.</p><p>The design reason for clearCallingIdentity is that some system interfaces require high system privileges to be called, and the initial caller’s permissions are insufficient. Therefore, invoking this API returns the service’s own identity to elevate permissions for calling the interface. Precisely because of this, improper use can lead to security vulnerabilities.</p><p><strong>🔺 Error example</strong></p><p>If the server first calls clearCallingIdentity and then performs authentication, it effectively uses the server’s own identity for authentication, which is equivalent to the authentication being nullified.</p><pre>//server level clearCallingIdentity first, then authentication<br>public final class ExampleServiceImpl extends IExampleService.Stub{<br>    @Override<br>    public void test(){<br>        long oriToken = Binder.clearCallingIdentity();<br>        checkPermission();<br>        do_something():<br>        Binder.restoreCallingIdentity(oriToken);<br>    }<br>}</pre><p><strong>🔺 Correct Approach</strong></p><p>The server should perform authentication first and then call clearCallingIdentity. This ensures that there are restrictions on the caller while maintaining security.</p><pre>public final class ExampleServiceImpl extends IExampleService.Stub{<br>    @Override<br>    public void test(){<br>        checkPermission();<br>        long oriToken = Binder.clearCallingIdentity();<br>        do_something():<br>        Binder.restoreCallingIdentity(oriToken);<br>    }<br>}</pre><h4>5.5 Passing Off as Genuine: Package Name Forgery</h4><p>In applications and system services, numerous APIs are open for external calls, typically obtaining the caller’s UID and PID via Binder to further acquire the caller’s package name for authentication. The common practice is to set a package name whitelist. However, developers sometimes overlook the issue that packages in the whitelist might not exist or could be uninstalled from the system, which allows certain malicious applications to forge package names from the whitelist and bypass authentication. Therefore, services that authenticate using package name whitelists should enhance permission control — by adding package signature verification.</p><p>Binder by default only returns the caller’s UID and PID, but PID can change and is unreliable. If the caller specifies FLAG_ONEWAY for asynchronous calls, the PID is 0. For asynchronous calls from system processes or applications, the UID is 1000, making it impossible to distinguish the caller.</p><p>In such situations, it’s common to add packageName to the API parameters, allowing the caller to pass their own package name. Note that the packageName here is actively provided by the caller, completely controlled by them. The server must verify that the passed package name belongs to the caller’s UID. If this additional validation is missed, it could lead to vulnerabilities. Similar vulnerabilities have appeared not only in AOSP but also in OEM vendor code.</p><p><strong>🔺Error example</strong></p><p>Let’s look at CVE-2020–0246. In the EuiccController, the API getEid takes a callingPackage parameter, but it does not verify that the callingPackage belongs to the caller. The caller’s identity is unknown, and by simply passing in the telephony package name, one can bypass permission checks and obtain sensitive information like the EID.</p><pre>@Override<br>public String getEid(int cardId, String callingPackage) {<br>    boolean callerCanReadPhoneStatePrivileged = callerCanReadPhoneStatePrivileged();<br>    long token = Binder.clearCallingIdentity();<br>    try {<br>        if (!callerCanReadPhoneStatePrivileged<br>                &amp;&amp; !canManageSubscriptionOnTargetSim(cardId, callingPackage)) {<br>            throw new SecurityException(<br>                    &quot;Must have carrier privileges on subscription to read EID for cardId=&quot;<br>                            + cardId);<br>        }<br>        return blockingGetEidFromEuiccService(cardId);<br>    } finally {<br>        Binder.restoreCallingIdentity(token);<br>    }<br>}</pre><p><strong>★ Recommended measures</strong></p><p><strong>Example 1:</strong> Use the AppOpsManager.checkPackage interface to verify whether the package name belongs to the caller.</p><pre>private final AppOpsManager mAppOpsManager;<br>@Override<br>public String getEid(int cardId, String callingPackage) {<br>    boolean callerCanReadPhoneStatePrivileged = callerCanReadPhoneStatePrivileged();<br>    try {<br>        mAppOpsManager.checkPackage(Binder.getCallingUid(), callingPackage);<br>    } catch (SecurityException e) {<br>        EventLog.writeEvent(0x534e4554, &quot;159062405&quot;, -1, &quot;Missing UID checking&quot;);<br>        throw e;<br>    }<br>    long token = Binder.clearCallingIdentity();<br>    try {<br>        if (!callerCanReadPhoneStatePrivileged<br>                &amp;&amp; !canManageSubscriptionOnTargetSim(cardId, callingPackage)) {<br>            throw new SecurityException(<br>                    &quot;Must have carrier privileges on subscription to read EID for cardId=&quot;<br>                            + cardId);<br>        }<br>        return blockingGetEidFromEuiccService(cardId);<br>    } finally {<br>        Binder.restoreCallingIdentity(token);<br>    }<br>}</pre><p><strong>Example 2:</strong> Obtain the UID and CallingUid through PMS to verify whether the package name belongs to the caller.</p><pre>try {<br>    PackageManager pm = mApp.getPackageManager();<br>    if (Binder.getCallingUid() != pm.getPackageUid(callingPackage, 0)) {<br>        throw new SecurityException(&quot;Calling package &quot; + callingPackage + &quot;does not match &quot;<br>                + &quot;calling UID&quot;);<br>    }<br>} catch (PackageManager.NameNotFoundException e) {<br>    throw new SecurityException(&quot;Invalid calling package. e=&quot; + e);<br>}</pre><p><strong>Example 3:</strong> Use the system interface class PackageManagerInternal obtained through AMS to verify whether the package name belongs to the caller (system services only).</p><pre>final ActivityManagerService mAm;<br>...<br>if (!mAm.getPackageManagerInternal().isSameApp(callingPackage, callingUid,<br>        userId)) {<br>    throw new SecurityException(&quot;BIND_EXTERNAL_SERVICE failed, &quot;<br>            + &quot;calling package not owned by calling UID &quot;);<br>}<br>...</pre><h4>5.6 Going in the Wrong Direction: Misuse of Authentication APIs</h4><p>Whether it’s the native AOSP or OEM custom systems, there are certainly instances where identical or similar conditional judgment methods appear in different packages or classes. Some methods may even have the same names and parameters, but the internal logic might differ!</p><p>Ten programmers might have ten different ways of writing these methods. If, when using these judgment methods, there’s a “slip of the hand,” the wrong package is imported, or the specific logic differences are not noticed, the incorrect use of authentication APIs could allow “mice” to easily bypass defenses.</p><p><strong>🔺 Error example</strong></p><p>Let’s take a look at this CVE-2021–0319 and fix the pre-package name attribution verification code as follows.</p><pre>private IAppOpsService mAppOpsManager;<br>...<br>mAppOpsManager = IAppOpsService.Stub.asInterface(<br>                ServiceManager.getService(Context.APP_OPS_SERVICE));<br>private void checkCallerIsSystemOr(String pkg, int userId) throws RemoteException {<br>    if (isCallerSystem()) {<br>        return;<br>    }<br>    checkArgument(getCallingUserId() == userId,<br>            &quot;Must be called by either same user or system&quot;);<br>    mAppOpsManager.checkPackage(Binder.getCallingUid(), pkg);<br>}</pre><p>Doesn’t this seem familiar? In the “Package Name Forgery” section, we mentioned that this is a correct authentication method, so why does it appear as a vulnerability here?</p><p>Please note that here the method used is checkPackage from com.android.internal.app.IAppOpsService, whereas in the previous section, the method used was checkPackage from the android.app.AppOpsManager class. What’s the difference between the two?</p><p>Let’s take a look at the source code: in IAppOpsService, if the check fails, it simply returns a MODE_ERRORED flag, whereas in AppOpsManager, if the check fails, it throws a SecurityException (AppOpsManager.checkPackage is essentially a wrapper around IAppOpsService.checkPackage, which has now been marked deprecated, with the official recommendation to use IAppOpsService.checkPackage).</p><p>This inconsistency in check results led to an authentication failure vulnerability. CVE-2021–0319 is an example of an authentication API being used incorrectly, where no exception was thrown, allowing the package verification to be bypassed and subsequent logic to continue executing.</p><pre>//com.android.internal.app.IAppOpsService<br>public class AppOpsService extends IAppOpsService.Stub {<br>...<br>    @Override<br>    public int checkPackage(int uid, String packageName) {<br>        Objects.requireNonNull(packageName);<br>        try {<br>            verifyAndGetBypass(uid, packageName, null, null, true);<br>            // When the caller is the system, it&#39;s possible that the packageName is the special<br>            // one (e.g., &quot;root&quot;) which isn&#39;t actually existed.<br>            if (resolveUid(packageName) == uid<br>                    || (isPackageExisted(packageName)<br>                            &amp;&amp; !filterAppAccessUnlocked(packageName, UserHandle.getUserId(uid)))) {<br>                return AppOpsManager.MODE_ALLOWED;<br>            }<br>            return AppOpsManager.MODE_ERRORED;<br>        } catch (SecurityException ignored) {<br>            return AppOpsManager.MODE_ERRORED;<br>        }<br>    }<br>...<br>}</pre><pre>//android.app.AppOpsManager<br>public class AppOpsManager {<br> final IAppOpsService mService;<br>...<br>    public void checkPackage(int uid, @NonNull String packageName) {<br>        try {<br>            if (mService.checkPackage(uid, packageName) != MODE_ALLOWED) {<br>                throw new SecurityException(<br>                        &quot;Package &quot; + packageName + &quot; does not belong to &quot; + uid);<br>            }<br>        } catch (RemoteException e) {<br>            throw e.rethrowFromSystemServer();<br>        }<br>    }<br>...<br>}</pre><p><strong>★ Recommended measures</strong></p><p>Use IAppOpsService.checkPackage to determine if the tag is MODE_ALLOWED.</p><pre>private void checkCallerIsSystemOr(String pkg, int userId) throws RemoteException {<br>    if (isCallerSystem()) {<br>        return;<br>    }<br>    checkArgument(getCallingUserId() == userId,<br>            &quot;Must be called by either same user or system&quot;);<br>    int callingUid = Binder.getCallingUid();<br>    if (mAppOpsManager.checkPackage(callingUid, pkg) != AppOpsManager.MODE_ALLOWED) {<br>        throw new SecurityException(pkg + &quot; doesn&#39;t belong to uid &quot; + callingUid);<br>    }<br>}</pre><p>Here, we have provided just one example. In actual development, developers should pay special attention to the use of authentication APIs!!!</p><p>In the following text, we will introduce two more cases of vulnerabilities arising from different implementations of similar APIs.</p><h4>5.7 Self-Destruction: Missing Permissions for Special Interfaces</h4><p>Overriding special interfaces can lead to the original permissions becoming ineffective, akin to the “cat” dismantling its own protective barrier, allowing the “mice” to enter easily.</p><p><strong>5.7.1 dump</strong></p><p>The dump interface is used to output information during debugging (such as with dumpsys or cmd commands). If used improperly, it can easily lead to information leakage or arbitrary command execution, primarily because developers overlook the differences in dump interfaces across different classes, similar to the situation discussed in the previous section, “Misuse of Authentication APIs.”</p><p><strong>There are mainly three scenarios:</strong></p><p><strong>The first type: dump method in application service: </strong>Here, dump inherits from the parent class Service.</p><pre>public class MyService extends Service {<br>...<br>    @Override<br>    protected void dump(FileDescriptor fd, PrintWriter writer, String[] args) {<br>        super.dump(fd, writer, args);<br>    }<br>}</pre><p>We execute dumpsys with normal application permissions, and we can see that permission android.permission. DUMP is required. However, the following two dump methods are different.</p><p><strong>The second method: Rewrite the dump method from Binder:</strong> The local implementation interface class inherits from Binder.</p><pre>public final class LocalBinder extends Binder {<br>    @Override<br>    protected void dump(@NonNull FileDescriptor fd, @NonNull PrintWriter fout, @Nullable String[] args) {<br>      super.dump(fd, fout, args);<br>    }<br>}</pre><p><strong>The third type: dump method in Stub: </strong>System service interface implementation classes basically inherit from the Stub class, and in fact, the Stub class also inherits from Binder.</p><pre>public final class ExampleServiceImpl extends IExampleService.Stub{<br>    @Override<br>    protected void dump(FileDescriptor fd, PrintWriter pw, String[] args) {<br>        super.dump(fd, pw, args);<br>    }<br>}</pre><p>From the source code, it can be observed that the built-in dump interface in Binder does not have permission control. Therefore, once a service is exposed, the dump interface becomes accessible as well.</p><p>A key point to pay special attention to, and one that developers often overlook, is that the dump method comes from the parent Stub class, which is an automatically generated class after an AIDL file is compiled. When the client obtains an IBinder to call the IExampleService interface, the dump interface cannot be found because Stub adds an additional layer of inheritance. However, if the IBinder is obtained and IBinder.dump is called directly, it can be invoked. This could be one of the reasons why developers overlook implementing permission control for the dump interface.</p><p><strong>★ Recommended measures</strong></p><p>The permission control for the dump method varies depending on the implementation:</p><p>① Overriding the dump method provided by Stub: If the service interface is defined through AIDL and the dump method is overridden in the interface implementation, in this case, the invocation permissions for the dump method are typically determined by the service’s own implementation, and the service needs to perform its own authentication.</p><p>② Inheriting from Binder and overriding the dump method: If the service interface class inherits from Binder and overrides the dump method, in this case, the invocation permissions for the dump method are typically determined by the service’s own implementation, and the service needs to perform its own authentication.</p><pre>public final class ExampleServiceImpl extends IExampleService.Stub{<br>    @Override<br>    protected void dump(FileDescriptor fd, PrintWriter pw, String[] args) {<br>        if (mContext.checkCallingOrSelfPermission(android.Manifest.permission.DUMP)<br>                != PackageManager.PERMISSION_GRANTED) {<br>            pw.println(&quot;Permission Denial: can&#39;t dump info from pid=&quot;<br>                    + Binder.getCallingPid()<br>                    + &quot;, uid=&quot; + Binder.getCallingUid());<br>            return;<br>        }<br>        ...<br>    }<br>}<br>//----------------------------------------------------------------------------------------<br>public final class LocalBinder extends Binder {<br>    @Override<br>    protected void dump(@NonNull FileDescriptor fd, @NonNull PrintWriter fout, @Nullable String[] args) {<br>        if (mContext.checkCallingOrSelfPermission(android.Manifest.permission.DUMP)<br>                != PackageManager.PERMISSION_GRANTED) {<br>            pw.println(&quot;Permission Denial: can&#39;t dump info from pid=&quot;<br>                    + Binder.getCallingPid()<br>                    + &quot;, uid=&quot; + Binder.getCallingUid());<br>            return;<br>        }<br>        ...<br>    }<br>}</pre><p>③ Use the Service dump method: When the service implements the dump method of the service class. In this case, the system will require the caller to have DUMP permissions, and the service does not need to attach authentication.</p><pre>public class ExampleService extends Service {<br>    ...<br>    //The dump method provided by Service.class is protected by android.permission. DUMP permissions and does not require additional authentication<br>    @Override<br>    protected void dump(FileDescriptor fd, PrintWriter writer, String[] args) {<br>        super.dump(fd, writer, args);<br>        Log.e(TAG, &quot;dump from service class&quot;);<br>    }<br>}</pre><p><strong>5.7.2 shellCommand</strong></p><p>The special interface shellCommand is used for invoking cmd commands during shell command line debugging. There are three key points regarding shellCommand:</p><p><strong>First:</strong> The default implementation of onShellCommand in Binder.java ensures that the caller’s UID is root or shell. If this condition is not met, a SecurityException is thrown, and then handleShellCommand is called to perform specific operations. However, many service classes in the system directly override onShellCommand instead of handleShellCommand, causing this validation to be bypassed.</p><p>The default implementation of onShellCommand is as follows:</p><pre>public void onShellCommand(@Nullable FileDescriptor in, @Nullable FileDescriptor out,<br>        @Nullable FileDescriptor err,<br>        @NonNull String[] args, @Nullable ShellCallback callback,<br>        @NonNull ResultReceiver resultReceiver) throws RemoteException {<br><br>    final int callingUid = Binder.getCallingUid();<br>    if (callingUid != Process.ROOT_UID &amp;&amp; callingUid != Process.SHELL_UID) {<br>        resultReceiver.send(-1, null);<br>        throw new SecurityException(&quot;Shell commands are only callable by ADB&quot;);<br>    }<br>    ...<br>    int result = -1;<br>    try (ParcelFileDescriptor inPfd = ParcelFileDescriptor.dup(in);<br>            ParcelFileDescriptor outPfd = ParcelFileDescriptor.dup(out);<br>            ParcelFileDescriptor errPfd = ParcelFileDescriptor.dup(err)) {<br>        result = handleShellCommand(inPfd, outPfd, errPfd, args);<br>    } catch (IOException e) {<br>        ...<br>    } finally {<br>        resultReceiver.send(result, null);<br>    }<br>}<br>    if (callingUid != Process.ROOT_UID &amp;&amp; callingUid != Process.SHELL_UID) {<br>        resultReceiver.send(-1, null);<br>        throw new SecurityException(&quot;Shell commands are only callable by ADB&quot;);<br>    }<br>    ...<br>    int result = -1;<br>    try (ParcelFileDescriptor inPfd = ParcelFileDescriptor.dup(in);<br>            ParcelFileDescriptor outPfd = ParcelFileDescriptor.dup(out);<br>            ParcelFileDescriptor errPfd = ParcelFileDescriptor.dup(err)) {<br>        result = handleShellCommand(inPfd, outPfd, errPfd, args);<br>    } catch (IOException e) {<br>        ...<br>    } finally {<br>        resultReceiver.send(result, null);<br>    }<br>}</pre><p><strong>Second: </strong>If the service does not use handleShellCommand, it can correctly check the caller’s permissions or UID within onShellCommand.</p><p><strong>Third: </strong>If onShellCommand does not directly check the caller’s permissions, it can do so within the ShellCommand subclass (usually in the onCommand method) by calling public interfaces to check the caller’s permissions (properly using clearCallingIdentity).</p><p>In such vulnerabilities, certain operations fail to correctly check the caller’s permissions, allowing attackers to invoke private internal system interfaces without permission, leading to vulnerabilities.</p><p><strong>🔺Error example</strong></p><p>Let’s take a look at CVE-2024–31318, which overrides onShellCommand (note that Stub is actually inherited Binder.java) in CompanionDeviceManagerService interface implementation CompanionDeviceManagerImpl and does not inherit permission control, resulting in the failure of permission verification in Binder.</p><pre>class CompanionDeviceManagerImpl extends ICompanionDeviceManager.Stub {<br>...<br>    @Override<br>    public void onShellCommand(FileDescriptor in, FileDescriptor out, FileDescriptor err,<br>            String[] args, ShellCallback callback, ResultReceiver resultReceiver)<br>            throws RemoteException {<br>        new ShellCmd().exec(this, in, out, err, args, callback, resultReceiver);<br>    }<br>...<br>}</pre><p><strong>★ Recommended measures</strong></p><p><strong>Recommendation 1:</strong> Rewrite handleShellCommand instead of onShellCommand.</p><pre>class ExampleServiceImpl extends IExampleService.Stub {<br>...<br>    @Override<br>    public int handleShellCommand(@NonNull ParcelFileDescriptor in,<br>            @NonNull ParcelFileDescriptor out, @NonNull ParcelFileDescriptor err,<br>            @NonNull String[] args) {<br>        return new ShellCmd()<br>                .exec(this, in.getFileDescriptor(), out.getFileDescriptor(),<br>                        err.getFileDescriptor(), args);<br>    }<br>...<br>}</pre><p><strong>Recommendation 2:</strong> Permission control can be done in the cmd interface class or each cmd command method.</p><pre>public class ExampleShellCmd extends ShellCommand {<br>    ...<br>    @Override<br>    public int onCommand(String cmd) {<br>    <br>        checkCallerIsSystemOrShell();<br>        try {<br>            switch (cmd.replace(&#39;-&#39;, &#39;_&#39;)) {<br>                ...<br>                case &quot;cmd_example&quot;: {<br>                    int userId = ActivityManager.getCurrentUser();<br>                    ...<br>                    mExampleService.cmdExample(userId);<br>                    break;<br>                }<br>               <br>        } catch (Exception e) {<br>          ...<br>        }<br>        return 0;<br>    }<br>    ...<br>    <br>    protected boolean isCallerSystemOrPhone() {<br>        return isUidSystemOrPhone(Binder.getCallingUid());<br>    }<br>    private void checkCallerIsSystemOrShell() {<br>        if (Binder.getCallingUid() == Process.SHELL_UID) {<br>            return;<br>        }<br>        checkCallerIsSystem();<br>    }<br>    private void checkCallerIsSystem() {<br>        if (isCallerSystemOrPhone()) {<br>            return;<br>        }<br>        throw new SecurityException(&quot;Disallowed call for uid &quot; + Binder.getCallingUid());<br>    }<br>}</pre><h3>6. Summary: How to Win in This Cat-and-Mouse Game</h3><p>① Ensure the authenticity and validity of the counterpart’s identity, and beware of identity authentication “illusions” and “blind spots.”</p><p>② Authenticate all interfaces on the server side, except in special cases.</p><p>③ Use system APIs correctly and appropriately, paying attention to special cases.</p><p>④ Ensure permission matching in class inheritance relationships.</p><p>⑤ Treat all inputs as untrusted; package name verification must ensure the authenticity of inputs.</p><p>Below is our recommended code example for server-side authentication:</p><pre>//Authentication in server level interface implementation class<br>//Method 1: Verify caller permissions<br>public final class ExampleServiceImpl extends IExampleService.Stub{<br>    @Override<br>    public void test(){<br>        enforceCallingPermission(&quot;com.permission.example&quot;);<br>        do_something():<br>    }<br>}</pre><pre>//Method 2: Verify the identity of the caller<br>private static final int ALLOWED_UID = 1000; // Actual UID allowed for access<br>private static final int ALLOWED_PID = 1234; //Actual UID allowed for access<br>public final class ExampleServiceImpl extends IExampleService.Stub{<br>    @Override<br>    public void test(){<br>        int callingUid = Binder.getCallingUid();<br>        int callingPid = Binder.getCallingPid();<br>        if (callingUid != ALLOWED_UID || callingPid != ALLOWED_PID) {<br>            throw new SecurityException(&quot;Access denied for UID: &quot; + callingUid + &quot; and PID: &quot; + callingPid);<br>        }<br>        do_something();<br>    }<br>}</pre><pre>//Method 3: If the application is called, check the calling application signature<br>public final class ExampleServiceImpl extends IExampleService.Stub {<br>    private static final String TRUSTED_SIGNATURE = &quot;trust_app_signature_here&quot;; // Trusted application signature<br><br>    @Override<br>    public void test() {<br>        String callingPackage = getCallingPackageName();<br>        if (!isSignatureTrusted(callingPackage)) {<br>            throw new SecurityException(&quot;Access denied for package: &quot; + callingPackage);<br>        }<br>        do_something();<br>    }<br><br>    private boolean isSignatureTrusted(String packageName) {<br>        // Obtain the signature information of the application and verify it<br>        try {<br>            PackageManager pm = getPackageManager();<br>            PackageInfo packageInfo = pm.getPackageInfo(packageName, PackageManager.GET_SIGNATURES);<br>            for (Signature signature : packageInfo.signatures) {<br>                String currentSignature = signature.toCharsString();<br>                if (TRUSTED_SIGNATURE.equals(currentSignature)) {<br>                    return true;<br>                }<br>            }<br>        } catch (PackageManager.NameNotFoundException e) {<br>            e.printStackTrace();<br>        }<br>        return false;<br>    }<br>}</pre><p><strong>Conclusion:</strong></p><p>Android development is like a cat-and-mouse game, full of challenges and risks. Correct identity authentication is key to winning this game and leaving the “mice” with nowhere to hide. I hope this article helps developers remain vigilant in the cat-and-mouse game of Android development, better safeguarding application and system security, and becoming an Android “mouse-catching expert”!</p><p>Article source: <a href="https://security.tecno.com/SRC/blogdetail/401?lang=en_US">https://security.tecno.com/SRC/blogdetail/401?lang=en_US</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b1b1789453b0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[(Ⅰ) Android Identity Authentication: A Game of Cat and Mouse between Developers and “Hackers”]]></title>
            <link>https://medium.com/@security.tecno/%E2%85%B0-android-identity-authentication-a-game-of-cat-and-mouse-between-developers-and-hackers-73eda7a36253?source=rss-24695556bc50------2</link>
            <guid isPermaLink="false">https://medium.com/p/73eda7a36253</guid>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[blog]]></category>
            <category><![CDATA[developer]]></category>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[TECNO Security]]></dc:creator>
            <pubDate>Mon, 24 Mar 2025 07:15:05 GMT</pubDate>
            <atom:updated>2025-03-24T07:15:05.952Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PM_3QehZDZv6CmfbJR9cZA.png" /></figure><h3>1. Background: Frequent Vulnerabilities and the “Pitfalls” of Identity Authentication</h3><p>In Android development, caller identity authentication is like a cat-and-mouse game between developers and “black hats.” Developers play the role of the “cat,” trying every means to protect the “cheese,” while “hackers” are the “mice,” constantly searching for vulnerabilities to breach defenses.</p><p>A slight oversight can allow the “mice” to slip in silently, steal data, escalate privileges, or even crash the system. This article will explore strategies in this cat-and-mouse game — how to perform reasonable and correct identity authentication. We will start with some real-world cases to help everyone recognize and understand some misconceptions about identity calls, reducing the security risks associated with improper operations and leaving the “mice” with nowhere to hide.</p><h3>2. Common Hazards: Crises Behind the Defense Line</h3><p>The development of applications and system services often requires verifying the identity of the caller to prevent misuse of application components and service interfaces, and to protect against malicious use by unauthorized applications.</p><p>When a service provides binder services and interfaces, if the IBinder object can be maliciously obtained, or if the interfaces provided by the service do not properly authenticate the caller (or if the authentication method is implemented unreasonably), the corresponding interfaces or components can be maliciously invoked, potentially leading to:</p><p>① Privilege escalation, where sensitive functions are maliciously executed or system security mechanisms are bypassed.</p><p>② Interfaces returning sensitive data to attackers, resulting in sensitive data leaks.</p><p>③ Malicious parameters being passed in to execute injection attacks, leading to arbitrary commands or code execution in the server process, achieving privilege escalation.</p><p>④ High-frequency calls depleting the Binder thread pool, resulting in a denial of service by the system.</p><p>⑤ Malicious parameters leading to improper handling of malicious data, causing server-side exceptions, process crashes, and denial of service.</p><h3>3. The “Illusion” of Activity Identity Authentication</h3><p>Many developers use getCallingPackage and getCallingActivity to obtain the identity of the initiator, which is a significant misconception. These two interfaces are directly related to the method used by the initiator to start the Activity. As per the official interface documentation: only when an Activity is started using startActivityForResult will the package name and component name of the caller be returned. If other methods are used (such as startActivity), they will return null, making it impossible to obtain a reliable source. This results in insufficient conditions for an Activity to identify the initiator’s identity. If this method is used for identity verification of a high-security Activity, it is destined to fail.</p><pre>/**<br> * Return the name of the package that invoked this activity.  This is who<br> * the data in {@link #setResult setResult()} will be sent to.  You can<br> * use this information to validate that the recipient is allowed to<br> * receive the data.<br> *<br> * &lt;p class=&quot;note&quot;&gt;Note: if the calling activity is not expecting a result (that is it<br> * did not use the {@link #startActivityForResult}<br> * form that includes a request code), then the calling package will be<br> * null.&lt;/p&gt;<br> *<br> * &lt;p class=&quot;note&quot;&gt;Note: prior to {@link android.os.Build.VERSION_CODES#JELLY_BEAN_MR2},<br> * the result from this method was unstable.  If the process hosting the calling<br> * package was no longer running, it would return null instead of the proper package<br> * name.  You can use {@link #getCallingActivity()} and retrieve the package name<br> * from that instead.&lt;/p&gt;<br> *<br> * @return The package of the activity that will receive your<br> *         reply, or null if none.<br> */<br>@Nullable<br>public String getCallingPackage() {<br>    return ActivityClient.getInstance().getCallingPackage(mToken);<br>}</pre><p>Is there a way to accurately obtain the identity of the initiator in Activity?</p><p>Yes!!</p><h4>3.1 Accurate Targeting: Using Reflection on mReferrer to Obtain Caller Package Name</h4><p>The Activity class provides a method called getReferrer, which can be used to obtain the package name of the caller.</p><p>However, please note that it cannot be used directly, as the initiator can set Intent.EXTRA_REFERRER themselves, potentially faking their identity, making the source unreliable.</p><p>So, what method is reliable? We can use reflection to access the mReferrer field to obtain the package name. Here is an example:</p><pre>private String reflectGetReferrer() {<br>    getReferrer();<br>    try {<br>        Class activityclass = Class.forName(&quot;android.app.Activity&quot;);<br>        Field refererField = activityclass.getDeclaredField(&quot;mReferrer&quot;);<br>        refererField.setAccessible(true);<br>        String referrer = (String) refererField.get(MainActivity.this);<br>        return referrer;<br>    } catch (Exception e){<br>        e.printStackTrace();<br>    }<br>    return &quot;No referrer&quot;;<br>}</pre><p>Although this method can obtain a reliable source, a security reminder: regular applications should use it with caution! After all, using reflection to access a Field is inherently a somewhat non-compliant operation.</p><h4>3.2 Accurate Targeting: Using Reflection on getLaunchedFromPackage to Obtain Caller Package Name</h4><p>For system-level applications, you can use reflection on the `IActivityManager#getLaunchedFromPackage` interface to obtain the package name of the initiator.</p><pre>public String getPKGNameByReflect() throws NoSuchMethodException, InvocationTargetException, IllegalAccessException {<br>    //The system application can obtain the called package name through the following methods <br>    Method getServiceMethod = ActivityManager.class.getMethod(&quot;getService&quot;);<br>    Object mIActivityManager = getServiceMethod.invoke(null);<br>    Method getLaunchedFromPackage = mIActivityManager.getClass().getMethod(&quot;getLaunchedFromPackage&quot;, IBinder.class);<br>    Method getActivityToken = Activity.class.getMethod(&quot;getActivityToken&quot;);<br>    IBinder binder = (IBinder) getActivityToken.invoke(this);<br>    String packageName = (String) getLaunchedFromPackage.invoke(mIActivityManager, binder);<br>    return packageName;<br>}</pre><p>Note: The application is limited to system applications. The permission requirement for this interface is uid = 1000 or the same platform signature application. If it is a system service, the getLaunchedFromPackage interface can be called through AMS (authentication as follows).</p><pre>/** Whether the call to one of the getLaunchedFrom APIs is performed by an internal caller. */<br>    private boolean isInternalCallerGetLaunchedFrom(int uid) {<br>        if (UserHandle.getAppId(uid) == SYSTEM_UID) {<br>            return true;<br>        }<br>        final PackageManagerInternal pm = mService.mWindowManager.mPmInternal;<br>        final AndroidPackage callingPkg = pm.getPackage(uid);<br>        if (callingPkg == null) {<br>            return false;<br>        }<br>        if (callingPkg.isSignedWithPlatformKey()) {<br>            return true;<br>        }<br>        final String[] installerNames = pm.getKnownPackageNames(<br>                KnownPackages.PACKAGE_INSTALLER, UserHandle.getUserId(uid));<br>        return installerNames.length &gt; 0 &amp;&amp; callingPkg.getPackageName().equals(installerNames[0]);<br>    }</pre><h3>4. The “Blind Spot” of Broadcast Identity Authentication</h3><p>In fact, there is no API in Broadcast Receiver to obtain the identity of the sender of a broadcast, which makes it unfeasible for the Receiver to verify the sender through methods like obtaining the package name. Developers typically use actions and permissions to restrict broadcasts.</p><p>This is related to the original design philosophy of broadcasts, which was to broadly inform the system or various applications about certain events or states in the system. However, as Android has evolved, the misuse of broadcasts by malicious applications has intensified, leading to stricte restrictions on broadcasts and a demand for reliable verification of the identity of the broadcast sender.</p><p>So, is there a way to obtain the identity of the broadcast sender without an available API?</p><p>Yes!</p><p>In the logic for handling broadcasts in AMS, the sending UID of the broadcast is actually passed along, allowing the sender’s UID to be obtained from AMS.</p><p>The above is the first half of this topic. From the previous sharing, we have learned about some misunderstandings and security risks related to identity authentication, and have a certain understanding of the blind spots related to Activity identity authentication and Broadcast identity authentication. <strong>The second half will focus on exploring identity authentication in applications and system services, which is also the most important part in Android. Stay tuned!</strong></p><p>Article source: <a href="https://security.tecno.com/SRC/blogdetail/399?lang=en_US">https://security.tecno.com/SRC/blogdetail/399?lang=en_US</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=73eda7a36253" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[[CVE Anniversary Activity] CVE report analysis, exclusive activity is now open!]]></title>
            <link>https://medium.com/@security.tecno/cve-exclusive-activity-analyze-12-cve-reports-and-start-a-reward-activity-4bab97436b06?source=rss-24695556bc50------2</link>
            <guid isPermaLink="false">https://medium.com/p/4bab97436b06</guid>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[cve]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[report]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <dc:creator><![CDATA[TECNO Security]]></dc:creator>
            <pubDate>Wed, 19 Mar 2025 02:46:46 GMT</pubDate>
            <atom:updated>2025-03-19T02:50:47.621Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iPcE6QvdTAN7rIlH7lFRrw.png" /></figure><p>On March 19th, 2025, TECNO Security Response Center officially obtained authorization from the CVE program and became the first anniversary of the CVE Numbering Agency (CNA). In this year, we issued 12 CVE vulnerability numbers. Today, let’s review these CVE reports together and start our exclusive anniversary activity.</p><h3>💎1. Key Highlights of CVE Reports</h3><p>Over the past year, a total of 12 CVE vulnerability identifiers have been issued, with 12 white hat hackers receiving this honor.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/825/1*3asvQNltCbBXfgTezat6rQ.png" /><figcaption>Click here to know the CVE reports details: <a href="https://security.tecno.com/SRC/blogdetail/397?lang=en_US">Resource Detail</a></figcaption></figure><p>These 12 reports come from 8 mobile applications, with vulnerabilities related to com.transsion.carlcare receiving the most CVE identifiers, accounting for 33.33%.</p><p>The types of these 12 reports vary, with the highest proportion being permission-related vulnerabilities, such as improper permission control and privilege escalation, accounting for 66.67%. This is followed by logical vulnerabilities, which account for 25%.</p><p>Based on the distribution of CVE identifiers and the reports received, we recommend focusing on the following applications and types to increase the chance of obtaining a CVE identifier:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/845/1*NshbNOHFKbYV-BmZxiqzfw.png" /></figure><p><strong>Vulnerability Types: </strong>Permission Control Vulnerabilities, Logical Vulnerabilities, Component Security, Code Execution, Remote Denial of Service, etc.</p><h3>🎯2. Exclusive CVE Anniversary Activity</h3><p><strong>Activity Time: </strong>March 19, 2025 — April 19, 2025</p><p><strong>Activity Target: </strong>TECNO mobile applications and TECNO devices</p><p><strong>Activity Rules:</strong></p><p><a href="https://security.tecno.com/SRC/blogdetail/245?lang=en_US">TECNO Mobile Application Security Vulnerability Reward Rules V4.1</a></p><p><a href="https://security.tecno.com/SRC/blogdetail/241?lang=en_US">TECNO Device Security Vulnerability Reward Rules V4.3</a></p><h3><strong>Activity Rewards:</strong></h3><p>① During the activity, submit valid mobile applications or terminal vulnerabilities of medium risk or higher that meet CVE allocation requirements to receive priority CVE allocation qualification and a CVE Honor Badge.</p><p>② During the activity, each researcher can earn additional security points for their first valid report at different risk levels, as follows:</p><p>● First valid low-risk vulnerability report: 200 security credits</p><p>● First valid medium-risk vulnerability report: 500 security credits</p><p>● First valid high-risk vulnerability report: 1000 security credits</p><p>● First valid critical vulnerability report: 1800 security credits</p><h3><strong>Important Notes:</strong></h3><p>* This activity is only applicable to valid vulnerability reports for mobile and terminal categories. Reports ultimately rewarded as Web type do not fall within the scope of this activity.</p><p>* Special attention: Boomplay (com.afmobi.boomplayer) does not participate in this activity.</p><p>* This activity cannot be simultaneously shared with other security point reward activities. If there is an overlap, the higher reward option will be chosen.</p><p>* CVE allocation for all valid reports will occur after the vulnerabilities are fixed. Click to view the CVE ID Application Instruction</p><p>Article source:<a href="https://security.tecno.com/SRC/blogdetail/397?lang=en_US"> [CVE Exclusive Activity] Celebrating the first anniversary of TECNO Security Response Center becoming CNA!</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4bab97436b06" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[[Best of February — M3Di] From Forest to Code: Transformational Security Researcher Growth Notes]]></title>
            <link>https://medium.com/@security.tecno/best-of-february-m3di-from-forest-to-code-transformational-security-researcher-growth-notes-5079ac24d1b4?source=rss-24695556bc50------2</link>
            <guid isPermaLink="false">https://medium.com/p/5079ac24d1b4</guid>
            <category><![CDATA[app-development]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[hacker]]></category>
            <category><![CDATA[security]]></category>
            <dc:creator><![CDATA[TECNO Security]]></dc:creator>
            <pubDate>Mon, 17 Mar 2025 06:12:55 GMT</pubDate>
            <atom:updated>2025-03-17T06:12:55.767Z</atom:updated>
            <content:encoded><![CDATA[<h3>[Best of February — M3Di] From Forest to Code: Transformational Security Researcher Growth Notes</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k96wLuP8JIUBt_nhVq0W1Q.png" /></figure><p>He is from Yunnan, China, and has four years of experience in security bug mining. Over the past two years, he has dedicated himself wholeheartedly to security bug research. <strong>He is a security researcher who has successfully transitioned and grown rapidly. </strong>His name is M3Di. Today, let’s explore his journey in security research together.</p><h3>Following Your Inner Choice: From Interests to Careers</h3><p>If we were to describe M3Di’s learning and work experience in one sentence, it would probably be ‘a fantastic drift from the forest to the firewall.’ Why describe it this way? Because his college major was in forestry, primarily focused on the study of forests, but now he hunts for vulnerabilities in the code jungle and has become a white hat hero in the cybersecurity world.</p><p><strong>All the turning points stemmed from his university interests and extensive exploration.</strong> M3Di’s first encounter with cybersecurity captivated him immensely. He began learning about many famous hackers in history, watched various hacker movies, and gradually developed a yearning for the mysterious and challenging world of cybersecurity. Thus, he started self-studying Python and JavaScript through online courses. Although this knowledge was far from his major, it allowed him to open the magical book of the coding world. The combination of 0s and 1s made him appreciate the allure of computer programming.</p><p>After graduation, M3Di decisively chose a career in software development. <strong>Following an unexpected job adjustment, he transitioned into the role of a security engineer.</strong> Witnessing for the first time how hackers could precisely exploit system vulnerabilities, akin to a woodpecker, his dormant exploratory instincts were suddenly awakened. He began exploring security bug bounty cases and various platforms, using his skills to assist different organizations in identifying security bugs. Thus, his journey in the world of security bug bounties officially commenced.</p><h3>Safeguarding Aafety Achievements: From Persistence To Communication</h3><p>Digging for vulnerabilities always demands effort and perseverance. For M3Di, the most memorable experience in vulnerability mining was discovering his first RCE vulnerability. After days of unsuccessful payload testing, he was on the verge of giving up. With a last glimmer of hope, he tried a new payload — and it successfully triggered! Overcome with excitement, he jumped up and shouted, ‘Finally done!</p><p>Looking back on that moment, M3Di realizes that the problem wasn’t as complicated as it seemed. With greater flexibility and attention to detail, real vulnerabilities can be uncovered. This experience inspired him: <strong>no matter what challenges arise in future testing, it’s essential to maintain a calm mindset, carefully evaluate the potential issues of each functional button, and repeatedly test any uncertainties. This approach brings him closer to success.</strong></p><p>The life of a security researcher isn’t always in the spotlight, much like how forests experience both dry and rainy seasons. Researchers often face challenges, the most common being when reported results and rewards fall short of expectations. While some may choose to disclose these issues publicly, M3Di views this as an extreme measure. He advocates for a more mature approach: <strong>prioritizing communication with the audit team, understanding their perspectives and requirements, and providing additional insights and evidence of vulnerability risks.</strong> By doing so, a consensus can ultimately be reached, leading to a sustainable and mutually beneficial outcome.</p><h3>Accepting Industry Challenges: From Learning to Mastery</h3><p>Vulnerability mining is not always smooth sailing, it is a lonely and challenging road. Every full-time security researcher who digs vulnerabilities has one biggest worry, which is unstable income. In the past two years, M3Di has devoted himself wholeheartedly to security bugs mining, although sometimes the harvest is good, the overall income is not stable. Faced with the increasing influx of more security researchers and the increasing difficulty of security bugs mining, M3Di has no unique solution, but he believes that <strong>“reading more, learning more, and thinking more”</strong> is always right. In addition, it is necessary to <strong>maintain good health,</strong> <strong>which is the capital of everything.</strong> In order to make his life more relaxed, M3Di plans to look for a formal job in the near future, <strong>constantly learning new skills and growing in addition to vulnerability mining.</strong></p><p>When economic pressure on enterprises increases, security budgets are often viewed as cost expenditures, leading to expense cuts as a short-term survival strategy. M3Di understands this situation well but also believes that reducing the security budget can decrease the participation of security researchers. This reduction in engagement may lead to risks such as data breaches and compliance fines due to delayed responses to security vulnerabilities.</p><p><strong>When companies cut security budgets and security competition continues to increase, how should security researchers respond?</strong></p><p>M3Di believes that security researchers need to acknowledge the current situation, continuously strengthen their skills, and seek out new opportunities. He states, ‘<strong>The current cybersecurity industry is still rife with opportunities, but the direction is constantly shifting. </strong>In the future, confrontations will escalate, and AI will transform both attacks and defenses. For example, hackers are using AI to achieve automated vulnerability mining, like Google’s Project Zero, which has increased AI-assisted fuzzing efficiency eight times. Defenders need to be able to detect issues earlier and faster than AI through methods such as log analysis, predicting attack paths, and automated repair. Relying solely on traditional penetration testing techniques will gradually become insufficient.’ <strong>Therefore, in the rapidly advancing field of AI technology, security researchers can enhance their AI tool application skills to help enterprises implement security defenses more efficiently and comprehensively.</strong></p><p>Whether you are a novice or an experienced security researcher, it’s essential to improve both your mindset and skills continuously. M3Di offers the following suggestions:</p><p><strong>Mindset:</strong> Security researchers should be prepared for long-term breakthroughs. Vulnerability mining is not achieved overnight and requires overcoming the urge for immediate success. When repeated explorations yield no results, don’t be easily discouraged. Trust that hard work and persistence will eventually lead to breakthroughs.</p><p><strong>Skills:</strong></p><p><strong>Master the Basics:</strong> Security researchers need a solid understanding of OWASP Top 10 vulnerabilities, as foundational skills are crucial.</p><p><strong>Learn from Others: </strong>PortSwigger is an excellent platform for learning, helping novice researchers gain a deep understanding of vulnerabilities. Once you have a good grasp of various vulnerability principles, you can learn from shared experiences on platforms like Pentester, HackerOne, and Medium.</p><p><strong>Physical Protection: </strong>Vulnerability mining often involves 90% repetitive operations and 10% inspiration. Some highly impactful vulnerabilities have relatively simple underlying principles, so if you’re willing to put in the effort, you’re bound to achieve results.</p><p>Security researchers are the guardians of the digital world. As Thoreau said in Walden, ‘What matters is not the abyss you gaze into, but the stars you see in the abyss.’ In the realm of cybersecurity, M3Di is one of those who seeks the stars. We look forward to more individuals like him emerging to join us in safeguarding the security of TECNO products and services.</p><p>Article source: <a href="https://security.tecno.com/SRC/blogdetail/395?lang=en_US">[Best of February — M3Di] From Forest to Code: Transformational Security Researcher Growth Notes</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5079ac24d1b4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Secure Coding Practices for TEE Applications: A Guide for CA and TA Developers]]></title>
            <link>https://medium.com/@security.tecno/secure-coding-practices-for-tee-applications-a-guide-for-ca-and-ta-developers-43978c4b82d4?source=rss-24695556bc50------2</link>
            <guid isPermaLink="false">https://medium.com/p/43978c4b82d4</guid>
            <category><![CDATA[security]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[writing]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[blog]]></category>
            <dc:creator><![CDATA[TECNO Security]]></dc:creator>
            <pubDate>Mon, 10 Mar 2025 06:25:14 GMT</pubDate>
            <atom:updated>2025-03-10T06:26:38.422Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1lOWWT3xUsL1yXwAZ_Le7g.png" /></figure><p>By TECNO Security team</p><h3>1. Introduction</h3><p>Trusted Execution Environments (TEEs) have become an essential component in modern secure computing architectures. TEEs provide a isolated and secure area within a device’s processor, offering a higher level of security for sensitive operations and data storage. As developers working on Client Applications (CAs) in the normal world and Trusted Applications (TAs) in the secure world, it’s crucial to understand and implement robust security practices.</p><p>This article aims to guide developers through the intricacies of secure coding for TEE applications, focusing on best practices, common vulnerabilities, and effective mitigation strategies.</p><h4>1.1 Understanding the TEE Architecture</h4><p>To effectively develop secure TEE applications, it’s essential to understand the underlying architecture:</p><pre>Normal World (Rich OS)     |     Secure World (TEE)<br>                           |<br>+------------------+       |    +------------------+<br>|  Client App (CA) |       |    | Trusted App (TA) |<br>+------------------+       |    +------------------+<br>|    Rich OS API   |       |    |    TEE API       |<br>+------------------+       |    +------------------+<br>|   TEE Client API |-------|----| TEE Core API     |<br>+------------------+       |    +------------------+<br>|     Hardware     |       |    |    Hardware      |<br>+------------------+       |    +------------------+</pre><p>The TEE architecture separates the system into two distinct worlds:</p><p>1. Normal World (Rich OS): This is where the regular operating system and applications run.</p><p>2. Secure World (TEE): This is the isolated environment where sensitive operations are performed.</p><p>Communication between these worlds occurs through well-defined channels, typically involving a special kernel driver in the normal world and the TEE core in the secure world.</p><p>Memory management in TEE systems is critical. The secure world has access to both secure and non-secure memory, while the normal world can only access non-secure memory.</p><h3>2. Secure Coding Practices for Trusted Applications (TAs)</h3><h4>2.1 Input Validation and Sanitization</h4><p>Never trust input from the normal world. All parameters received from the CA must be thoroughly validated.</p><p><strong>Example: </strong>Bounds checking on received buffers</p><pre>TEE_Result TA_ValidateInput(uint32_t param_types, TEE_Param params[4]) {<br>    if (TEE_PARAM_TYPE_GET(param_types, 0) != TEE_PARAM_TYPE_MEMREF_INPUT) {<br>        return TEE_ERROR_BAD_PARAMETERS;<br>    }<br>    <br>    if (params[0].memref.size &gt; MAX_ALLOWED_SIZE) {<br>        return TEE_ERROR_BAD_PARAMETERS;<br>    }<br>    <br>    // Further validation...<br>    return TEE_SUCCESS;<br>}</pre><h4>2.2 Secure Memory Handling</h4><p>Understanding TEE memory limitations is crucial. Always use secure memory for sensitive data and operations.</p><p>Example: Using TEE_CheckMemoryAccessRights()</p><pre>TEE_Result TA_CheckMemoryAccess(void *buf, size_t len) {<br>    TEE_Result res;<br>    <br>    res = TEE_CheckMemoryAccessRights(TEE_MEMORY_ACCESS_READ | TEE_MEMORY_ACCESS_ANY_OWNER,<br>                                      buf, len);<br>    if (res != TEE_SUCCESS) {<br>        EMSG(&quot;Memory access check failed&quot;);<br>        return res;<br>    }<br>    <br>    // Proceed with memory operations<br>    return TEE_SUCCESS;<br>}</pre><h4>2.3 Cryptographic Operations</h4><p>Always use TEE-provided cryptographic functions for secure operations. Proper key management is essential.</p><p>Example: Secure key generation and storage</p><pre>TEE_Result TA_GenerateAndStoreKey(void) {<br>    TEE_Result res;<br>    TEE_ObjectHandle key;<br>    <br>    res = TEE_AllocateTransientObject(TEE_TYPE_AES, 256, &amp;key);<br>    if (res != TEE_SUCCESS) return res;<br>    <br>    res = TEE_GenerateKey(key, 256, NULL, 0);<br>    if (res != TEE_SUCCESS) {<br>        TEE_FreeTransientObject(key);<br>        return res;<br>    }<br>    <br>    // Store the key securely<br>    res = TEE_CreatePersistentObject(TEE_STORAGE_PRIVATE,<br>                                     &quot;my_secure_key&quot;, 13,<br>                                     TEE_DATA_FLAG_ACCESS_WRITE,<br>                                     key, NULL, 0, NULL);<br>    <br>    TEE_FreeTransientObject(key);<br>    return res;<br>}</pre><h4>2.4 Access Control</h4><p>Implementing proper access controls within the TA is crucial. Always verify client identity and permissions.</p><p>Example: Using TEE_GetPropertyAsIdentity()</p><pre>TEE_Result TA_CheckClientIdentity(void) {<br>    TEE_Identity identity;<br>    TEE_Result res;<br>    <br>    res = TEE_GetPropertyAsIdentity(TEE_PROPSET_CURRENT_CLIENT,<br>                                    &quot;gpd.client.identity&quot;, &amp;identity);<br>    if (res != TEE_SUCCESS) return res;<br>    <br>    // Check if the client has necessary permissions<br>    if (identity.login != TEE_LOGIN_TRUSTED_APP) {<br>        return TEE_ERROR_ACCESS_DENIED;<br>    }<br>    <br>    // Further identity checks...<br>    return TEE_SUCCESS;<br>}</pre><h4>2.5 Secure Data Storage</h4><p>Use secure storage for sensitive data. When using non-secure storage, always encrypt the data first.</p><p><strong>Example: </strong>Using TEE_CreatePersistentObject()</p><pre>TEE_Result TA_StoreSecureData(uint8_t *data, size_t data_len) {<br>    TEE_ObjectHandle object;<br>    TEE_Result res;<br>    <br>    res = TEE_CreatePersistentObject(TEE_STORAGE_PRIVATE,<br>                                     &quot;secure_data&quot;, 11,<br>                                     TEE_DATA_FLAG_ACCESS_WRITE,<br>                                     TEE_HANDLE_NULL,<br>                                     NULL, 0,<br>                                     &amp;object);<br>    if (res != TEE_SUCCESS) return res;<br>    <br>    res = TEE_WriteObjectData(object, data, data_len);<br>    TEE_CloseObject(object);<br>    <br>    return res;<br>}</pre><h3>3. Common Vulnerabilities and Mitigation Strategies</h3><h4>3.1 Time-of-check to time-of-use (TOCTOU) vulnerabilities</h4><p>TOCTOU vulnerabilities occur when the state of a resource changes between the time it’s checked and the time it’s used.</p><p><strong>Mitigation: </strong>Use atomic operations or proper locking mechanisms.</p><pre>TEE_Result TA_SecureOperation(TEE_Param params[4]) {<br>    TEE_Result res;<br>    <br>    // Acquire lock<br>    res = TEE_AcquirePersistentObjectEnumerator(&amp;enum_handle);<br>    if (res != TEE_SUCCESS) return res;<br>    <br>    // Perform checks and operations atomically<br>    res = PerformSecureOperation(params);<br>    <br>    // Release lock<br>    TEE_ReleasePersistentObjectEnumerator(enum_handle);<br>    <br>    return res;<br>}</pre><h4>3.2 Side-channel attacks</h4><p>Side-channel attacks exploit information gained from the implementation of a computer system, rather than weaknesses in the implemented algorithm itself.</p><p><strong>Mitigation: </strong>Use constant-time algorithms and avoid data-dependent branching.</p><pre>// Constant-time comparison function<br>int secure_memcmp(const void *s1, const void *s2, size_t n) {<br>    const unsigned char *p1 = s1, *p2 = s2;<br>    int result = 0;<br>    for (size_t i = 0; i &lt; n; i++) {<br>        result |= p1[i] ^ p2[i];<br>    }<br>    return result; // 0 if equal, nonzero otherwise<br>}</pre><h4>3.3 Rollback attacks on persistent storage</h4><p>Rollback attacks involve replacing newer stored data with older versions to exploit outdated security measures.</p><p>Mitigation: Use monotonic counters or timestamps, and cryptographically bind them to the stored data.</p><pre>TEE_Result TA_SecureStore(uint8_t *data, size_t data_len) {<br>    TEE_Time time;<br>    TEE_GetSystemTime(&amp;time);<br>    <br>    // Append timestamp to data<br>    uint8_t *secured_data = malloc(data_len + sizeof(TEE_Time));<br>    if (!secured_data) return TEE_ERROR_OUT_OF_MEMORY;<br>    <br>    memcpy(secured_data, data, data_len);<br>    memcpy(secured_data + data_len, &amp;time, sizeof(TEE_Time));<br>    <br>    // Store secured_data...<br>    <br>    free(secured_data);<br>    return TEE_SUCCESS;<br>}</pre><h4>3.4 Best Practices for CA-TA Interaction</h4><p><strong>3.4.1 Minimizing data transfer between worlds</strong></p><p>To reduce attack surface and improve performance, minimize the amount of data transferred between the normal world and secure world.</p><ul><li><strong>Use parameter types efficiently:</strong> Prefer value parameters for small data and shared memory for larger data sets.</li><li><strong>Batch operations:</strong> Combine multiple operations into a single world switch when possible.</li><li><strong>Process data in the secure world:</strong> Perform computations in the TA rather than transferring results back and forth.</li></ul><p><strong>3.4.2 Proper session management</strong></p><ul><li><strong>Reuse sessions:</strong> Open a session once and reuse it for multiple operations to reduce overhead.</li><li><strong>Implement session timeouts:</strong> Close inactive sessions to free up resources.</li><li><strong>Handle session errors gracefully:</strong> Implement retry mechanisms for session opening failures.</li></ul><p><strong>3.4.3 Secure parameter passing techniques</strong></p><ul><li><strong>Validate all parameters in both CA and TA:</strong> Implement thorough checks on both sides.</li><li><strong>Use cryptographic protection for sensitive data:</strong> Encrypt sensitive data before passing it to the TA.</li><li><strong>Implement secure key exchange: </strong>Use a secure key exchange protocol if encryption keys need to be shared.</li></ul><h3>4. Testing for Insecure Communication</h3><h4>4.1 Security-focused testing methodologies</h4><p>When testing TEE applications, it’s crucial to adopt security-focused methodologies:</p><ul><li><strong>Threat modeling:</strong> Identify potential threats and vulnerabilities specific to your TEE application.</li><li><strong>Penetration testing:</strong> Attempt to exploit the system from both the normal world and secure world perspectives.</li><li><strong>Code reviews: </strong>Conduct thorough code reviews focusing on security aspects.</li></ul><h4>4.2 Tools for testing TEE applications</h4><p>While specific tools may vary depending on the TEE implementation, some general categories include:</p><ul><li><strong>Static Analysis Tools:</strong> These can help identify potential vulnerabilities in the source code.</li><li><strong>Dynamic Analysis Tools:</strong> These analyze the application during runtime.</li><li><strong>Fuzzing Tools: </strong>These provide invalid, unexpected, or random data as inputs to your application.</li></ul><p><strong>⬇️Example: Fuzzing TEE interfaces</strong></p><p>Here’s a simple example of how you might set up a fuzzing test for a TEE interface:</p><pre>#include &lt;stdio.h&gt;<br>#include &lt;stdlib.h&gt;<br>#include &lt;time.h&gt;<br>#include &quot;tee_client_api.h&quot;</pre><pre>#define MAX_BUFFER_SIZE 1024</pre><pre>void fuzz_tee_interface(TEEC_Session *session) {<br>    TEEC_Operation op;<br>    TEEC_Result res;<br>    uint8_t buffer[MAX_BUFFER_SIZE];<br>    uint32_t buffer_size;</pre><pre>    srand(time(NULL));</pre><pre>    for (int i = 0; i &lt; 1000; i++) {  // Run 1000 fuzz tests<br>        buffer_size = rand() % MAX_BUFFER_SIZE;<br>        for (uint32_t j = 0; j &lt; buffer_size; j++) {<br>            buffer[j] = rand() % 256;<br>        }</pre><pre>        memset(&amp;op, 0, sizeof(op));<br>        op.paramTypes = TEEC_PARAM_TYPES(TEEC_MEMREF_TEMP_INPUT, TEEC_NONE, TEEC_NONE, TEEC_NONE);<br>        op.params[0].tmpref.buffer = buffer;<br>        op.params[0].tmpref.size = buffer_size;</pre><pre>        res = TEEC_InvokeCommand(session, rand() % 256, &amp;op, NULL);<br>        printf(&quot;Fuzz test %d: result = 0x%x\n&quot;, i, res);<br>    }<br>}</pre><h3>5. Performance Considerations</h3><h4>5.1 Tools for testing TEE applications</h4><p>While security is paramount in TEE applications, performance should not be neglected. Here are some tips to balance both:</p><ul><li><strong>Minimize world switches: </strong>Each transition between the normal world and secure world incurs a performance cost.</li><li><strong>Optimize cryptographic operations:</strong> Use hardware-accelerated crypto functions when available.</li><li><strong>Efficient memory usage: </strong>Properly manage and release memory in the secure world.</li></ul><h4>5.2 Efficient use of TEE resources</h4><p>TEE resources are often limited. Use them judiciously:</p><pre>TEE_Result TA_EfficientOperation(uint32_t param_types, TEE_Param params[4]) {<br>    TEE_Result res;<br>    void *temp_buf = NULL;</pre><pre>    // Allocate memory only when needed<br>    temp_buf = TEE_Malloc(TEMP_BUFFER_SIZE, TEE_MALLOC_FILL_ZERO);<br>    if (!temp_buf) return TEE_ERROR_OUT_OF_MEMORY;</pre><pre>    // Perform operation<br>    res = PerformSecureOperation(temp_buf);</pre><pre>    // Free memory as soon as it&#39;s no longer needed<br>    TEE_Free(temp_buf);</pre><pre>    return res;<br>}</pre><h3>6. Keeping Up-to-Date</h3><h4>6.1 Staying informed about TEE vulnerabilities</h4><ul><li>Subscribe to security mailing lists specific to your TEE implementation.</li><li>Regularly check for updates from your TEE vendor.</li><li>Follow security researchers and organizations focusing on mobile and embedded security.</li></ul><h4>6.2 Regular security audits and updates</h4><ul><li>Conduct periodic security audits of your TEE applications.</li><li>Implement a robust update mechanism for both CAs and TAs.</li></ul><p>Here’s a simple version checking mechanism:</p><pre>#define CURRENT_VERSION 0x00010002  // Version 1.2</pre><pre>TEE_Result TA_CheckVersion(uint32_t param_types, TEE_Param params[4]) {<br>    uint32_t version = params[0].value.a;</pre><pre>    if (version &lt; CURRENT_VERSION) {<br>        EMSG(&quot;TA version is outdated. Please update.&quot;);<br>        return TEE_ERROR_BAD_STATE;<br>    }</pre><pre>    return TEE_SUCCESS;<br>}</pre><h3>7. Conclusion</h3><p>Secure coding for TEE applications requires a comprehensive understanding of the TEE architecture, potential vulnerabilities, and best practices for both normal world and secure world development. Key principles to remember include:</p><ul><li>Never trust input from the normal world</li><li>Properly manage secure memory</li><li>Use TEE-provided cryptographic functions</li><li>Implement strong access controls</li><li>Securely store sensitive data</li><li>Regularly test and update your applications</li></ul><p>By following these secure coding practices, developers can create robust and secure TEE applications that effectively protect sensitive operations and data. However, security is an ongoing process. Stay vigilant, keep learning, and always be prepared to adapt to new security challenges in the ever-evolving landscape of TEE development.</p><pre>+-------------------+<br>   |    Continuous     |<br>   |     Learning      |<br>   +-------------------+<br>           |<br>           v<br>+-------------------+    +-------------------+<br>|   Secure Coding   |---&gt;|    Regular        |<br>|    Practices      |    |    Testing        |<br>+-------------------+    +-------------------+<br>           |                      |<br>           v                      v<br>+-------------------+    +-------------------+<br>|   Performance     |&lt;--&gt;|    Security       |<br>| Optimization      |    |    Updates        |<br>+-------------------+    +-------------------+<br>           |                     |<br>           v                     v<br>            +-------------------+<br>            | Robust and Secure |<br>            | TEE Applications  |<br>            +-------------------+</pre><p><strong>Source:</strong> <a href="https://security.tecno.com/SRC/blogdetail/388?lang=en_US">Secure Coding Practices for TEE Applications: A Guide for CA and TA Developers</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=43978c4b82d4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[【Recognition】Excellent Security Researcher in January 2025 → iiiiiinv]]></title>
            <link>https://medium.com/@security.tecno/recognition-excellent-security-researcher-in-january-2025-iiiiiinv-29bcf9b3d91b?source=rss-24695556bc50------2</link>
            <guid isPermaLink="false">https://medium.com/p/29bcf9b3d91b</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[apps]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[research]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <dc:creator><![CDATA[TECNO Security]]></dc:creator>
            <pubDate>Fri, 21 Feb 2025 06:13:03 GMT</pubDate>
            <atom:updated>2025-02-21T06:13:03.337Z</atom:updated>
            <content:encoded><![CDATA[<p>The monthly star of TECNO Security Response Center has been announced! In January, <a href="https://security.tecno.com/SRC/publicProfile/?userId=4576">iiiiiinv</a> from China won this honor. We also conducted some simple interviews with him. Below is his security research story. Let’s get to know him together!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*9Wlh9mYkaKLWS0OJQ926cA.png" /></figure><h3>🧑‍💻Self-introduction of iiiiiinv</h3><p>Hello everyone, I am iiiiiinv from China, and my main job as a software development engineer. I have been conducting security research for about a year, mainly using my spare time to conduct security research and vulnerability discovery.</p><p>Thank you very much to the TECNO Security Response Center. This is my third month joining this platform, and I feel very honored to have achieved this achievement so quickly.</p><h3>💡Security Research Q&amp;A · iiiiiinv</h3><h4>❓Q1: What motivated or motivated you to become a security researcher?</h4><p><strong>🧑‍💻iiiiiinv: </strong>I first came into contact with vulnerability discovery around the end of 2023 because my main job was software development. At that time, I was fixing a security issue with a public component. While researching, I was surprised to find that vulnerabilities could actually make money. This knowledge opened the door to a new world for me, so I became a part-time White Hat (Security Researcher).</p><h4>❓Q2: What preparations will you make when preparing to test security bugs?</h4><p><strong>🧑‍💻iiiiiinv: </strong>When I first started looking for vulnerabilities, I basically only used Burp Suite. Gradually, I started writing some plugins to improve testing efficiency. Then, I started trying on various SRC platforms. You may ask, why do I need to do this?</p><p>① When I first started looking for vulnerabilities, I thought it was important to find a product direction that I was suitable for or good at. Because continuous output can bring positive feedback, so that we can enter a virtuous cycle.</p><p>② Before starting the test, be sure to check the platform’s vulnerability rules, especially the prohibited items and effective asset scope.</p><p>③ Finally, it’s about asset collection. Assets must be as comprehensive as possible. If you find assets that others haven’t found, the probability of finding loopholes will be higher than others.</p><p>The above is just a small part of what he has shared. For more insights into his thoughts, explorations, and recommendations on security research, please click the link below to read the details.</p><p><a href="https://security.tecno.com/SRC/blogdetail/387?lang=en_US">【Recognition】Excellent Security Researcher in January 2025 → iiiiiinv</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=29bcf9b3d91b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>