Ignore:
Timestamp:
2014-03-13T14:34:48+13:00 (10 years ago)
Author:
ak19
Message:

First security commit. 1. Introducing the new securitools.h and .cpp files, which port the functions necessary to implement security in Greenstone from OWASP-ESAPI for Java, since OWASP's C++ version is largely not yet implemented, even though their code compiles. The newly added runtime-src/packages/security which contains OWASP ESAPI for C++ will therefore be removed again shortly. 2. receptionist.cpp now sets various web-encoded variants for each cgiarg macro, such as HTML entity encoded, attr encoded, javascript encoded (and css encoded variants). These are now used in the macro files based on which variant is suited to the context. 3. This commit further contains the minimum changes to protect the c, d, and p cgi variables.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/macros/english2.dm

    r28338 r28888  
    169169    collection (it links to the "_2_" collection).
    170170    If you wish to view this link in the "_2_" collection you can
    171     <a href="_httpdoc_&amp;c=_1_&amp;cl=_cgiargcl_&amp;d=_3_">go forward</a> to this page;
     171    <a href="_httpdoc_&amp;c=_1_&amp;cl=_cgiargclUrlsafe_&amp;d=_3_">go forward</a> to this page;
    172172    otherwise use your browsers "back" button to return to the previous document.
    173173}
     
    189189_textpassword_ {password}
    190190
    191 _textmustbelongtogroup_ {Note that you must belong to the "_cgiargug_" group to access this page}
     191_textmustbelongtogroup_ {Note that you must belong to the "_cgiargugHtmlsafe_" group to access this page}
    192192
    193193_textmessageinvalid_ {The page you have requested requires you to sign in.<br>
     
    531531
    532532_textdelperm_ {
    533 Some or all of the _cgiargbc1dirname_ collection could not be
     533Some or all of the _cgiargbc1dirnameHtmlsafe_ collection could not be
    534534deleted. Possible causes are:
    535535<ul>
    536 <li> Greenstone does not have permission to delete the _gsdlhome_/collect/_cgiargbc1dirname_
     536<li> Greenstone does not have permission to delete the _gsdlhome_/collect/_cgiargbc1dirnameHtmlsafe_
    537537directory.<br>
    538 You may need to remove this directory manually to complete the removal of the _cgiargbc1dirname_
     538You may need to remove this directory manually to complete the removal of the _cgiargbc1dirnameHtmlsafe_
    539539collection from this computer.</li>
    540540<li>Greenstone can not run the program _gsdlhome_/bin/script/delcol.pl. Make sure that this file is readable and executable.</li>
     
    543543
    544544_textdelinv_ {
    545 The _cgiargbc1dirname_ collection is protected or invalid. Deletion was cancelled.
    546 }
    547 
    548 _textdelsuc_ {The _cgiargbc1dirname_ collection was successfully deleted.}
     545The _cgiargbc1dirnameHtmlsafe_ collection is protected or invalid. Deletion was cancelled.
     546}
     547
     548_textdelsuc_ {The _cgiargbc1dirnameHtmlsafe_ collection was successfully deleted.}
    549549
    550550_textclonefail_ {
    551 The _cgiargclonecol_ collection cound not be cloned. Possible causes are:
     551The _cgiargclonecolHtmlsafe_ collection cound not be cloned. Possible causes are:
    552552<ul>
    553 <li> The _cgiargclonecol_ collection doesn't exist
    554 <li> The _cgiargclonecol_ collection has no collect.cfg configuration file
     553<li> The _cgiargclonecolHtmlsafe_ collection doesn't exist
     554<li> The _cgiargclonecolHtmlsafe_ collection has no collect.cfg configuration file
    555555<li> Greenstone does not have permission to read the collect.cfg configuration file
    556556</ul>
     
    594594
    595595_textexptsuc_ {
    596 The _cgiargbc1dirname_ collection was successfully exported to the
    597 _gsdlhome_/tmp/exported\__cgiargbc1dirname_ directory.
     596The _cgiargbc1dirnameHtmlsafe_ collection was successfully exported to the
     597_gsdlhome_/tmp/exported\__cgiargbc1dirnameHtmlsafe_ directory.
    598598}
    599599
    600600_textexptfail_ {
    601 <p>Failed to export the _cgiargbc1dirname_ collection.
     601<p>Failed to export the _cgiargbc1dirnameHtmlsafe_ collection.
    602602
    603603<p>This is likely to be because Greenstone was installed without the
     
    850850
    851851_textdeleteuser_ {Delete a user}
    852 _textremwarn_ {Do you really want to permanently remove user <b>_cgiargumun_</b>?}
     852_textremwarn_ {Do you really want to permanently remove user <b>_cgiargumunHtmlsafe_</b>?}
    853853
    854854
Note: See TracChangeset for help on using the changeset viewer.