Skip to content
Discussion options

You must be logged in to vote

Deploy hooks run on the CertMate host with the privileges of the CertMate process. A naïve shell=True would mean that anyone who can write to the settings (any admin / valid bearer token) can run arbitrary code on the host. v2.4.0 tightened the validator after a security review; v2.4.1 relaxed one specific allowance ($CERTMATE_* env var substitution). The current rules live in modules/core/deployer.py and apply at save time and at runtime.

Blocked patterns (rejected with contains dangerous shell metacharacters). The regex blocks:

Pattern Why
` ` (backticks) Sub-shell
$(…) Sub-shell
${…} Parameter expansion (except $CERTMATE_*, see below)
&&, || Logical chaining
; Statement …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by fabriziosalmi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant