Skip to content

Commit

Permalink
Merge pull request swisskyrepo#603 from romisfrag/patch-1
Browse files Browse the repository at this point in the history
Update PHP.md
  • Loading branch information
swisskyrepo authored Nov 26, 2022
2 parents cbb2137 + f8ab0ca commit 183876f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Insecure Deserialization/PHP.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ Vulnerable code:

```php
<?php
class Object
class ObjectExample
{
var $guess;
var $secretCode;
Expand All @@ -108,7 +108,7 @@ if($obj) {
Payload:

```php
O:6:"Object":2:{s:10:"secretCode";N;s:4:"guess";R:2;}
O:13:"ObjectExample":2:{s:10:"secretCode";N;s:5:"guess";R:2;}
```

We can do an array like this:
Expand Down

0 comments on commit 183876f

Please sign in to comment.