#**Feedback**

1 messages ยท Page 1 of 1 (latest)

warm shadow
#

Why exactly would that be a problem ? If those are never ran by the user

wet glade
#

Most malicious attacks are manually ran by users themselves.

#

Erm, a example. I can make a file called OptimziePZ.exe, one day a user will chance upon that and see that, nothing susipcious about the name then ran it. ๐Ÿ™‚

main bison
#

Natural selection

daring bramble
warm shadow
daring bramble
#

@wet glade also you forgot .dll and .scr and a few others. A whitelist honestly might be better (.txt, .lua)

warm shadow
#

Would that even fix the problem ? Considering like on Linux files don't need file extensions in most cases

daring bramble
#

Are there any files that end in .txt that get automatically executed by linux or steam?

#

It would at least prevent you from overwriting any files that don't end in .txt

#

meaning getting your payload executed is MUCH harder.

warm shadow
daring bramble
#

currently, most file writing is so you can write stuff that is then read back by zomboid, or a dedicated program designed to interface with PZ

warm shadow
#

Yea which I suppose shouldn't be a problem, like for parsing jsons or data files in general

daring bramble
#

I mean you can definately argue for extra file types for the whitelist, like .bmp/.tga/etc.

warm shadow
#

png too, there's definitely modding use cases for that

daring bramble
#

but a whitelist is prob easier than a blacklist from a security standpoint.

daring bramble
warm shadow
daring bramble
#

(png is over 100 different compression algos, chosen per-line, in a trenchcoat)

warm shadow
#

Who said you have to compress it aPES3_CursedDemon

daring bramble
warm shadow
#

The point of allowing png is in fact to allow modders to generate png and load them as textures

daring bramble
wet glade
#

Linux need X permission to run the file so if one literally add the X permission, that's truly natural selection for ya. UI typically need extensions to recognize it is executable by specific programs.

#

I think it is simply more easy to absentmindedly double click something than to explicitly grant permission to run something.

past shadow
#

I may be too late for this topic, but can't modders already just drag those type of files directly into their mod folders? -.-

Adding a restriction to one very overcomplicated method to write a file seem a bit too essesive.

#

I think a better approach would be for the game instead just scan the mod file extensions for anything suspicious and flag them.

#

Like let the malicious strangers fall directly into the trap.

warm shadow
#

If you limit the file writer formats, you kind of make it less likely that methods that would allow to write those files anywhere would create such exe I think ?

warm shadow
past shadow
past shadow
warm shadow
past shadow
#

Kinda crazy how there were two massive security breachs into writing files.

#

If I remember, there was one that letted you pratically delete ANY file from the user's computer.

warm shadow
#

The reality is that no one looked into security risks of PZ

#

Thankfully

#

Only us modders who dig deep in the game tend to find these

past shadow
#

Just like the risk of nuclear warheads, we've been REALLY lucky so far.

warm shadow
#

Basically

past shadow