Strange js in html code
-
If i enable wp-cerber i see some strange html code at the end of the page:
<script type=”text/javascript”>
jQuery(document).ready(function ($) {
//$( document ).ajaxStart(function() {
//});for (var i = 0; i < document.forms.length; ++i) {
var form = document.forms[i];
if ($(form).attr(“method”) != “get”) { $(form).append(‘<input type=”hidden” name=”rOHabc” value=”c@0Y5l” />’); }
if ($(form).attr(“method”) != “get”) { $(form).append(‘<input type=”hidden” name=”emDQHdOSs” value=”6E51ya7pi” />’); }
if ($(form).attr(“method”) != “get”) { $(form).append(‘<input type=”hidden” name=”vpONEuF” value=”nlQ6Pb@” />’); }
}$(document).on(‘submit’, ‘form’, function () {
if ($(this).attr(“method”) != “get”) { $(this).append(‘<input type=”hidden” name=”rOHabc” value=”c@0Y5l” />’); }
if ($(this).attr(“method”) != “get”) { $(this).append(‘<input type=”hidden” name=”emDQHdOSs” value=”6E51ya7pi” />’); }
if ($(this).attr(“method”) != “get”) { $(this).append(‘<input type=”hidden” name=”vpONEuF” value=”nlQ6Pb@” />’); }
return true;
});jQuery.ajaxSetup({
beforeSend: function (e, data) {//console.log(Object.getOwnPropertyNames(data).sort());
//console.log(data.type);if (data.type !== ‘POST’) return;
if (typeof data.data === ‘object’ && data.data !== null) {
data.data.append(“rOHabc”, “c@0Y5l”);
data.data.append(“emDQHdOSs”, “6E51ya7pi”);
data.data.append(“vpONEuF”, “nlQ6Pb@”);
}
else {
data.data = data.data + ‘&rOHabc=c@0Y5l&emDQHdOSs=6E51ya7pi&vpONEuF=nlQ6Pb@’;
}
}
});});
</script>Is this intended? Especially the lines that are uncommented as well as the console.log look strange to me (debug logs not removed?).
I could imagine that this helps solving possible multiple logins by attaching some more form variables, still it looks somehow unfinished (and for now suspicous) to me.
The topic ‘Strange js in html code’ is closed to new replies.