Jump to content

Recommended Posts

Hiya!

 

I know XSS is un-secure but I was wondering how I would code a XSS code, I have tried to Google it but there is nothing, all I am finding is XSS preventation. I was wondering if someone knows a tutorial or maybe if someone can show me an example of how to make an XSS script.

 

Many thanks

 

James.

Link to comment
https://forums.phpfreaks.com/topic/199434-how-do-i-code-a-xss-script/
Share on other sites

Ah right I see, well I'm trying to make it so that I can provide my customers with a script on their own website without actually have to script, the script will be held on my server and I'm looking for a way for them to include it on their site.

 

Many thanks

 

James.

to clear things up, XSS is a way to inject malicious code (usually javascript, but not always) into a website/page.

 

XSS is usually achieved by way of improperly secured form data, where a loser, i mean hacker/cracker/whatever, does something as simple as:

 

<script>window.location="http://www.bad-site.com/";</script>

 

into a comment box on a site.  now, if the site does not handle (strip or convert entities) the incoming data from a form, that code will be executed each and every time a user reaches that page.  now, a simple redirect is harmless in respect that things can get a lot worse, ie. cookie manipulation, etc.

 

anyways, if you just want your users to access one file located on your server, just use include

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.