Understanding ERC-20 Permit and Associated Risks (2024)

Published in

Neptune Mutual

·

5 min read

·

Mar 23, 2024

--

Learn how the ERC-20 permit cuts token transfer costs but facilitates phishing attempts.

Understanding ERC-20 Permit and Associated Risks (3)

Understanding ERC-20 Permit and Associated Risks

The traditional process of transferring ERC-20 tokens has presented several challenges like the requirement of ETH for paying gas fees. Additionally, the standard token transfer process involves a rigorous procedure, adding complexity, increasing transaction fees, and delaying interactions with dApps.

EIP-2612 (ERC-20 permit) has been established as a standard for performing gasless token transfers, thereby eliminating the need for users to hold ETH for gas. However, it has opened a new avenue for malicious actors to gain access to users’ tokens through sophisticated phishing schemes.

This blog aims to delve into the intricacies of EIP-2612, explaining how it works and the risks associated with the permit function.

EIP-2612 introduces a feature called “permit” for ERC-20 tokens. This lets users approve token transactions without making a separate blockchain transaction each time. It uses off-chain signatures, meaning you can give permission away from the blockchain while still keeping it secure. This makes handling ERC-20 tokens easier and cheaper.

The permit function lets a token owner sign a message off the blockchain that allows someone else to move a set amount of tokens from the owner’s account. This signature, which is done off the blockchain, includes all the details like how much, to whom, and how long the permission lasts. It makes sure the transaction is safe and clear.

Traditionally, ERC-20 token transfers to a contract require a two-step process:

Approval: The token holder submits a transaction to the token contract, calling the approve function to allow a specific contract (the spender) to transfer up to a certain amount of tokens on their behalf. This transaction incurs gas fees and must be confirmed on the blockchain before proceeding.

Transfer: Once the approval is confirmed, the spender can initiate the transfer of tokens by calling the ‘transferFrom’ function, which moves the approved amount of tokens from the holder’s account to another account, as specified by the spender.

EIP-2612 streamlines this into a single-step process by using the permit function. Instead of executing an on-chain transaction for approval, the token holder signs an off-chain message that approves the spender to transfer a specific amount of tokens. The spender or a third party can then submit this signature directly to the contract in a single transaction that also executes the transfer.

The introduction of the permit function has several advantages:

  • Reduced Gas Costs: By eliminating the need for an on-chain approval transaction, users save on gas fees, making token transfers more cost-effective.
  • Improved User Experience: The process becomes faster and more straightforward, enhancing usability, especially for users unfamiliar with the complexities of blockchain transactions.
  • Increased Security and Flexibility: The use of EIP-712 for signing data ensures that signatures are secure and cannot be reused maliciously. Additionally, the inclusion of parameters like a deadline for the permit’s validity adds an extra layer of security and control for the token holder.

The introduction of a “Permit” function has been a game-changer for many because of its streamlined and gas-efficient token transaction. However, a significant challenge arises from the fact that not all ERC20 tokens support this “Permit” functionality. This difference has led to the exploration of solutions that can universally apply this convenience across the board.

One proposed solution is to update the existing ERC20 standard to include the “Permit” methods, requiring all tokens to integrate this feature. However, given the vast number of ERC20 tokens already in circulation, altering the standard could lead to complications and resistance from the community.

An alternative approach involves the creation of a central smart contract that acts as an intermediary between token holders and dApps. This central smart contract would allow users to approve their tokens once for all future transactions with any dApp connected to this system. This method presents a win-win scenario: it bypasses the need to modify existing tokens or standards and offers a seamless, gasless interaction with dApps, significantly improving the user experience.

Uniswap has adopted this approach and labeled it ‘Permit2’.

You might have understood that the ERC20 permit has provided lots of advantages in terms of user experience, reduced gas costs, and flexibility. However, there are some downsides to it as well. There are evident cases of users being victims of phishing attacks utilizing the permit function.

In this phishing scheme, attackers deceive token holders into signing a seemingly harmless authorization. In reality, it grants the attackers permission to transfer the victim’s tokens to their own accounts.

The attackers craft a fake signature request, mimicking the legitimate EIP2612 permit functionality, to trick the victim into signing a permit that apparently authorizes a simple action. This signature actually grants the attackers permission to access their tokens. Once the signature is obtained, the attackers use it to invoke the permit() method of the Permit2 smart contract, effectively granting themselves the authority to move the victim’s tokens. With this permission in hand, they then call the transferFrom() method to transfer the tokens to their own account, completing the theft.

According to Scam Sniffer, a Web3 anti-scam platform, over $55 million was lost to phishing attacks in January 2024. Scam Sniffer also concluded that most of the thefts are due to signed ERC20 permits. Apparently, the attackers impersonated the X (Twitter) accounts of several projects and enticed victims to phishing websites through comments. In addition to that, Create2 was utilized to generate temporary addresses for each malicious signature.

Let us introduce Neptune Mutual, an innovative project created on Ethereum to enhance users’ security in the DeFi sector. It is a DeFi insurance protocol that covers users’ funds from several kinds of threats and risks in the DeFi space.

If you’re an individual in need of safeguarding your assets from threats such as phishing, smart contract vulnerabilities, rug pulls, and so on, you can purchase covers from our cover marketplace.

One of the best things about Neptune Mutual is that it operates on a parametric model. This means that payouts are based on predefined parameters rather than lengthy claim verification. If you’re hacked, you become eligible to receive payouts without the need to provide proof of loss. Obviously, the incident needs to match the predefined parameters to be applicable for the payout.

We offer a marketplace where projects can create cover pools for their products. If you have a DeFi project and need to protect its users, you can create your own cover pool in our marketplace. Reach us through our contact page so that we can help you create the cover pools and set parameters as per your requirements.

To know more about Neptune Mutual, follow us on X (Twitter) and join our Discord chat.

Neptune Mutual project safeguards the Ethereum community from cyber threats. The protocol uses parametric cover as opposed to discretionary insurance. It has an easy and reliable on-chain claim process. This means that when incidents are confirmed by our community, resolution is fast.

Join us in our mission to cover, protect, and secure on-chain digital assets.

Official Website: https://neptunemutual.com
Blog:
https://neptunemutual.com/blog/
Twitter:
https://twitter.com/neptunemutual
Forums:
https://community.neptunemutual.com/
Telegram:
https://t.me/neptunemutual
Discord:
https://discord.gg/2qMGTtJtnW
YouTube:
https://www.youtube.com/c/NeptuneMutual
LinkedIn:
https://www.linkedin.com/company/neptune-mutual

Understanding ERC-20 Permit and Associated Risks (2024)

FAQs

Understanding ERC-20 Permit and Associated Risks? ›

EIP-2612 (ERC-20 permit) has been established as a standard for performing gasless token transfers, thereby eliminating the need for users to hold ETH for gas. However, it has opened a new avenue for malicious actors to gain access to users' tokens through sophisticated phishing schemes.

What are the disadvantages of ERC-20? ›

Despite their numerous advantages, ERC-20 tokens are not without their risks and drawbacks: Security vulnerabilities: Malicious actors can exploit vulnerabilities in ERC20 smart contracts, leading to security breaches and token theft.

How does ERC-20 approve work? ›

ERC20 approve method
  • This method empowers a token holder to authorize a designated smart contract to spend a predefined quantity of tokens from their balance.
  • The ERC20 approve method enables token holders to selectively allow spending for specific purposes or transactions, enhancing the flexibility of token usage.
Jan 30, 2024

How does ERC-20 work? ›

ERC20 is a community-proposed standard for smart contracts and tokens associated with them. The standard allows users to transfer tokens and be re-used by any other Ethereum application. It also makes it easier for them to be approved because the standardized elements must all be present.

Is ERC-20 safe? ›

Apart from scalability issues, ERC-20 tokens also have security concerns that are related to Solidity, Ethereum's programming language. The underlying contract of these tokens is prone to have bugs as it's complex to develop and read, which increases the risk of hack, malfunction, and downtime.

Will the IRS audit all ERC claims? ›

However, claiming the ERTC does not automatically trigger an audit. Instead, the IRS may carry out ERC tax credit audits if they suspect businesses have made errors or misrepresentations in their claims, including if they're suspected of fraud or noncompliance.

What are the complications of ERC? ›

Some possible complications may include:
  • Inflammation of the pancreas (pancreatitis) or gallbladder (cholecystitis). ...
  • Infection.
  • Bleeding.
  • A tear in the lining of the upper section of the small intestine, esophagus, or stomach.
  • Collection of bile outside the biliary system (biloma)

Do you have to pay back ERC money? ›

No. The Employee Retention Credit is a fully refundable tax credit that eligible employers claim against certain employment taxes. It is not a loan and does not have to be paid back. For most taxpayers, the refundable credit is in excess of the payroll taxes paid in a credit-generating period.

How many employees do you have to have for ERC? ›

Can I get ERC with no employees? You can't get the ERC without any employees. To qualify for the ERC, you need at least one full-time employee that you pay wages on a payroll. Sole proprietorships are ineligible to receive ERC benefits because the IRS doesn't count owners' wages as qualifying wages for the ERC.

What is the difference between ERC-20 and ERC 21? ›

ERC20 tokens are fungible, meaning that each token is identical and interchangeable with another token of the same type. This fungibility facilitates secure exchange and on cryptocurrency exchanges. In contrast, ERC721 tokens are non-fungible, with each token representing a unique digital asset.

Is ERC trustworthy? ›

IS ERC LEGIT? Yes, the ERC is a legitimate refundable tax credit. While many employers that were shut down or otherwise financially affected by the pandemic in 2020, 2021 or both are eligible to receive this credit, the IRS warns employers about third-party ERC scams that can lead to tax compliance risk.

Which is better ERC-20 or TRC 20? ›

TRC20 vs ERC20 are important in crypto. They are used on Tron and Ethereum networks. TRC-20 has lower fees and quicker transactions. ERC-20 is more widely used and has better security because of Ethereum's network.

Why is ERC-20 suspended? ›

Binance, the world's largest cryptocurrency exchange, has announced that it will temporarily suspend deposits and withdrawals of Ethereum and ERC20 tokens on the ETH network. The reason for this suspension is to perform wallet maintenance for the Ethereum network, which is expected to last for about two hours.

Do I have to pay taxes on my ERC refund? ›

SO, IS THE EMPLOYEE RETENTION CREDIT TAXABLE INCOME? While the ERC is technically not taxable income in and of itself, the ERC will still affect your payroll deductions.

Is ERC worth it? ›

If we're talking about potentially receiving tens of thousands of dollars back for your business after an incredibly tough financial year… The answer is a resounding, “yes”.

What is the penalty for taking the ERC tax credit? ›

If you commit fraud to receive the ERC, you will not only lose the credits, but you'll also pay a penalty of 75% of any understated tax amount. Fraud exists if you took deliberate steps to take the ERC when you knew you shouldn't or you tried to cover up your mistake(s) relating to the ERC.

What is the 80% ERC rule? ›

If a business is accepted into the voluntary disclosure program, the IRS will not charge interest or penalties. Also, employers will not have to repay any interest they might have received from the IRS. Businesses that cannot repay the required 80% might be considered for an installment agreement.

Top Articles
Nonprofit vs For-Profit Accounting
The 4 Phases of Business Process Automation (BPA)
O'reilly's Auto Parts Closest To My Location
Star Sessions Imx
Craigslist Motorcycles Jacksonville Florida
THE 10 BEST Women's Retreats in Germany for September 2024
Phenix Food Locker Weekly Ad
7543460065
Atrium Shift Select
Craigslist Estate Sales Tucson
Urban Dictionary Fov
Mid90S Common Sense Media
Gma Deals And Steals Today 2022
978-0137606801
Best Suv In 2010
House Of Budz Michigan
SXSW Film & TV Alumni Releases – July & August 2024
Cambridge Assessor Database
Unterwegs im autonomen Freightliner Cascadia: Finger weg, jetzt fahre ich!
Where to Find Scavs in Customs in Escape from Tarkov
Aris Rachevsky Harvard
8005607994
Directions To Nearest T Mobile Store
Everything To Know About N Scale Model Trains - My Hobby Models
Sony Wf-1000Xm4 Controls
Craigslist/Phx
The Bold and the Beautiful
Basil Martusevich
Baddies Only .Tv
Gr86 Forums
Sun-Tattler from Hollywood, Florida
Greater Keene Men's Softball
1v1.LOL Game [Unblocked] | Play Online
Skip The Games Grand Rapids Mi
Omaha Steaks Lava Cake Microwave Instructions
Restored Republic June 6 2023
Foxxequeen
Anthem Bcbs Otc Catalog 2022
Content Page
Ghareeb Nawaz Texas Menu
Eat Like A King Who's On A Budget Copypasta
Chr Pop Pulse
3500 Orchard Place
Theater X Orange Heights Florida
Whitney Wisconsin 2022
What your eye doctor knows about your health
Diesel Technician/Mechanic III - Entry Level - transportation - job employment - craigslist
Round Yellow Adderall
Turning Obsidian into My Perfect Writing App – The Sweet Setup
WHAT WE CAN DO | Arizona Tile
Anthony Weary Obituary Erie Pa
Latest Posts
Article information

Author: Rev. Porsche Oberbrunner

Last Updated:

Views: 5827

Rating: 4.2 / 5 (53 voted)

Reviews: 92% of readers found this page helpful

Author information

Name: Rev. Porsche Oberbrunner

Birthday: 1994-06-25

Address: Suite 153 582 Lubowitz Walks, Port Alfredoborough, IN 72879-2838

Phone: +128413562823324

Job: IT Strategist

Hobby: Video gaming, Basketball, Web surfing, Book restoration, Jogging, Shooting, Fishing

Introduction: My name is Rev. Porsche Oberbrunner, I am a zany, graceful, talented, witty, determined, shiny, enchanting person who loves writing and wants to share my knowledge and understanding with you.