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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T14:10:07+00:00 2026-05-23T14:10:07+00:00

For an example if I have a mail script or a script that writes

  • 0

For an example if I have a mail script or a script that writes to a database – scripts that do not echo anything important (other than a thank you, or an error message), but do a lot of important back-end work.

What could the possible security concerns from accessing them directly be?

Is it worth preventing direct access to such files?

They are receiving data using $_POST/$_GET sent trough contact forms and then either mailing it or writing it to a DB (in both cases after good validation).

Still, can the data that is being worked with there be accessed somehow (other than cracking my account and downloading them :)), since obviously opening such files in browser will not give any results to the attacker?

  • 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-23T14:10:08+00:00Added an answer on May 23, 2026 at 2:10 pm

    Server misconfiguration

    The security risk is, in case the web server fails to execute the php file (because configuration was reset), it’s source-code will be displayed inside the browser as plain text. And you probably want to prevent that.

    Wrong Context

    Next to that scenario, another problem is, if the file actually does something with your database data for example, calling the file even w/o any direct output will have influence of indirect output. This is normally unwanted as well.

    In your case it sends an email even, so direct requests can be used to send emails. That is probably unwanted as well.

    Not to mention the risks this can have in getting your stuff penetrated. Not that this would be the only place where it is possible, but you should keep the surface small.

    Improved File-Handling

    The best approach however is to store the applications code outside of the webroot, so that those files are never accessible by a direct HTTP request.

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

Sidebar

Related Questions

I have a php script that i use to send mail to customers. How
I have a little python script that pulls emails from a POP mail address
I have several sites in different domains: example.com , example.org , mail.example.com and passport.example.org
Example: I have an class that inherits from UIImageView. An object creates an instance
I have created an php mail script, And in the message of the mail
I have a simple PHP mailer script that takes values from a form submitted
I have a script that is parsing out fields within email headers that represent
Sorry, if this to verbose, but I have a perl script that is partly
We have a cron'ed PHP script that checks an inbox every ten minutes. The
I have this python IMAP script, but my problem is that, every time I

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.