source: main/trunk/greenstone2/macros/authen.dm@ 28888

Last change on this file since 28888 was 28888, checked in by ak19, 10 years ago

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.

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 1.5 KB
Line 
1# this file must be UTF-8 encoded
2
3package authen
4
5#######################################################################
6# page content
7#######################################################################
8
9_pagetitle_ {_textGSDLtitle_}
10
11_content_ {
12<br><br><br><br>
13_If_("_activateweb20_" eq "1",
14 <form name="login" method="get" action="_gwcgi_">
15,
16 <form name="login" method="post" action="_gwcgi_">
17)
18<input type=hidden name="e" value="_If_(_cgiarger_,_cgiargerAttrsafe_,_decodedcompressedoptions_)">
19_hiddenargs_
20<center><table width="_pagewidth_">
21<tr><td>
22_messagestatus_
23</td></tr>
24
25<tr><td>
26<table><tr><td>_textusername_</td>
27<td><input type="text" name="un" value="_cgiargunAttrsafe_" size=10></td>
28<td></td></tr>
29<tr><td>_textpassword_</td>
30<td><input type="password" name="pw" size="10"></td>
31<td><input type="submit" value="_textsignin_"></td>
32</tr>
33</table>
34</td></tr>
35</table>
36</center>
37</form>
38}
39
40
41_messageinvalid_ {_textmessageinvalid_}
42
43_messagefailed_ {_textmessagefailed_}
44
45_messageenabled_ {}
46
47_messagedisabled_ {_textmessagedisabled_}
48
49_messagepermissiondenied_ {_textmessagepermissiondenied_}
50
51_messagestalekey_ {_textmessagestalekey_}
52
53
54#################################
55# when authentication is accepted
56#################################
57
58package authenok
59
60
61#######################################################################
62# page content
63#######################################################################
64
65_pagetitle_ {_authen:textGSDLtitle_}
66
67_content_ {
68_authen:messagestatus_
69}
Note: See TracBrowser for help on using the repository browser.