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

  • Home
  • SEARCH
  • 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 6559735
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T13:22:06+00:00 2026-05-25T13:22:06+00:00

Can a cgi-bin perl script from one WAR access files in another WAR, such

  • 0

Can a cgi-bin perl script from one WAR access files in another WAR, such as a .properties file??

==== DETAILS
I’m putting together a presentation to submit to IT reasons why we should upgrade our internal web server to a real web application server.

If you have read some of my other questions, you’d know that we run Sun Java System Web Server SP9 and RedHat Java 1.4.2. I know this version of Java has been deprecated around 2008. The Sun Server seems to be supported still even though they have a version 7 (although this server doesn’t support some newer Java EE technology.)

I am trying to find security issues with our setup and one issue I can see right now is that as developers, we are told by IT to store database credentials in a provided folder/file that is only readable by the webserver. I demonstrated that I could write both a JSP and cgi perl script to read the DB credentials of the other developer’s applications. Therefore they could do the same and read mine. An argument for a real application server is that this issue goes away.

Unless crossContext is true, doesn’t a real application server prevent one application from accessing the Class files, JSP and other resources of another WAR??

Will the Application server also prevent perl scripts from doing the same??

I’m looking for anything that supports reasons why IT needs to upgrade.

  • 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-25T13:22:06+00:00Added an answer on May 25, 2026 at 1:22 pm

    An app server is actually likely more dangerous than a normal web server.

    Typically what will happen in a modern web server, is that when the server executes your CGI code, it’ll switch over to the user who owns the code, and thereby adopt it’s rights and privileges.

    Those privileges combined with permissions will limit what your script can and can not do.

    If, for example, your CGI bin scripts can see those of other users, the permissions of those other files may simply be TOO permissive. If you look at their setting, you may well see that they’re set to allow anyone to read them. By changing those permissions, the owners of those files can better limit who can and can not do.

    With an application server, this is much less likely. All of the applications deployed within the app server (talking generic, off the shelf Java app servers here) all have the same credential for an OS perspective. None of the app servers I’m familiar with demarcate requests or transactions at the user level outside of the user that actually launched the app server.

    Typically you have the user that runs the app server, and then you might have a credential for the database pool, but in essence that’s it.

    The problem now is that once the code starts making file system calls, there’s nothing to tell the operating system that the file read call from Application X can not see the files and read them for Application Y. Even though they are separate apps within the app server, they’re not separate from the operating systems perspective, and it’s the operating system that enforces file level permissions.

    Your operators should better configure their web server and the user account default permissions if locking down that kind of access is important to your site.

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

Sidebar

Related Questions

How can I run my perl CGI script without apache? This is for testing
HI. I created two files 'hello.pl' and 'hello.cgi' with the code below. #!/usr/bin/perl print
I want to use files that are inside cgi-bin folder in perl, I want
I have written a Perl script to read the configuration file and create CGI
I have written a Perl CGI script which fetches an html page from a
I'm writting Perl/CGI script with the module CGI.pm. I can return text/html, but can't
I have a perl.cgi file which has the content: #!/usr/bin/perl print Content-type: text/html\n\n; print
using Fast CGI I can't get it to read the php.ini file. See my
Can I run a PHP CGI script as a background process using exec() ?
I have the following, simplest Perl CGI script: use strict; use warnings; use CGI();

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.