Categories

  • 631 Topics
    2k Posts
    G
    @Promenade1037 said in i-doit update from 35 to 36 fails with permissions issues: Answering my own question, I reviewed /var/log/messages and found the following entry: "SELinux is preventing /usr/sbin/php-fpm from write access on the directory /var/www/html." Once I disabled SELinux, the update was able to proceed as usual. That is the worst you can do to fix this problem: turn off security. And worse: disable it and not even set it to permissive mode instead. If the SeLinux labels are not correct anymore, fix the SeLinux labels. Do not disable SeLinux. The installer as well as the instructions for the manual installation set the directory to a writable selinux context. So the first question to ask would be why the labels in your installation don't fit anymore?
  • 4k Topics
    16k Posts
    LFischerL
    Hallo @AlexaK Bzgl. validieren der Abfrage Jede Abfrage prüft i-doit serverseitig, bevor sie ausgeführt wird, egal ob in der Vorschau oder beim Aufruf des Reports. Dabei werden Anweisungen abgelehnt, die Daten oder Strukturen verändern, also INSERT, UPDATE, DELETE, REPLACE, DROP, ALTER, TRUNCATE oder GRANT. Auch Tabellen mit sensiblen Inhalten wie Sessions, Berechtigungen oder Zugangsdaten zu LDAP und anderen Schnittstellen sind gesperrt. Pro Report wird außerdem immer nur eine einzige Anweisung ausgeführt. Ein angehängtes …; DROP … läuft also nicht mit. Bzgl. dynamische Parameter Platzhalter wie "aktuelles Objekt", "aktueller Benutzer" oder Zeitspannen ersetzt i-doit serverseitig durch feste SQL-Bausteine. Werte, die von außen kommen, etwa die Objekt-ID aus dem Aufruf, werden dabei in Zahlen umgewandelt. Freitext aus dem Aufruf eines Reports gelangt so nicht in die Abfrage. Die Hauptlogik dafür liegt in src/classes/modules/report/src/Validate/Query.php, die Limitierung auf EINE Query und das ersetzen der Platzhalter passieren an anderen Stellen. Viele Grüße Leo