Comments (4)
What is the value of protected $hmac_ip
?
from anti-csrf.
Hi,
Same thing here. the token set in session is different from the value in the hidden text field.
The _CSRF_INDEX is the same in session and in the hidden text field.
The validateRequest return "TRUE" even if the value in the field is different from the value session.
$hmac_ip is TRUE
from anti-csrf.
After a quick debug, it's because hmac_ip is TRUE.
If set to false, the token value in the hidden field is the same than in the session.
from anti-csrf.
Yep. What this feature does is, instead of just placing the CSRF token in the form output, it outputs hash_hmac('sha256', $IPaddress, $csrfToken)
.
Lines 162 to 174 in 606274f
I'm tagging this as a documentation bug.
from anti-csrf.
Related Issues (20)
- In login form if user has entered wrong username and password then from next time validateRequest() returning false HOT 10
- No tagged release with typo fix HOT 2
- Fatal PHP error thrown when using reconfigure() HOT 1
- validateRequest always returns false at IE8. HOT 6
- Disable For API
- Readme example error HOT 1
- $post and $server are passed by reference in constructor for no reason HOT 1
- License confusion.
- Current release breaks PATH_INFO as lock HOT 2
- Use with Ajax HOT 3
- Prints the token request HOT 1
- Time based expiration can also be added.
- Class not found HOT 2
- Too few arguments to function {closure}(), 1 passed and exactly 2 expected HOT 1
- Not Working PHP 7.1, 7.2 HOT 1
- Restrict token to user agent
- Facing intermediate token validation issue while using server in container with kubernetes
- Working basic example
- the code looks fine, I have tested it on PHP 7.0 and it looks good.
- License confusion, is it MIT or AGPL? HOT 2
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 anti-csrf.