We have form pages where majority of the fields are required. We use JS to verify the data was entered before forwarding to a backend php app
This is the form tag we use
<form name="order" method="post" action="http://company.com/config/_process.php?" id="order" class="order">
"order" is inspected and a JQuery library is used to validate input:
$(document).ready(function(){
$('#order').formValidation({
....
.....
});
If the required fields aren't entered the user is presented an "Alert". This has been working for years. But all of a sudden someone is hacking our sites and entering just some of the fields and getting past the JQuery validation.
I've since included checking if JS is eanbled ("<noscript>
") and if not then don't render the page but they're getting past this too.
Not sure what I'm missing but how can you call an PHP app using form/action and getting past JS? When viewing the logs, the referrer is the landing page
Say landing page is: www.ourlandign.com/index.php (form page) form/action: http://company.com/config/_process.php
They're getting to http://company.com/config/_process.php from "www.outlanding.com/index.php
How can this be done? Thanks