Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7180397
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T17:20:19+00:00 2026-05-28T17:20:19+00:00

So i am using the jQuery UI library to open new dialog windows, when

  • 0

So i am using the jQuery UI library to open new dialog windows, when the new dialog windows are opened I am passing some parameters like this

<a href="http://www.mysite.com/custompage.html?width=100&height=200&param1=abc&param2=http://www.anothersite.com&param3=custom3">open modal</a>

The site works fine and no issues at all, my custompage.html just picks up those values that were passed and they are being used on the page, something like this:

var a = customfunctionget(param1); var b = customfunctionget(param2)....

I just received a report that we are vulnerable to Cross-Site Scripting attacks by replacing any of the params with something like this:

><script>alert(123)</script><param 

Which I understand correctly what is supposed to happen but on any browser that I try to inject the script the alert is never displayed so the “script/injection” is not being processed, the custompage.html stops working as expected since we need the values to be entered correctly but there is nothing I can do on that respect.

Is there a magic pill that I am missing here? Most of the XSS information that I find does the same thing, try to inject an alert through a tag but other than me denying to display any content if the parameter is not well formed I dont know what else can be done.

Any recommendations, tutorials welcome.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T17:20:20+00:00Added an answer on May 28, 2026 at 5:20 pm

    One of the easiest things you can encode all <, >, and & characters with &lt;, &gt;, and &amp;, respectively. Whenever a browser sees a <something> it thinks its a dom element. If you encode those characters, the browser will actually display them. This will foil people trying to execute <script>badstuff</script> on your site.

    Note that people won’t be able to do things like add <b> tags to things if you do this.

    The above suggestion is a first step, but is by no means exhaustive.

    I just found this, which seems like a good guide.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using http://pdfobject.com/ jquery library to load the external pdf files into an html
what's the difference between using a js library like jquery and using an ajax
I'm learning jQuery and am about to write some pages using intensively that library.
I have been using the fantastic jQuery library for quite some time and have
Is there any jquery plugin similar to Whatever:hover http://www.xs4all.nl/~peterned/csshover.html ?.I'm using jquery library already
I am very new to javascript and have been using the JQuery library quite
I am using Jquery-UI dialog library but when I try to close it, there
I started using the jquery ui library to add some enhanced UI elements to
I'm alreadu using jquery library on site. What are pros and cons to use
If I'm alreadu using jquery library on site then should i use origional sifr

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.