Najnowsze wypowiedzi

Napisane przez użytkowników:

[Praca oferowana / wspó³praca] Programista C/C++
Dla naszego klienta du¿ej miêdzynarodowej firmy poszukujemy osób na stanowisko Programista/ Team Leader Lokalizacja Warszawa Wymagane: -roczne do¶wiadczenie C/C++ -znajomo¶æ jêzyka...
[Praca oferowana / wspó³praca] Programista RPG
Dla naszego klienta du¿ej instytucji finansowej poszukujemy osoby na stanowisko Programista Wymagane do¶wiadczenie w programowaniu RPG. Lokalizacja Poznañ Osoby zainteresowane proszê o...
[Praca oferowana / wspó³praca] Software Implementation Manager Java
Witam serdecznie Dla naszego klienta firmy konsultingowej poszukujemy osob na stanowisko Software Implementation Manager Lokalizacja: Warszawa Wymagania: - 2 lata do¶wiadczenia w...
[Praca oferowana / wspó³praca] Programista PL/SQL Oracle
Dla naszego klienta dostawcy systemow ERP, poszukujemy osob na stanowiska Software Developera. Lokalizacja: Poznan, Gdansk Wymagania doswiadczenie w programowaniu w PL/SQL, Java znajomosc...
[VBA i OOoB] [Excel] Zliczanie konkretnej warto¶ci z pliku textowego
Cze¶æ Wszystkim, mam taki problem; potrzebuje do excel'a za pomoc± makra zliczyæ ilo¶æ wierszy z pliku tekstowego dla których w pewnej kolumnie wystepuje jaka¶ warto¶æ. (plik textowy rozdzialony...

Nauka PHP

Kurs w celu przybliżenia języka jakim jest php.



Installed as an Apache module

Rozdział 25. Installed as an Apache module

When PHP is used as an Apache module it inherits Apache's user permissions (typically those of the "nobody" user). This has several impacts on security and authorization. For example, if you are using PHP to access a database, unless that database has built-in access control, you will have to make the database accessible to the "nobody" user. This means a malicious script could access and modify the database, even without a username and password. It's entirely possible that a web spider could stumble across a database administrator's web page, and drop all of your databases. You can protect against this with Apache authorization, or you can design your own access model using LDAP, .htaccess files, etc. and include that code as part of your PHP scripts.

Often, once security is established to the point where the PHP user (in this case, the apache user) has very little risk attached to it, it is discovered that PHP is now prevented from writing any files to user directories. Or perhaps it has been prevented from accessing or changing databases. It has equally been secured from writing good and bad files, or entering good and bad database transactions.

A frequent security mistake made at this point is to allow apache root permissions, or to escalate apache's abilities in some other way.

Escalating the Apache user's permissions to root is extremely dangerous and may compromise the entire system, so sudo'ing, chroot'ing, or otherwise running as root should not be considered by those who are not security professionals.

There are some simpler solutions. By using open_basedir you can control and restrict what directories are allowed to be used for PHP. You can also set up apache-only areas, to restrict all web based activity to non-user, or non-system, files.

Ciekawe informacje

Najciekawsze informacje znalezione w sieci

Obsługa wielowątkowości, jak to wykonać, przykład gdy wątki próbują robić coś równocześnie (jak temu zapobiec, lub jak to obsłużyć) np w przypadku obiektu klasy RECORDSET jeden cos tam jeszcze myka pobiera, się wcina i przed pobraniem następuje zamkniecie (close()) obiektu recordset.