Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XSS Vulnerability #16

Open
monkeym4ster opened this issue Oct 20, 2017 · 0 comments
Open

XSS Vulnerability #16

monkeym4ster opened this issue Oct 20, 2017 · 0 comments

Comments

@monkeym4ster
Copy link

monkeym4ster commented Oct 20, 2017

Payload

Fix

if(first === "undefined") {

if(first === "undefined" || first.indexOf('http') === -1) { // Non http(s) protocol
  // don't do anything.
}
else {
//  take the url variable and update the iframes and input field
  $("iframe").attr('src',(first));
  $('#url').attr('value',(first));
  $.ajax({ url: 'xtest.php?url=' + first + '',
           data: {action: first},
           type: 'post',
           success: function(output) {
                        console.log(output);
                    }
  });
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant