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 7054587
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T03:38:43+00:00 2026-05-28T03:38:43+00:00

Now I’m thinking of implementing eval()-ing of some code, dynamically loaded from server. Any

  • 0

Now I’m thinking of implementing eval()-ing of some code, dynamically loaded from server. Any kind of “eval()”ing is not a good idea, actually (especially for security). What comes to mind:

If i do not use SSL or any server-authentication technique it’s so easy to substitute my packages and run any JS code on users machine. Now, when there’s some API for hardware (WebGL) it might (?) be dangerous.

But, on the other and, it makes no sense if I secure that somehow, because if user serfs the net JS code might be simply substituted when browser requests for .js file from server loading the page (from another web-site for example).

So, if I have no important data in my web-app – should I implement any king of server-authentication?

  • 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-28T03:38:44+00:00Added an answer on May 28, 2026 at 3:38 am

    If the page containing the eval() instruction and the JS source code you are loading dynamically are on the same server, there is probably no decreased security because of this – an attacker could simply replace the page instead of the dynamically loaded code, and achieve the same destructive effect, whether you use eval() or not.

    eval() ing dynamically loaded code is done all the time in Javascript. For example, when you load HTML through jQuery’s .load(), any JS in it will be extracted and eval()ed automatically.

    If you need to eval() something this way, I don’t think you add a security problem (although you may very well be able to avoid using it by changing your architecture.)

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

Sidebar

Related Questions

now i need to insert some data from the sqlserver into a word,i know
now i use this code: $welcome_text = mysql_query(SELECT * FROM `text` WHERE `name` =
Now I know that I should not try to reinvent the wheel and try
Now here is another problem.. my code: <script type=text/javascript> function validate_form () { if
Now that frameworks like GWT, Morfik etc exist which compile Java client side code
Now that I'm working in F#, is it time to start writing up some
Now my problem is not one but two, which are as follows: App Requirement:
Now before you burn me at the stake hear me out! I want some
now i have such structure on my server ./site.com/ ./site.com/mage ./site.com/mage/Mage.php ./site.com/mage/app ......... ./site.com/public
Now i tried some other ways.... <?php /* Start popular Post */ ?> <li>

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.