Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
Good Afternoon all, My current employer, with whom I have not been very long, and I only work here part time while continuing to study, has a script on our site which seems to have a security flaw.

All the scripts that the company uses were written several years ago by a programmer who no longer works here.

These scripts are used daily, but are not ever needed to be changed because they were written in such a way that hidden fields in the html form will be submitted and then the script will determine what to do. Therefore all the current employees need to concern themselves with is designing pretty looking web pages etc. and then just including the appropiate hidden fields.

This has been like this for several years and working relatively smoothly. It was not until another employee weas having trouble with her hidden fields that I chanced to look at this particular script. What I found concerned me a little.

All the customer data that is submitted to the script is as well as being emailed to us, stored in a text file. However the text file to store the data in is passed as a hidden field from the html, and there is no check to make sure that the referring page is the correct one.

My concern is that someone could submit their own html form and change the value for where it is to be saved (all the hidden fields are quite obviously named) and at least cause havoc, if not serious damage.

Is this a reasonable concern?

I have tried to explain this to my boss but as I have not yet proven my perl skills (which are somewhat limited) and this is not what I was employed for anyway, they were more than a little hesitant to listen to me.

My perl work experience is somewhat limited and so I cannot perhaps explain the risk as well as some of you with more experience.

What I am asking is if anyone has any comments that I could make to my employer, or include in a short report so that I will be allowed to fix this potential problem, that would be much appreciated.

Or if you think I am just over reacting, then let me know.
Much appreciated.

Regards,


Gerard O'Brien

In reply to The danger of hidden fields by Gerard

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (2)
As of 2024-04-25 21:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found