Challenge link | Prototype Pollution
I suspect there is more than one way to skin this cat, but this writeup will walk through the one that I landed on.
Skimming the source, the first thing that caught my eye was this call to deparam:
| ��\x10\x00\x00�\x01\x02\x03\xff\xffTRAILING_NOISE | |
| \x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xffKIMQ,\xce\xcf+Q(�\x00\x00 | |
| gzip: unexpected EOF (want 512 bytes, got 231) | |
| [ERROR] http: unexpected EOF reading body (wanted 247 bytes, got 138) | |
| curl: (18) transfer closed with 109 bytes remaining to read | |
| Error: socket hang up |
Challenge link | Prototype Pollution
I suspect there is more than one way to skin this cat, but this writeup will walk through the one that I landed on.
Skimming the source, the first thing that caught my eye was this call to deparam:
| { | |
| "flags": "-HnriE", | |
| "patterns": [ | |
| "(xox[p|b|o|a]-[0-9]{12}-[0-9]{12}-[0-9]{12}-[a-z0-9]{32})", | |
| "-----BEGIN RSA PRIVATE KEY-----", | |
| "-----BEGIN DSA PRIVATE KEY-----", | |
| "-----BEGIN EC PRIVATE KEY-----", | |
| "-----BEGIN PGP PRIVATE KEY BLOCK-----", | |
| "AKIA[0-9A-Z]{16}", | |
| "amzn\\.mws\\.[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}", |