EDIT: This seems to be an issue effecting multiple JamfCloud hosted environments. I have Logged a support case with Jamf, as have other community members.
I will keep this thread up to date with any information from Jamf Support.
On two JAMFCloud Jamf Pro instances, running version 10.40.1-t1659581750
I am unable to save a particular script into Jamf, as every time I press Save it results in a 403 - Access Denied
Whilst debugging this I have found that there are certain character combinations that cause this error.
If I try to save a script with the following text only, I will get the 403 error
${a:}${}
the "a" parameter / var can be swapped with any letter or number and it will still cause the error
If the curly braces are not touching the last $ it will save fine, if they are touching however it will error.
There can be text in between the first ${a:} and the second ${} and it will still crash.
The lines can even be commented out, and it will still crash
e.g. the below will still crash -
#
#${a:}
### asd
#${}
This looks like some strange buffer overflow happening, or validation error crashing the console - rather than an actual access denied, as it is only happening with specific commands.
Does the same happen for anyone else, and is there a reason for this that can be avoided? Or is it a Bug