Fossil SCM

Provide a warning on the security-audit page if any of the TH1 scripts that run during a syncm, push, pull, or clone are configured.

drh 2021-08-17 17:32 trunk
Commit cfb5be41896928643dd108d79d9fcb0df383a10ac6495cef0e613bcfd26bd41d
1 file changed +11
--- src/security_audit.c
+++ src/security_audit.c
@@ -281,10 +281,21 @@
281281
@ <p>Fix this by removing the "Mod-Wiki", "Mod-Tkt", and "Mod-Forum"
282282
@ privileges (<a href="%R/setup_ucap_list">capabilities</a> "fq5")
283283
@ from users "anonymous" and "nobody"
284284
@ on the <a href="setup_ulist">User Configuration</a> page.
285285
}
286
+
287
+ /* Check to see if any TH1 scripts are configured to run on a sync
288
+ */
289
+ if( db_exists("SELECT 1 FROM config WHERE name GLOB 'xfer-*-script'"
290
+ " AND length(value)>0") ){
291
+ @ <li><p><b>WARNING:</b>
292
+ @ TH1 scripts might be configured to run on any sync, push, pull, or
293
+ @ clone operation. See the the <a href="%R/xfersetup">/xfersetup</a>
294
+ @ page for more information. These TH1 scripts are a potential
295
+ @ security concern and so should be carefully audited by a human.
296
+ }
286297
287298
/* The strict-manifest-syntax setting should be on. */
288299
if( db_get_boolean("strict-manifest-syntax",1)==0 ){
289300
@ <li><p><b>WARNING:</b>
290301
@ The "strict-manifest-syntax" flag is off. This is a security
291302
--- src/security_audit.c
+++ src/security_audit.c
@@ -281,10 +281,21 @@
281 @ <p>Fix this by removing the "Mod-Wiki", "Mod-Tkt", and "Mod-Forum"
282 @ privileges (<a href="%R/setup_ucap_list">capabilities</a> "fq5")
283 @ from users "anonymous" and "nobody"
284 @ on the <a href="setup_ulist">User Configuration</a> page.
285 }
 
 
 
 
 
 
 
 
 
 
 
286
287 /* The strict-manifest-syntax setting should be on. */
288 if( db_get_boolean("strict-manifest-syntax",1)==0 ){
289 @ <li><p><b>WARNING:</b>
290 @ The "strict-manifest-syntax" flag is off. This is a security
291
--- src/security_audit.c
+++ src/security_audit.c
@@ -281,10 +281,21 @@
281 @ <p>Fix this by removing the "Mod-Wiki", "Mod-Tkt", and "Mod-Forum"
282 @ privileges (<a href="%R/setup_ucap_list">capabilities</a> "fq5")
283 @ from users "anonymous" and "nobody"
284 @ on the <a href="setup_ulist">User Configuration</a> page.
285 }
286
287 /* Check to see if any TH1 scripts are configured to run on a sync
288 */
289 if( db_exists("SELECT 1 FROM config WHERE name GLOB 'xfer-*-script'"
290 " AND length(value)>0") ){
291 @ <li><p><b>WARNING:</b>
292 @ TH1 scripts might be configured to run on any sync, push, pull, or
293 @ clone operation. See the the <a href="%R/xfersetup">/xfersetup</a>
294 @ page for more information. These TH1 scripts are a potential
295 @ security concern and so should be carefully audited by a human.
296 }
297
298 /* The strict-manifest-syntax setting should be on. */
299 if( db_get_boolean("strict-manifest-syntax",1)==0 ){
300 @ <li><p><b>WARNING:</b>
301 @ The "strict-manifest-syntax" flag is off. This is a security
302

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button