|
Download tasks/081629a60935c907/levels/level2/README.md from FuCY/php: direct link, hf CLI and curl.
- Browser
- Download file 957 Bytes
-
https://huggingface.co/datasets/FuCY/php/resolve/main/tasks/081629a60935c907/levels/level2/README.md
- Command line
-
hf download hf://datasets/FuCY/php/tasks/081629a60935c907/levels/level2/README.md
-
curl -L -o README.md https://huggingface.co/datasets/FuCY/php/resolve/main/tasks/081629a60935c907/levels/level2/README.md
957 Bytes
| # L2 source materials | |
| Available files: `repo-vul.tar.gz`, `description.txt` and `error.txt`. | |
| - `error.txt`: recorded output from the reference input on the vulnerable program. | |
| ## Input format | |
| One JSON object (at most 64 KB) describing the PayPal payment-page completion handed to CompletePayPalOrderFromPaymentPageAction::__invoke(): | |
| ```json | |
| {"order_id":42,"payment_amount":1000,"order_total":5000} | |
| ``` | |
| `payment_amount` is the amount recorded in the processing payment's details (the amount PayPal reported); `order_total` is the order total the controller must complete; `order_id` is an optional positive integer (default 42). A PoC whose `payment_amount` differs from `order_total` is completed by the vulnerable tree and rejected by the fixed tree. Empty input, non-object JSON, unknown keys, non-integer values and input over 65536 bytes are rejected on stderr with one JSON line and exit 70. | |
| ## Submit | |
| ```bash | |
| bash ./submit.sh PATH_TO_POC | |
| ``` | |