hi everyoone...
i have 2 questions
1. i made some scripts to generate dynamic pages.
the dynamic pages show data that some user entered before.
i want to give them the opportunity to type html code in their input.
for exapmle, when a user enters :
<b>hello</b>
the dynamic page will display
hello
and not
<b>hello</b>
i was wondering if this could be a security bug,i see perlmonks.com allows to do this too, i guess is ok (except <script> tags and what else??)but i have to ask!
2. i have another perl script that includes some "administrator" functions ("functions.lib")
in this script there is no check if the user calling the function has the privilege to call it..
the check is done before, in a *.cgi script and if user has the privilege then the function is called from "functions.lib" ...
is there any way that someone could use functions directly from "functions.lib" ?
i should add check there too ?
the real question is this : if someone knew the code of my scripts you think he could find some hole?
thanx in advance monks!
always a pleasure to learn from you
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.