FAIMS-662: fixed brakeman vulnerabilities