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

Override in nickserv.c #46

Open
Aetherinox opened this issue Jun 21, 2023 · 1 comment
Open

Override in nickserv.c #46

Aetherinox opened this issue Jun 21, 2023 · 1 comment

Comments

@Aetherinox
Copy link

Aetherinox commented Jun 21, 2023

I noticed that there's a few commands in both your channel services and srvx.

/nickserv set karma
/nickserv set flags
/nickserv set fakehost

However, when trying to execute these commands, you get:

karma is a privileged setting.
fakehost is a privileged setting.

What exactly is the privilege?
I have 1000 with opserv, I'm authenticated with NickServ, and I have god / security override enabled. Yet it still says this.

It's being defined in /src/nickserv.c on like 150:
#define OPTION_FUNC(NAME) int NAME(UNUSED_ARG(struct svccmd *cmd), struct userNode *user, struct handle_info *hi, UNUSED_ARG(unsigned int override), int noreply, unsigned int argc, char *argv[])

And then on 3236 in /src/nickserv.c:
set_list(struct svccmd *cmd, struct userNode *user, struct handle_info *hi, int override)

Finally, on 3502 in /src/nickserv.c:

    if (!override) {
        if (!(noreply))
	    reply("MSG_SETTING_PRIVILEGED", argv[0]);
	return 0;
    }

I have peeled through the code, but I cannot execute these commands

The other issue I'm having is assigning a fakehost to a user. I tried the oset method, and I also tried with HostServ; however, the person always keeps the default hostname. I've also made sure the user has mode +x

Any help with this, and I swear I'd love you forever. I've been looking at this all day.

I've attempted to set a fake host via HostServ and NickServ, but it never changes my ident. It change is accepted, but my host on the server never changes. Even when I apply +x mode to my account and authenticate with NickServ.

@jobe1986
Copy link
Member

jobe1986 commented Jul 7, 2023

The "override" check basically checks if you've used "O3 god on", it's just a measure to prevent accidental abuse.

As for HostServ, X3 doesn't have a HostServ, and the oset fakehost option of NickServ is applied when the user identifies, if for some reason it's not being applied then there is something else at fault.

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

2 participants