Re: [PHP] File Permissions?

[email protected] (Adam Jon Richardson)
Newsgroups php.general
Message-ID <CAJzDObfCTu9jhREkEjWPWgrOQTDij3ebRmd=1aJ0UJst6aBuNg@mail.gmail.com>
On Wed, Aug 16, 2017 at 12:02 PM, Tedd Sperling <[email protected]> wrote:
>
> We had an incident happen at the college where I teach — the IT guy said:
>
> > After further inquiry, it appears a bad guy used a php vulnerability
> injection over http to enter into a folder on CITW.   This was made
> possible because the permissions were misconfigured (execute was set to 755
> instead of normal 644).
>
>
> My understanding of permissions is that 755 is normally thought of as
> secure — is that not true?
>

755 is typical for directories, but 644 for files.

https://premium.wpmudev.org/blog/understanding-file-permissions/

That said, I often even reduce the permissions beyond 644 in production
environments.

Adam
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.