# Reentrancy

> What is a reentrancy attack in Ethereum smart contracts, and how do you prevent it?

Canonical: https://www.internhack.in/learn/interview/web-security/security-reentrancy-vulnerability
Last updated: 2026-11-28

Difficulty: Advanced

## Question

What is a reentrancy attack in Ethereum smart contracts, and how do you prevent it?

*The full answer is for InternHack members. Open the page link above to read it.*

## Concepts covered

Smart Contracts, Reentrancy, Checks-Effects-Interactions, Reentrancy Guard, Solidity

Previous: [Penetration Testing](https://www.internhack.in/learn/interview/web-security/security-penetration-testing-levels) · Next: [Cold Boot Attack](https://www.internhack.in/learn/interview/web-security/security-cold-boot-attack) · [All of Web Security (OWASP, JWT, XSS, CSRF)](https://www.internhack.in/learn/interview/web-security)

## More Web Security (OWASP, JWT, XSS, CSRF) questions

- [Cloud Isolation](https://www.internhack.in/learn/interview/web-security/security-cloud-tenant-isolation)
- [OWASP Top 10 Overview](https://www.internhack.in/learn/interview/web-security/security-owasp-top-10)
- [JWT Security](https://www.internhack.in/learn/interview/web-security/security-jwt-structure)
- [XSS: Cross-Site Scripting](https://www.internhack.in/learn/interview/web-security/security-xss-mitigation)
- [CSRF: Cross-Site Request Forgery](https://www.internhack.in/learn/interview/web-security/security-csrf-explanation)
- [CORS (Cross-Origin Resource Sharing)](https://www.internhack.in/learn/interview/web-security/security-cors-fundamentals)

## Related

- [Learn](https://www.internhack.in/learn)
- [Interview Prep](https://www.internhack.in/learn/interview)
- [Web Security (OWASP, JWT, XSS, CSRF)](https://www.internhack.in/learn/interview/web-security)
