web3_code_hunt (@web3_code_hunt) header
web3_code_hunt (@web3_code_hunt) profile picture

Blockchain Engineer

New Jersey, USA
Joined May 2022
React Native New Architecture of React Native is really a power for both 👇 1. For your App 2. For sharpening your skill to be a Sr. React Native Engineer I'm going to deep dive more 🚀 I have written the full flow of React Native Architecture here 👇medium.com/@anisurrahmanbup/…
2
37
177
13,626
#web3 security enthusiast Secure Stability: Flash Minting Restrictions 1️⃣ Stability and Consistency 2️⃣ Risk Mitigation 3️⃣ Enhanced Security let's discuss 👇 1️⃣ Stability and Consistency: By disallowing flash minting, tokens maintain stability and consistency in their balance and total supply. Flash minting, which allows users to generate tokens out of thin air, can lead to substantial swings in both these aspects, potentially impacting the token's value and overall ecosystem. 2️⃣ Risk Mitigation: The absence of flash minting reduces the risk of unintended consequences and potential exploits. Flash minting has the potential to create imbalances, overflow issues, or even disrupt the token's underlying functionality. By not allowing flash minting, the token contract can focus on implementing strict and comprehensive overflow checks, ensuring the operation of the token remains secure and reliable. 3️⃣ Enhanced Security: Preventing flash minting requires thorough validation and comprehensive checks in the token's contract code. By implementing robust overflow checks, the token contract can mitigate the risk of potential vulnerabilities and exploits related to excessive minting, protecting the token's integrity and the interests of token holders.
4
2
7
201
Great explained Secure Stability: Flash Minting Restrictions @auditx_eth 🫡
2
4
14
#web3 security enthusiast! discuss about ,"Risks & Contracts: Token Balances" 1️⃣ User Awareness 2️⃣ Contract Considerations 3️⃣ Risk Mitigation let's dive 👇 1️⃣ User Awareness: It is important for users to have a clear understanding of the risks associated with token balances and flash loans. They should be educated about the potential vulnerabilities and attacks that can arise when dealing with large funds or engaging in flash loans. 2️⃣ Contract Considerations: Contracts that rely on token balances need to be designed with careful consideration for potential attackers with large funds or those utilizing flash loans. Security measures should be implemented to detect and prevent malicious activities that target token balances, ensuring the contract's integrity and the safety of user funds. 3️⃣ Risk Mitigation: To mitigate the risks associated with token balances and flash loans, developers should conduct thorough auditing and review processes. This helps identify potential vulnerabilities and provides an opportunity to strengthen the contract's security. By implementing appropriate safeguards, developers can minimize the chances of successful attacks and protect the interests of users.
3
2
8
149
#Web3 Gas Optimisers 👉 Let's discuss today on - "Costly Loops" Computational power on Ethereum environments is paid (using Ether). Thus, reducing the computational steps required to complete an operation is not only a matter of optimization, but also cost efficiency. More 👇
4
2
8
168
Costly loops are important to reduce. Great chance for Auditors. @auditx_eth 🫡
1
5
17
#Web3 BUG hunters - ❝ HIGH VULNERABILITY - Unchecked External Call ❞ If you want to find this BUG from Smart Contracts, let's jump bellow in this Thread👇
5
1
10
358
Thanks @auditx_eth ™ for sharing this BUG 💯
1
5
26
#web3 security enthusiast discuss about "Risk-Aware Token Balances: Flash Loan Considerations" 1️⃣ Risk Awareness 2️⃣ Contract Design 3️⃣ Attack Prevention 4️⃣ Auditing and Review 5️⃣ Education and Awareness let's start 👇 1️⃣ Risk Awareness: Users need to be aware of the risks associated with token balance and flash loans. Having a large amount of funds or engaging in flash loans can make a user a target for potential attackers, and this understanding is crucial to protect against potential attacks. 2️⃣ Contract Design: Contracts relying on token balances should be carefully designed to consider potential attackers with large funds or those utilizing flash loans. Robust security measures, such as thorough input validation and checks, should be implemented to mitigate the risk of malicious activities targeting token balances. 3️⃣ Attack Prevention: Contract developers should implement measures to prevent and mitigate attacks from users with large funds or through flash loans. This can include implementing limits on token transfers, enforcing time-based restrictions, or implementing mechanisms to detect and prevent abnormal transaction patterns. 4️⃣ Auditing and Review: Contracts relying on token balances should undergo thorough auditing and review processes. Experienced auditors can identify potential vulnerabilities and provide recommendations to strengthen the contract's security against attacks involving large funds or flash loans. 5️⃣ Education and Awareness: Users and developers should be educated about the risks associated with token balance and flash loans. This can be done through informational resources, guidelines, and best practices to ensure that both parties understand the potential risks involved and take necessary precautions to protect token balances and contract security.
3
1
9
202
Thanks for sharing these 4 points @auditx_eth . Really important 💯
1
3
16
#web3 BUG - Double voting or msg.sender spoofing Using vanilla ERC20 tokens or NFTs as tickets to weigh vote is unsafe because attackers can vote with one address, transfer the tokens to another address, and vote again from that address. Here is a minimal example👇 To prevent this attack, ERC20 Snapshot or ERC20 Votes should be used. By snapshotting a point of time in the past, the current token balances cannot be manipulated to gain illicit voting power
3
1
10
229
Yea, this is simple but very important BUG. Devs should care about it. Thanks for sharing @auditx_eth 💯
1
5
27
#web3 security enthusiast! discuss about "Multi-Exchange Protection: Token Distribution" 1️⃣ Diversification 2️⃣ Risk Mitigation 3️⃣ Contract Reliability 4️⃣ Market Liquidity 5️⃣ Investor Confidence let's start: 1️⃣ Diversification: When tokens are listed on multiple exchanges, it reduces the risk of a single point of failure. If all the tokens are concentrated in one exchange, any compromise or security breach in that particular exchange could potentially compromise the contract that relies on the token. 2️⃣ Risk Mitigation: By spreading tokens across different exchanges, the potential impact of a compromised exchange is minimized. If tokens are distributed among several reputable exchanges, the likelihood of a single event affecting all exchanges simultaneously is significantly reduced. 3️⃣ Contract Reliability: When a contract relies on a token, the security and integrity of that token become crucial. By ensuring that the token is available on multiple exchanges, the contract's reliability increases as it becomes less dependent on a single exchange's stability or security measures. 4️⃣ Market Liquidity: Listing tokens on multiple exchanges increases their exposure to a broader range of market participants. This enhances liquidity and trading opportunities for token holders, allowing for more efficient price discovery and potentially reducing the risk of market manipulation 5️⃣ Investor Confidence: Tokens available on multiple exchanges instill greater confidence among investors. The perception of a well-distributed token across reputable exchanges signifies a project's commitment to transparency, accessibility, and market presence, thereby attracting more investors and fostering a healthy ecosystem.
3
1
11
267
#Web3 devs & #Crypto Investors After SEC (Securities and Exchange Commission) has charged #Coinbase , it is important to learn these 4 while creating an ERC-20 Token 1️⃣ Inflationary Cryptocurrency 2️⃣ Deflationary Cryptocurrency 3️⃣ Factors behind Economics of Inflationary and Deflationary 4️⃣ Inflation Token -> Deflation Token Stay safe & secured by learn 👇 1️⃣ An inflationary cryptocurrency is one with an increasing number of tokens in circulation. Some of the common approaches for introducing new tokens through mining, staking, and other methods can help in increasing the circulating supply of tokens. #Dogecoin is the best example of inflationary cryptocurrencies in an inflationary vs deflationary cryptocurrencies debate. One of the creators of Dogecoin removed the hard supply cap of 100 billion DOGE in the year 2014. The move was particularly directed towards ensuring an unlimited supply of the asset. 2️⃣ Deflationary cryptocurrencies are the ones where the supply of coins would decrease over the course of time. Therefore, the value of every coin would increase even in scenarios with consistent demand. One of the examples of showcasing deflationary cryptocurrencies refers to the Crypto Exchange Binance. The crypto exchange destroys a few of its native Binance Coins or BNBs to reduce the supply every quarter. Similarly, the crypto exchange Polygon also burns its native MATIC tokens to reduce supply of the token. 3️⃣ Factors behind Economics of Inflationary and Deflationary Crypto ✅ Maximum Supply ✅ Circulating Supply ✅ Total Supply 4️⃣ You can convert your Inflationary Token to Deflationary Token anytime by these 2 approach ✅ Periodic burnout of tokens ✅ Lowered minting rewards Source links: 1️⃣ xitter.cf/SECGov/status/16… 2️⃣ 101blockchains.com/inflation… Stay safe & secure by learn. Keep connection with @auditx_eth team so that you can know latest news about Security stuffs 🛡️
Today we charged Coinbase, Inc. with operating its crypto asset trading platform as an unregistered national securities exchange, broker, and clearing agency and for failing to register the offer and sale of its crypto asset staking-as-a-service program. sec.gov/news/press-release/2…
6
2
7
211
Yea need to keep safe your Tokens by the SEC law 💯. Thanks @auditx_eth team 🫡
1
3
22
#web3 BUG - Excessive function restriction 👇 ✅ Excessive validation probably means funds won’t get stolen, but it could mean funds get locked into the contract. Having too many safeguards in place is not a good thing either. Real life example: Akutars NFT One of the most high-profile incidents was the Akutars NFT which ended up with 34 million dollars worth of Eth stuck inside the smart contract and unwithdrawable. The contract had a well-intentioned mechanism to prevent the owner of the contract from withdrawing until all refunds from paying above the dutch auction price had been given. But due to a bug documented in the Twitter thread linked below, the owner was unable to withdraw the funds. 👇xitter.cf/0xInuarashi/stat… Getting the balance right Sushiswap gave too much power to untrusted users, and the Akutars NFT gave too little power to the admin. When designing smart contracts, a subjective judgement about how much liberty each class of users must be made, and this decision cannot be left to automated testing and tooling. There are significant tradeoffs with decentralisation, security, and UX that must be considered. For the smart contract programmer, explicitly writing out what users should and should not be able to do with certain functions is an important part of the development process. Security often boils down to managing the way money exits the contract As stated in the introduction, there are four primary ways smart contracts get hacked: 👇 👉Money stolen 👉Money frozen 👉Insufficient rewards 👉Excessive rewards “Money” here means anything of value, such as tokens, not just cryptocurrency. When coding or auditing a smart contract, the developer must be conscientious of the intended ways value is to flow in and out of the contract. The issues listed above are the primary ways smart contracts get hacked, but there are a lot of other root causes that can cascade into major issues,
etherscan.io/address/0xf42c3… 34 Million USD gone. Just like that. Locked in the contract forever. A lot of people put light on the grieving which locked processRefunds() for a bit, that was the first exploit. Luckily that was unlocked, but funds are still locked forever. How? 🧵 1/
4
1
9
298
Amazing BUG explanation @auditx_eth ™ 🫡
1
4
21
#web3security investigators! 🔗discuss about Contracts with Anonymous Token Teams 1️⃣ Accountability 2️⃣ Transparency 3️⃣ Review standards 4️⃣ Mitigating risks 5️⃣ Investor protection 1️⃣ Accountability: When it comes to token development, it is crucial to have a known and identifiable team responsible for the project. If the development team remains anonymous or operates within legal shelters, it becomes challenging to hold them accountable for any potential abuse or misconduct. 2️⃣ Transparency: A known token development team promotes transparency within the project. Users and investors can research and evaluate the team's credentials, expertise, and past experiences, allowing them to make informed decisions about whether to participate in the token ecosystem. 3️⃣ Review standards: Contracts involving anonymous development teams or those residing in legal shelters should be subject to higher scrutiny. Given the potential risks associated with such arrangements, it becomes imperative to conduct more rigorous reviews of the project's technical aspects, security measures, and compliance with relevant regulations. 4️⃣ Mitigating risks: Requiring a higher standard of review for contracts with anonymous teams or those in legal shelters helps mitigate potential risks. This includes reducing the likelihood of scams, fraudulent activities, or malicious intent, as well as ensuring the project is built on solid foundations. 5️⃣ Investor protection: Holding the token development team accountable and implementing stricter review standards enhances investor protection. It helps to safeguard against instances of abuse, fraud, or mismanagement, thereby fostering trust and confidence within the token ecosystem.
3
2
8
110
web3_code_hunt retweeted
#web3security investigators! 🔗discuss about Contracts with Anonymous Token Teams 1️⃣ Accountability 2️⃣ Transparency 3️⃣ Review standards 4️⃣ Mitigating risks 5️⃣ Investor protection 1️⃣ Accountability: When it comes to token development, it is crucial to have a known and identifiable team responsible for the project. If the development team remains anonymous or operates within legal shelters, it becomes challenging to hold them accountable for any potential abuse or misconduct. 2️⃣ Transparency: A known token development team promotes transparency within the project. Users and investors can research and evaluate the team's credentials, expertise, and past experiences, allowing them to make informed decisions about whether to participate in the token ecosystem. 3️⃣ Review standards: Contracts involving anonymous development teams or those residing in legal shelters should be subject to higher scrutiny. Given the potential risks associated with such arrangements, it becomes imperative to conduct more rigorous reviews of the project's technical aspects, security measures, and compliance with relevant regulations. 4️⃣ Mitigating risks: Requiring a higher standard of review for contracts with anonymous teams or those in legal shelters helps mitigate potential risks. This includes reducing the likelihood of scams, fraudulent activities, or malicious intent, as well as ensuring the project is built on solid foundations. 5️⃣ Investor protection: Holding the token development team accountable and implementing stricter review standards enhances investor protection. It helps to safeguard against instances of abuse, fraud, or mismanagement, thereby fostering trust and confidence within the token ecosystem.
3
2
8
110
#Web3 security Enthusiasts Top 10 #Solidity BUGs in one sight 👇👇👇👇 - credited by @101Blockchains
4
2
8
154
#web3 security investigators discuss about Blacklist Vulnerability In a token system, the owner of the tokens does not possess the ability to blacklist the contract itself. However, if the token contract includes a blacklist feature, malicious or compromised owners can exploit it to trap or restrict the functionality of contracts relying on those tokens. It's crucial to carefully consider the implementation of blacklisting mechanisms in token contracts to prevent potential misuse or abuse by compromised owners.
4
2
8
187
Thanks @auditx_eth for sharing Blacklist Vulnerability
1
3
13
#web security investigators 🔰Unpausable Token Risk The concept of pausable tokens refers to tokens that can be temporarily frozen or halted in their functionality. However, tokens themselves, as standalone units, cannot be paused or halted. It is the contracts or smart contracts that interact with tokens that can be paused. In certain scenarios, if the owners of these contracts become malicious or compromised, they can potentially trap or restrict the functionality of other contracts that rely on the pausable tokens, leading to undesirable consequences. Therefore, caution is necessary when implementing pausable token contracts to prevent such situations.
3
3
6
163
Unpausable Token Risk is one important stuff. Thanks @auditx_eth ™ for this
1
5
16
#web3 BUG - Improper Input Validation 👇 If access control is about controlling who calls a function, input validation is about controlling what they call the contract with. This usually comes down to forgetting to put the proper require statements in place. Here is a rudimentary example👇 contract UnsafeBank { mapping(address => uint256) public balances; // allow depositing on other's behalf function deposit(address for) public payable { balances += msg.value; } function withdraw(address from, uint256 amount) public { require(balances[from] <= amount, "insufficient balance"); balances[from] -= amount; msg.sender.call{value: amout}(""); } } The contract above 👆 does check that you aren’t withdrawing more than you have in your account, but it doesn’t stop you from withdrawing from an arbitrary account. ✅ What is the difference between improper access control and improper input validation? 👉Improper access control means msg.sender does not have adequate restrictions. Improper input validation means the arguments to the function are not sufficiently sanitized. There is also an inverse to this anti-pattern: placing too much restriction on a function call.
3
3
9
303
web3_code_hunt retweeted
#web3 BUG - Improper Input Validation 👇 If access control is about controlling who calls a function, input validation is about controlling what they call the contract with. This usually comes down to forgetting to put the proper require statements in place. Here is a rudimentary example👇 contract UnsafeBank { mapping(address => uint256) public balances; // allow depositing on other's behalf function deposit(address for) public payable { balances += msg.value; } function withdraw(address from, uint256 amount) public { require(balances[from] <= amount, "insufficient balance"); balances[from] -= amount; msg.sender.call{value: amout}(""); } } The contract above 👆 does check that you aren’t withdrawing more than you have in your account, but it doesn’t stop you from withdrawing from an arbitrary account. ✅ What is the difference between improper access control and improper input validation? 👉Improper access control means msg.sender does not have adequate restrictions. Improper input validation means the arguments to the function are not sufficiently sanitized. There is also an inverse to this anti-pattern: placing too much restriction on a function call.
3
3
9
303
web3_code_hunt retweeted
👇👇👇👇
#web3 BUG - Unexpected Ether  Attack 👇 If you find this line of code in SMART Contract - ❝ this.balance ❞ ✅ Then may be there is a BUG in Smart Contract Inside SMART Contract as the balance of the contract can be manipulated by hacker even without using any PAYABLE function of the contract. A hacker can send some ETHER/ MATIC/ other tokens without payable by using 2 way. Ways are 👇 1️⃣ Self-destructive/suicide attempt 2️⃣ Pre sent ETHER 👉 Self-destructive/suicide attempt --> of his (Hacker) own contract with setting your CONTRACT address as the receiver of the remaining ETHER/ MATIC balance of his suicided contract. 👉 Pre sent ETHER -->  by pre calculating the ETHEREUM address of the newly deployed contract. So, if you find the Vulnerability, just submit your PoC & get the Reward 💯 🫡 Stay connected with @auditx_eth team as it is trying to enable thousands of Auditors in this space by let the Auditors learn from their own Audit Experiences.
1
4
6
228
#Web3 Auditors Complete guide on ✅ FORMAL VERIFICATION ✅ SYMBOLIC EXECUTION Let's jump details in this Video of @PatrickAlphaC boss youtu.be/izpoxfTSaFs - an interview of @trailofbits 🫡 👉 Formal Verification is the act of proving or disproving a given property of a system using a mathematical model. 👉 Symbolic execution is one technique used for formal verification. using a mathematical model. it Convert Code -> Math.
3
4
15
957
web3_code_hunt retweeted
#Web3 Auditors Complete guide on ✅ FORMAL VERIFICATION ✅ SYMBOLIC EXECUTION Let's jump details in this Video of @PatrickAlphaC boss youtu.be/izpoxfTSaFs - an interview of @trailofbits 🫡 👉 Formal Verification is the act of proving or disproving a given property of a system using a mathematical model. 👉 Symbolic execution is one technique used for formal verification. using a mathematical model. it Convert Code -> Math.
3
4
15
957