Comments (2)
@VishKozus You're correct. If the user's email is taken over between the time they use the token and the time it expires, the attacker would still be able to use it. To ensure the token is only used once, you could store it on the back-end (e.g. in a database of some kind) and mark it as invalid once it has been used.
Keep in mind though, that if a user's email is taken over, the attacker can always go to your website and request a new password reset token, so you don't gain any meaningful security.
from explore-flask.
@rpicard
thank you! I got it !
from explore-flask.
Related Issues (20)
- Small typo in comment in blueprints HOT 1
- What is Listing~ ?? HOT 1
- A problem with Blueprints subdomain setup HOT 1
- there's a typo
- Password Setter procedure has changed HOT 2
- email confirmation HOT 17
- Hyperlink issue in environment page HOT 1
- Great work! Great book about flask HOT 1
- Syntax highlight HOT 2
- Book Translation HOT 3
- Links errors on environment.html
- Form chapter: Unique validator missing init message
- Handling Users HOT 3
- [preface] the Youtube link is dead
- `import .views` in blueprinst.rst HOT 2
- Add translations HOT 3
- Broken links in online version when url is not appended with /en/latest HOT 3
- Configuration - Flask-SQLAlchemy link is dead HOT 1
- Something wrong with tables.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from explore-flask.