in reply to Re^3: pp --clean does not seem to work
in thread pp --clean does not seem to work
Is your shift key broken or are you too lazy to use it?
i completely disagree, i have never had a problem scanning directories that my script created, whether it be created on the fly or be created statically. the average user of said compiled prgram isnt going to even know the directory was even created, much less change it contents. not to mention, you could lock the dir or every file in it,
Bullshit. The problem is not the average user, the problem is the malicious user that can abuse a pp-bundled perl script to gain more privileges on the system or to execute a denial-of-service attack. Also, locks on linux are advisory, not mandatory, unless you explicitly enable mandatory locking (1, 2). So, you CAN'T "lock" a directory so that is invulnerable, unless you have tuned the system to allow mandatory locks AND explicitly enabled them for all files by setting proper permissions for each and every temp file created by pp.
also i think you are way off in left feild. if you have 100 pp programs running, then you will have 100 "temp" dir.. then when you run your program it will scan the dirs, then create its own. which can easily be singled out and filtered. i honestly dont know where the other stuff you mention would even come into play while /just/ scanning directories tbh
The "other stuff" explains why it is a stupid idea to use pp, especially on systems derived from Unix.
EDIT: the only thing that could be a problem is if the script/exe created the dir BEFORE the directory could be scanned.
I see lots of problems:
And these are just the most trivial problems.
Did you actually follow the Java nightmare link and read the text there? You don't have to understand the unserialize problem, it's a nasty bug, caused by lazy people trusting unverified data, but that's not the real problem. The real problem is that a lot of software from the Java world bundles its own copy of the vulnerable libraries, often hidden inside archives. pp-bundled libraries have exactly the same problem. But because pp stuffed everything into a single executable, it is even harder to find problematic libraries than in the Java world, where you could at least try to search for *.jar and *.class files.
Alexander
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: pp --clean does not seem to work
by Anonymous Monk on Dec 13, 2015 at 05:45 UTC | |
by afoken (Chancellor) on Dec 13, 2015 at 08:15 UTC | |
by Anonymous Monk on Dec 13, 2015 at 10:16 UTC | |
by Anonymous Monk on Dec 13, 2015 at 10:17 UTC |