glpi-project / glpi

GLPI is a Free Asset and IT Management Software package, Data center management, ITIL Service Desk, licenses tracking and software auditing.
https://glpi-project.org
GNU General Public License v3.0
4.18k stars 1.28k forks source link

Error Custom HTML version 10 #11735

Closed StbanMc closed 2 years ago

StbanMc commented 2 years ago

Code of Conduct

Is there an existing issue for this?

Version

10

Bug description

the custom html edition for the index, does not work in the update to version 10 image image

Relevant log output

<style type="text/css">#firstboxlogin{background-image: url('../../pics/fondo.jpg') !important ;background-size:cover !important;background-color:#1B2F62 !important;}#logo_login{background:transparent !important;}#text-login{background-color:transparent !important;}</style>

Page URL

soporte.mava.com.co

Steps To reproduce

  1. login glpi as administrator
  2. in a configuration in the menu
  3. enter the general option
  4. then the general configuration section
  5. Text in login box (HTML tags supported)
  6. save note: These html settings should appear on the main login page and recognize the HTML code

Your GLPI setup information

Información acerca de la instalación y configuración del sistema
GLPI 10.0.0 ( => /home/u128087325/domains/mava-tech.com/public_html/glpi)
Installation mode: TARBALL
Current language:es_CO

Server
 
Operating system: Linux us-imm-web130.main-hosting.eu 4.18.0-305.12.1.lve.el7h.x86_64 #1 SMP Tue Aug 17 03:13:08 EDT 2021
    x86_64
PHP 7.4.26 litespeed (Core, PDO, Phar, Reflection, SPL, SimpleXML, Zend OPcache, bcmath, bz2, calendar, ctype, curl, date, dom,
    exif, fileinfo, filter, ftp, gd, gettext, gmp, hash, iconv, imagick, imap, intl, json, libxml, litespeed, mbstring, mysqli,
    mysqlnd, openssl, pcntl, pcre, pdo_mysql, pdo_sqlite, posix, readline, session, shmop, soap, sockets, sqlite3, standard, tidy,
    timezonedb, tokenizer, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, zlib)
Setup: max_execution_time="300" memory_limit="512M" post_max_size="256M" safe_mode="" session.save_handler="files"
    upload_max_filesize="256M" 
Software: LiteSpeed
    Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.62 Safari/537.36
Server Software: MariaDB Server
    Server Version: 10.5.12-MariaDB-cll-lve
    Server SQL Mode: NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
    Parameters: u128087325_soporte@localhost/u128087325_glpi
    Host info: Localhost via UNIX socket

PHP version (7.4.26) is supported.
Sessions configuration is OK.
Allocated memory is sufficient.
mysqli extension is installed.
Following extensions are installed: dom, fileinfo, json, simplexml.
curl extension is installed.
gd extension is installed.
intl extension is installed.
libxml extension is installed.
zlib extension is installed.
The constant SODIUM_CRYPTO_AEAD_XCHACHA20POLY1305_IETF_NPUBBYTES is present.
Database engine version (10.5.12) is supported.
The log file has been created successfully.
Write access to /home/u128087325/domains/mava-tech.com/public_html/glpi/files/_cache has been validated.
Write access to /home/u128087325/domains/mava-tech.com/public_html/glpi/config has been validated.
Write access to /home/u128087325/domains/mava-tech.com/public_html/glpi/files/_cron has been validated.
Write access to /home/u128087325/domains/mava-tech.com/public_html/glpi/files has been validated.
Write access to /home/u128087325/domains/mava-tech.com/public_html/glpi/files/_dumps has been validated.
Write access to /home/u128087325/domains/mava-tech.com/public_html/glpi/files/_graphs has been validated.
Write access to /home/u128087325/domains/mava-tech.com/public_html/glpi/files/_lock has been validated.
Write access to /home/u128087325/domains/mava-tech.com/public_html/glpi/files/_pictures has been validated.
Write access to /home/u128087325/domains/mava-tech.com/public_html/glpi/files/_plugins has been validated.
Write access to /home/u128087325/domains/mava-tech.com/public_html/glpi/files/_rss has been validated.
Write access to /home/u128087325/domains/mava-tech.com/public_html/glpi/files/_sessions has been validated.
Write access to /home/u128087325/domains/mava-tech.com/public_html/glpi/files/_tmp has been validated.
Write access to /home/u128087325/domains/mava-tech.com/public_html/glpi/files/_uploads has been validated.
Web access to files directory is protected
exif extension is installed.
ldap extension is not present.
openssl extension is installed.
zip extension is installed.
bz2 extension is installed.
Zend OPcache extension is installed.
Following extensions are installed: ctype, iconv, mbstring.
Following extensions are not present: sodium.
Write access to /home/u128087325/domains/mava-tech.com/public_html/glpi/marketplace has been validated.
Access to timezone database (mysql) is not allowed.

GLPI constants
 
GLPI_ROOT: /home/u128087325/domains/mava-tech.com/public_html/glpi
GLPI_CONFIG_DIR: /home/u128087325/domains/mava-tech.com/public_html/glpi/config
GLPI_VAR_DIR: /home/u128087325/domains/mava-tech.com/public_html/glpi/files
GLPI_MARKETPLACE_DIR: /home/u128087325/domains/mava-tech.com/public_html/glpi/marketplace
GLPI_USE_CSRF_CHECK: 1
GLPI_CSRF_EXPIRES: 7200
GLPI_CSRF_MAX_TOKENS: 100
GLPI_USE_IDOR_CHECK: 1
GLPI_IDOR_EXPIRES: 7200
GLPI_ALLOW_IFRAME_IN_RICH_TEXT: 
GLPI_TELEMETRY_URI: https://telemetry.glpi-project.org
GLPI_INSTALL_MODE: TARBALL
GLPI_NETWORK_MAIL: glpi@teclib.com
GLPI_NETWORK_SERVICES: https://services.glpi-network.com
GLPI_MARKETPLACE_ALLOW_OVERRIDE: 1
GLPI_MARKETPLACE_MANUAL_DOWNLOADS: 1
GLPI_USER_AGENT_EXTRA_COMMENTS: 
GLPI_DISABLE_ONLY_FULL_GROUP_BY_SQL_MODE: 1
GLPI_AJAX_DASHBOARD: 1
GLPI_CALDAV_IMPORT_STATE: 0
GLPI_DEMO_MODE: 0
GLPI_CENTRAL_WARNINGS: 1
GLPI_DOC_DIR: /home/u128087325/domains/mava-tech.com/public_html/glpi/files
GLPI_CACHE_DIR: /home/u128087325/domains/mava-tech.com/public_html/glpi/files/_cache
GLPI_CRON_DIR: /home/u128087325/domains/mava-tech.com/public_html/glpi/files/_cron
GLPI_DUMP_DIR: /home/u128087325/domains/mava-tech.com/public_html/glpi/files/_dumps
GLPI_GRAPH_DIR: /home/u128087325/domains/mava-tech.com/public_html/glpi/files/_graphs
GLPI_LOCAL_I18N_DIR: /home/u128087325/domains/mava-tech.com/public_html/glpi/files/_locales
GLPI_LOCK_DIR: /home/u128087325/domains/mava-tech.com/public_html/glpi/files/_lock
GLPI_LOG_DIR: /home/u128087325/domains/mava-tech.com/public_html/glpi/files/_log
GLPI_PICTURE_DIR: /home/u128087325/domains/mava-tech.com/public_html/glpi/files/_pictures
GLPI_PLUGIN_DOC_DIR: /home/u128087325/domains/mava-tech.com/public_html/glpi/files/_plugins
GLPI_RSS_DIR: /home/u128087325/domains/mava-tech.com/public_html/glpi/files/_rss
GLPI_SESSION_DIR: /home/u128087325/domains/mava-tech.com/public_html/glpi/files/_sessions
GLPI_TMP_DIR: /home/u128087325/domains/mava-tech.com/public_html/glpi/files/_tmp
GLPI_UPLOAD_DIR: /home/u128087325/domains/mava-tech.com/public_html/glpi/files/_uploads
GLPI_INVENTORY_DIR: /home/u128087325/domains/mava-tech.com/public_html/glpi/files/_inventories
GLPI_NETWORK_REGISTRATION_API_URL: https://services.glpi-network.com/api/registration/
GLPI_MARKETPLACE_PLUGINS_API_URI: https://services.glpi-network.com/api/glpi-plugins/
GLPI_I18N_DIR: /home/u128087325/domains/mava-tech.com/public_html/glpi/locales
GLPI_VERSION: 10.0.0
GLPI_SCHEMA_VERSION: 10.0.0@9eb698d8fd49f9256d7bd63a6d747587e0effaff
GLPI_MARKETPLACE_PRERELEASES: 
GLPI_MIN_PHP: 7.4.0
GLPI_MAX_PHP: 8.2.0
GLPI_YEAR: 2022

Libraries
 
htmlawed/htmlawed version 1.2.6 in (/home/u128087325/domains/mava-tech.com/public_html/glpi/vendor/htmlawed/htmlawed)
phpmailer/phpmailer version 6.6.0 in (/home/u128087325/domains/mava-tech.com/public_html/glpi/vendor/phpmailer/phpmailer/src)
simplepie/simplepie version 1.5.8 in (/home/u128087325/domains/mava-tech.com/public_html/glpi/vendor/simplepie/simplepie/library)
mpdf/mpdf in (/home/u128087325/domains/mava-tech.com/public_html/glpi/vendor/mpdf/mpdf/src)
michelf/php-markdown in (/home/u128087325/domains/mava-tech.com/public_html/glpi/vendor/michelf/php-markdown/Michelf)
true/punycode in (/home/u128087325/domains/mava-tech.com/public_html/glpi/vendor/true/punycode/src)
iamcal/lib_autolink in (/home/u128087325/domains/mava-tech.com/public_html/glpi/vendor/iamcal/lib_autolink)
sabre/dav in (/home/u128087325/domains/mava-tech.com/public_html/glpi/vendor/sabre/dav/lib/DAV)
sabre/http in (/home/u128087325/domains/mava-tech.com/public_html/glpi/vendor/sabre/http/lib)
sabre/uri in (/home/u128087325/domains/mava-tech.com/public_html/glpi/vendor/sabre/uri/lib)
sabre/vobject in (/home/u128087325/domains/mava-tech.com/public_html/glpi/vendor/sabre/vobject/lib)
laminas/laminas-i18n in (/home/u128087325/domains/mava-tech.com/public_html/glpi/vendor/laminas/laminas-i18n/src)
laminas/laminas-servicemanager in (/home/u128087325/domains/mava-tech.com/public_html/glpi/vendor/laminas/laminas-servicemanager/src)
monolog/monolog in (/home/u128087325/domains/mava-tech.com/public_html/glpi/vendor/monolog/monolog/src/Monolog)
sebastian/diff in (/home/u128087325/domains/mava-tech.com/public_html/glpi/vendor/sebastian/diff/src)
donatj/phpuseragentparser in (/home/u128087325/domains/mava-tech.com/public_html/glpi/vendor/donatj/phpuseragentparser/src/UserAgent)
elvanto/litemoji in (/home/u128087325/domains/mava-tech.com/public_html/glpi/vendor/elvanto/litemoji/src)
symfony/console in (/home/u128087325/domains/mava-tech.com/public_html/glpi/vendor/symfony/console)
scssphp/scssphp in (/home/u128087325/domains/mava-tech.com/public_html/glpi/vendor/scssphp/scssphp/src)
laminas/laminas-mail in (/home/u128087325/domains/mava-tech.com/public_html/glpi/vendor/laminas/laminas-mail/src/Protocol)
laminas/laminas-mime in (/home/u128087325/domains/mava-tech.com/public_html/glpi/vendor/laminas/laminas-mime/src)
rlanvin/php-rrule in (/home/u128087325/domains/mava-tech.com/public_html/glpi/vendor/rlanvin/php-rrule/src)
blueimp/jquery-file-upload in (/home/u128087325/domains/mava-tech.com/public_html/glpi/vendor/blueimp/jquery-file-upload/server/php)
ramsey/uuid in (/home/u128087325/domains/mava-tech.com/public_html/glpi/vendor/ramsey/uuid/src)
psr/log in (/home/u128087325/domains/mava-tech.com/public_html/glpi/vendor/psr/log/Psr/Log)
psr/simple-cache in (/home/u128087325/domains/mava-tech.com/public_html/glpi/vendor/psr/simple-cache/src)
psr/cache in (/home/u128087325/domains/mava-tech.com/public_html/glpi/vendor/psr/cache/src)
league/csv in (/home/u128087325/domains/mava-tech.com/public_html/glpi/vendor/league/csv/src)
mexitek/phpcolors in (/home/u128087325/domains/mava-tech.com/public_html/glpi/vendor/mexitek/phpcolors/src/Mexitek/PHPColors)
guzzlehttp/guzzle in (/home/u128087325/domains/mava-tech.com/public_html/glpi/vendor/guzzlehttp/guzzle/src)
guzzlehttp/psr7 in (/home/u128087325/domains/mava-tech.com/public_html/glpi/vendor/guzzlehttp/psr7/src)
glpi-project/inventory_format in (/home/u128087325/domains/mava-tech.com/public_html/glpi/vendor/glpi-project/inventory_format/lib/php)
wapmorgan/unified-archive in (/home/u128087325/domains/mava-tech.com/public_html/glpi/vendor/wapmorgan/unified-archive/src)
paragonie/sodium_compat in (/home/u128087325/domains/mava-tech.com/public_html/glpi/vendor/paragonie/sodium_compat/src)
symfony/cache in (/home/u128087325/domains/mava-tech.com/public_html/glpi/vendor/symfony/cache)
html2text/html2text in (/home/u128087325/domains/mava-tech.com/public_html/glpi/vendor/html2text/html2text/src)
symfony/dom-crawler in (/home/u128087325/domains/mava-tech.com/public_html/glpi/vendor/symfony/dom-crawler)
twig/twig in (/home/u128087325/domains/mava-tech.com/public_html/glpi/vendor/twig/twig/src)
twig/string-extra in (/home/u128087325/domains/mava-tech.com/public_html/glpi/vendor/twig/string-extra)
symfony/polyfill-ctype not found
symfony/polyfill-iconv not found
symfony/polyfill-mbstring not found
symfony/polyfill-php80 in (/home/u128087325/domains/mava-tech.com/public_html/glpi/vendor/symfony/polyfill-php80)
symfony/polyfill-php81 in (/home/u128087325/domains/mava-tech.com/public_html/glpi/vendor/symfony/polyfill-php81)

SQL replicas
 
Not active

Notifications
 
Way of sending emails: PHP

Plugins list
 
    fusioninventory      Name: FusionInventory                Version: 9.5+3.0    State: Error / to clean
    jsaddons             Name: JS Addons                      Version: 1.0.0      State: Error / to clean
    satisfaction         Name: More satisfaction              Version: 1.5.2      State: Error / to clean
    oauthimap            Name: Oauth IMAP                     Version: 1.3.3      State: Error / to clean

Anything else?

image

cedric-anne commented 2 years ago

Hi,

In GLPI 10.0, for security reasons, only safe HTML elements are accepted, and styles are not part of them. If you want to apply custom styles on login page, you can do it by adding a custom CSS on root entity.

image

image