web3_code_hunt retweeted
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/β¦
Replying to @auditx_eth
Great explained Secure Stability: Flash Minting Restrictions @auditx_eth π«‘
2
4
14
Replying to @auditx_eth
Costly loops are important to reduce. Great chance for Auditors. @auditx_eth π«‘
1
5
17
Replying to @auditx_eth
Yea, this is simple but very important BUG. Devs should care about it. Thanks for sharing @auditx_eth π―
1
5
27
Replying to @auditx_eth
Yea need to keep safe your Tokens by the SEC law π―. Thanks @auditx_eth team π«‘
1
3
22
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.
Replying to @auditx_eth
Unpausable Token Risk is one important stuff. Thanks @auditx_eth β’ for this
1
5
16
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.
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.
Thanks @auditx_eth for sharing π―
2
2
14
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.







