Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User without %Service_Login:U privilege gets a terminal with $username="irisowner" (or other IRIS startup account) #2

Open
gjsjohnmurray opened this issue Oct 3, 2024 · 1 comment

Comments

@gjsjohnmurray
Copy link

gjsjohnmurray commented Oct 3, 2024

  1. Create a user with only the %DB_IRISSYS role.
  2. Launch iterm.
  3. Authenticate as this user.
  4. At the iterm prompt write $username and $roles.

🐛 You are running as the IRIS user corresponding to the Linux userid IRIS was started as, and you have the %All role

In step 1 you probably only need a role that gets you %DB_IRISSYS:U

@gjsjohnmurray
Copy link
Author

if "USE" in iris.system.Security.CheckUserPermission(username, "%Service_Login"):
self.writefd(f'write $system.Security.Login("{username}")\n')

I don't think this check is needed. Doc for the Login method says this permission is only required when passing a password, and then it's the caller who must have the permission, not the user that the caller is logging in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant