mirror of
https://github.com/swisskyrepo/PayloadsAllTheThings.git
synced 2025-01-31 07:27:25 +00:00
Merge pull request #275 from c-nagy/master
Added a brief overview for type juggling
This commit is contained in:
commit
c52cfb1200
@ -5,6 +5,8 @@ PHP provides two ways to compare two variables:
|
|||||||
- Loose comparison using `== or !=` : both variables have "the same value".
|
- Loose comparison using `== or !=` : both variables have "the same value".
|
||||||
- Strict comparison using `=== or !==` : both variables have "the same type and the same value".
|
- Strict comparison using `=== or !==` : both variables have "the same type and the same value".
|
||||||
|
|
||||||
|
PHP type juggling vulnerabilities arise when loose comparison (== or !=) is employed instead of strict comparison (=== or !==) in an area where the attacker can control one of the variables being compared. This vulnerability can result in the application returning an unintended answer to the true or false statement, and can lead to severe authorization and/or authentication bugs.
|
||||||
|
|
||||||
## Type Juggling
|
## Type Juggling
|
||||||
|
|
||||||
### True statements
|
### True statements
|
||||||
|
Loading…
Reference in New Issue
Block a user