[MENUDEF] Unsafe Commands

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!

Moderator: GZDoom Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
Post Reply
User avatar
TheGameratorT
Posts: 63
Joined: Sun Mar 04, 2018 4:42 am
Graphics Processor: nVidia with Vulkan support
Location: Portugal
Contact:

[MENUDEF] Unsafe Commands

Post by TheGameratorT »

So, in GZDoom 3.5 I had no problems with running commands from the menu.
After updating to GZDoom 3.6 I started getting this error:

"Cannot execute unsafe command exec."

I needed that command for players to be able to reset to the mod default settings instead of gzdoom's default.

Are there any workarounds for this?
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49234
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: [MENUDEF] Unsafe Commands

Post by Graf Zahl »

No. This was an exploit for which someone gave us a demonstration how to do bad things with. So it got plugged.
User avatar
TheGameratorT
Posts: 63
Joined: Sun Mar 04, 2018 4:42 am
Graphics Processor: nVidia with Vulkan support
Location: Portugal
Contact:

Re: [MENUDEF] Unsafe Commands

Post by TheGameratorT »

That's disappointing, at least it fixed a security issue.
What bad could it do though?
User avatar
wildweasel
Posts: 21706
Joined: Tue Jul 15, 2003 7:33 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): A lot of them
Graphics Processor: Not Listed
Contact:

Re: [MENUDEF] Unsafe Commands

Post by wildweasel »

TheGameratorT wrote:That's disappointing, at least it fixed a security issue.
What bad could it do though?
As I recall, it could be used in a roundabout way to overwrite files.
User avatar
Rachael
Posts: 13955
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her
Contact:

Re: [MENUDEF] Unsafe Commands

Post by Rachael »

TheGameratorT wrote:What bad could it do though?
How does doing it non-consensually sound?
Post Reply

Return to “Scripting”