[+] Check scripts with shellcheck and semgrep

This module tries to identify shell scripts and analyses them with shellcheck - https://www.shellcheck.net/.


==> Check scripts with shellcheck

[+] Found 2 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/etc/fsupgrade.d/update_old_permissions.sh (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/etc/init.d/boot-trigger (-rw-r--r-- root root)
[+] Found 1 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/etc/udhcpc.d/50default (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/acap-install (-rw-r--r-- root root)
[+] Found 6 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/acap-licensekey-add (-rw-r--r-- root root)
[+] Found 1 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/linuxrc (-rw-r--r-- root root)
[+] Found 4 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/acap-licensekey-view (-rw-r--r-- root root)
[+] Found 2 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/acap-list (-rw-r--r-- root root)
[+] Found 4 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/acap-licensekey-remove (-rw-r--r-- root root)
[+] Found 4 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/acap-remove (-rw-r--r-- root root)
[+] Found 10 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/etc/fsupgrade.d/mediaclip_restore.sh (-rw-r--r-- root root)
[+] Found 5 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/acap-startstop (-rw-r--r-- root root)
[+] Found 4 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/acap-state (-rw-r--r-- root root)
[+] Found 9 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/init.crash (-rw-r--r-- root root)
[+] Found 13 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/etc/qos/qos.sh (-rw-r--r-- root root)
[+] Found 4 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/acap-symlink-cleanup (-rw-r--r-- root root)
[+] Found 1 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/addon-gkeyfileparser (-rw-r--r-- root _ssh)
[+] Found 1 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/addon-list (-rw-r--r-- root _ssh)
[+] Found 24 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/addon-info (-rw-r--r-- root _ssh)
[+] Found 4 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/addon-restore (-rw-r--r-- root _ssh)
[+] Found 10 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/addon-report (-rw-r--r-- root _ssh)
[+] Found 10 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/addon-install (-rw-r--r-- root _ssh)
[+] Found 10 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/addon-systemctl (-rw-r--r-- root _ssh)
[+] Found 1 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/addon-uninstall (-rw-r--r-- root _ssh)
[+] Found 2 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/checkprogress.sh (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/fan_status.sh (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/focusd-setup (-rw-r--r-- root _ssh)
[+] Found 26 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/elflibcheck.sh (-rw-r--r-- root root)
[+] Found 2 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/function_button.sh (-rw-r--r-- root root)
[+] Found 1 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/heater_status.sh (-rw-r--r-- root root)
[+] Found 1 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/humidity_status.sh (-rw-r--r-- root root)
[+] Found 42 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/addon-setup (-rw-r--r-- root _ssh)
[+] Found 16 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/iowrapper.sh (-rw-r--r-- root root)
[+] Found 7 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/ir_status_notify.sh (-rw-r--r-- root root)
[+] Found 10 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/ircutfilter.sh (-rw-r--r-- root root)
[+] Found 29 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/irlight.sh (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: yes): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/ldd (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/light_status.sh (-rw-r--r-- root root)
[+] Found 1 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/opkg-check-config (-rw-r--r-- root root)
[+] Found 7 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/parhand-systemctl (-rw-r--r-- root root)
[+] Found 13 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/ptzaction.sh (-rw-r--r-- root root)
[+] Found 1 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/set_wdr.sh (-rw-r--r-- root root)
[+] Found 8 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/socksparams2tsocks (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/start-package-allowed.sh (-rw-r--r-- 150 150)
[+] Found 28 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/poe_status.sh (-rw-r--r-- root root)
[+] Found 10 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/temperature_status.sh (-rw-r--r-- root root)
[+] Found 4 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/sync_irlight_ircut.sh (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/tsocks (-rw-r--r-- root root)
[+] Found 4 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/update_angleofillumination.sh (-rw-r--r-- root root)
[+] Found 29 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/validate_parameters.sh (-rw-r--r-- root root)
[+] Found 4 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/vmstatus.sh (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/activex/decoder/aac_dec.cab (-rw-r--r-- 150 docker)
[+] Found 3 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/activex/decoder/h264_dec.cab (-rw-r--r-- 150 docker)
[+] Found 14 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/alwaysmulti.cgi (-rw-r--r-- root docker)
[+] Found 1 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/applications/list.cgi (-rw-r--r-- 150 _ssh)
[+] Found 14 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/alwaysmulti.sdp (-rw-r--r-- root docker)
[+] Found 3 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/axisns.cgi (-rw-r--r-- 150 _ssh)
[+] Found 2 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/call_overlay_del.cgi (-rw-r--r-- root messagebus)
[+] Found 2 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/call_overlay_set.cgi (-rw-r--r-- root messagebus)
[+] Found 1 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/call_overlay_upload.cgi (-rw-r--r-- root messagebus)
[+] Found 8 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/connection_list.cgi (-rw-r--r-- root _ssh)
[+] Found 6 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/dnsupdate.cgi (-rw-r--r-- root _ssh)
[+] Found 7 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/create_overlay.cgi (-rw-r--r-- root messagebus)
[+] Found 1 issues in script (common linux file: yes): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/file_upload.cgi (-rw-r--r-- 150 _ssh)
[+] Found 6 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/image_param.cgi (-rw-r--r-- root messagebus)
[+] Found 5 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/ftptest.cgi (-rw-r--r-- root _ssh)
[+] Found 10 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/ipfilter.cgi (-rw-r--r-- root _ssh)
[+] Found 7 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/ledlimit.cgi (-rw-r--r-- root messagebus)
[+] Found 16 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/irissetup.cgi (-rw-r--r-- root messagebus)
[+] Found 6 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/lib/limited_access.sh (-rw-r--r-- 150 _ssh)
[+] Found 1 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/local_del.cgi (-rw-r--r-- 150 _ssh)
[+] Found 5 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/local_list.cgi (-rw-r--r-- 150 docker)
[+] Found 14 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/lib/preserve.sh (-rw-r--r-- 150 _ssh)
[+] Found 3 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/nattraversal.cgi (-rw-r--r-- root _ssh)
[+] Found 2 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/overlay_del.cgi (-rw-r--r-- root messagebus)
[+] Found 1 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/overlay_image_formats.cgi (-rw-r--r-- root messagebus)
[+] Found 20 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/mediaclip.cgi (-rw-r--r-- root messagebus)
[+] Found 2 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/overlay_list.cgi (-rw-r--r-- root messagebus)
[+] Found 2 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/overlay_set.cgi (-rw-r--r-- root messagebus)
[+] Found 1 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/paramlist.cgi (-rw-r--r-- root _ssh)
[+] Found 1 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/pingtest.cgi (-rw-r--r-- 150 _ssh)
[+] Found 4 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/playclip.cgi (-rw-r--r-- root docker)
[+] Found 2 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/res_finder.cgi (-rw-r--r-- 150 docker)
[+] Found 1 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/rootpwdsetvalue.cgi (-rw-r--r-- 150 docker)
[+] Found 16 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/serverreport.cgi (-rw-r--r-- root _ssh)
[+] Found 4 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/systemlog.cgi (-rw-r--r-- 150 _ssh)
[+] Found 5 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/tcptest.cgi (-rw-r--r-- root _ssh)
[+] Found 1 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/verify_firewall.cgi (-rw-r--r-- root _ssh)
[+] Found 1 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/virtualinput/activate.cgi (-rw-r--r-- 150 messagebus)
[+] Found 161 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/lib/adp.sh (-rw-r--r-- 150 _ssh)
[+] Found 1 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/virtualinput/deactivate.cgi (-rw-r--r-- 150 messagebus)
[+] Found 1 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/virtualinput/getschemaversions.cgi (-rw-r--r-- 150 messagebus)
[+] Found 14 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/vaconfig.cgi (-rw-r--r-- 150 _ssh)
[+] Found 2 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-release/releaseinfo (-rw-r--r-- root root)
[+] Found 22 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/lib/addon-apache-config (-rw-r--r-- root _ssh)
[+] Found 18 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/bin/devtools.sh (-rw-r--r-- 150 _ssh)
[+] Found 2 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/lib/conf-migrate/softreset-run.d/ptzaurus-coordinator (-rw-r--r-- root root)
[+] Found 7 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/lib/conf-migrate/upgrade-run.d/audiocontrol-conf (-rw-r--r-- root root)
[+] Found 2 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/lib/conf-migrate/upgrade-run.d/image2d (-rw-r--r-- root root)
[+] Found 6 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/lib/conf-migrate/upgrade-run.d/io2d (-rw-r--r-- root root)
[+] Found 4 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/lib/conf-migrate/upgrade-run.d/lens_correctiond (-rw-r--r-- root root)
[+] Found 6 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/lib/conf-migrate/upgrade-run.d/mdnssd (-rw-r--r-- root root)
[+] Found 71 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/lib/addon-common (-rw-r--r-- root _ssh)
[+] Found 2 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/lib/conf-migrate/upgrade-run.d/openssh_permitrootlogin.sh (-rw-r--r-- root root)
[+] Found 15 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/lib/conf-migrate/upgrade-run.d/ntpconfd (-rw-r--r-- root root)
[+] Found 2 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/lib/conf-migrate/upgrade-run.d/ptzaurus-coordinator (-rw-r--r-- root root)
[+] Found 8 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/lib/conf-migrate/upgrade-run.d/time-service (-rw-r--r-- root root)
[+] Found 12 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/lib/conf-migrate/upgrade-run.d/upnp (-rw-r--r-- root root)
[+] Found 1 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/lib/systemd/system-generators/ip-filter-generator (-rw-r--r-- root root)
[+] Found 1 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/lib/systemd/system-generators/snmpd-generator (-rw-r--r-- root root)
[+] Found 1 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/lib/systemd/system-generators/triggerd-generator (-rw-r--r-- root root)
[+] Found 1 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/lib/systemd/system-generators/vftp-generator (-rw-r--r-- root root)
[+] Found 5 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/libexec/acap_handle_persistent (-rw-r--r-- 150 150)
[+] Found 13 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/libexec/bandwidth-setup (-rw-r--r-- root root)
[+] Found 2 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/libexec/crashdump (-rw-r--r-- root root)
[+] Found 1 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/libexec/disks (-rw-r--r-- root root)
[+] Found 9 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/libexec/create-misalignment-data (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/libexec/enable-remote-logging (-rw-r--r-- root root)
[+] Found 34 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/libexec/focusd-fix-focus (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/libexec/image2d_shutter.sh (-rw-r--r-- root root)
[+] Found 2 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/libexec/light-controller-setup (-rw-r--r-- root root)
[+] Found 7 issues in script (common linux file: yes): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/libexec/iptables (-rw-r--r-- root root)
[+] Found 4 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/libexec/lldpd-conf-power-init (-rw-r--r-- root root)
[+] Found 1 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/libexec/lldpd-hostname-update (-rw-r--r-- root root)
[+] Found 6 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/libexec/mcast-always-setup (-rw-r--r-- root root)
[+] Found 2 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/libexec/mcast-redir-setup (-rw-r--r-- root root)
[+] Found 1 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/libexec/migrate-sd (-rw-r--r-- root root)
[+] Found 2 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/libexec/openssh/sshd_check_keys (-rw-r--r-- root root)
[+] Found 2 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/libexec/pre-parhand-set-defaults (-rw-r--r-- root root)
[+] Found 2 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/libexec/ptz-drivers-setup (-rw-r--r-- root root)
[+] Found 242 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/libexec/fsupgrade (-rw-r--r-- root root)
[+] Found 1 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/libexec/ptz-setup (-rw-r--r-- root root)
[+] Found 2 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/libexec/ptz-preinstall-setup (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/libexec/rc-ruleengine-acap (-rw-r--r-- root _ssh)
[+] Found 12 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/libexec/restore-acaps (-rw-r--r-- root _ssh)
[+] Found 2 issues in script (common linux file: yes): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/libexec/sa/sa1 (-rw-r--r-- root root)
[+] Found 7 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/libexec/rtp-setup (-rw-r--r-- root root)
[+] Found 7 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/libexec/sshdgenkeys.sh (-rw-r--r-- root root)
[+] Found 2 issues in script (common linux file: yes): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/libexec/sa/sa2 (-rw-r--r-- root root)
[+] Found 1 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/libexec/temperature-ctrl-setup (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/libexec/zeroconf-ip.script (-rw-r--r-- root root)
[+] Found 1 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/libexec/zram-init (-rw-r--r-- root root)
[+] Found 2 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/anonymousview.sh (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/application_report.sh (-rw-r--r-- 150 _ssh)
[+] Found 1 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/control.cgi (-rw-r--r-- 150 _ssh)
[+] Found 3 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/coredump.sh (-rw-r--r-- root root)
[+] Found 1 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/download.cgi (-rw-r--r-- 150 messagebus)
[+] Found 11 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/dnsupdate.script (-rw-r--r-- root root)
[+] Found 2 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/fan_available.sh (-rw-r--r-- root root)
[+] Found 12 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/date.cgi (-rw-r--r-- root _ssh)
[+] Found 1 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/get_alignment_support.sh (-rw-r--r-- root root)
[+] Found 2 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/heater_available.sh (-rw-r--r-- root root)
[+] Found 2 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/httpd-header-load (-rw-r--r-- root root)
[+] Found 1 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/httpd-generate-config (-rw-r--r-- root root)
[+] Found 2 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/manual_ir_override.sh (-rw-r--r-- root root)
[+] Found 1 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/license.cgi (-rw-r--r-- 150 _ssh)
[+] Found 2 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/rc.iverase (-rw-r--r-- root root)
[+] Found 13 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/mcast-always-setter (-rw-r--r-- root root)
[+] Found 9 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/populate-extfs.sh (-rw-r--r-- root root)
[+] Found 1 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/rc.ivrestore (-rw-r--r-- root root)
[+] Found 2 issues in script (common linux file: yes): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/reboot (-rw-r--r-- root root)
[+] Found 82 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh (-rw-r--r-- root _ssh)
[+] Found 21 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/resolution_update_motion (-rw-r--r-- root root)
[+] Found 1 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/statuscacheinit (-rw-r--r-- root root)
[+] Found 30 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/install-package.sh (-rw-r--r-- 150 150)
[+] Found 2 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/temp_sensor_available.sh (-rw-r--r-- root root)
[+] Found 47 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/resolution_update (-rw-r--r-- root root)
[+] Found 1 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/upload.cgi (-rw-r--r-- 150 _ssh)
[+] Found 2 issues in script (common linux file: yes): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/update-ca-certificates (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: yes): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/share/opkg/intercept/depmod (-rw-r--r-- root root)
[+] Found 8 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/share/syslog-ng/include/scl/loadbalancer/gen-loadbalancer.sh (-rw-r--r-- root root)
[+] Found 7 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/share/serverreport.d/ntp_status.sh (-rw-r--r-- 155 nogroup)
[+] Found 41 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/syslog-ng-debun (-rw-r--r-- root root)


==> Summary of shell issues (shellcheck)

[+] Found 1658 issues in 232 shell scripts


    [+] SC1087 (error): Use braces when expanding arrays, e.g. ${array[idx]} (or ${var}[.. to quiet).
    [+] SC1097 (error): Unexpected ==. For assignment, use =. For comparison, use [/[[. Or quote for literal string.
    [+] SC2068 (error): Double quote array expansions to avoid re-splitting elements.
    [+] SC2145 (error): Argument mixes string and array. Use * or separate argument.
    [+] SC1001 (info): This \u will be a regular 'u' in this context.
    [+] SC1003 (info): Want to escape a single quote? echo 'This is how it'\''s done'.
    [+] SC1091 (info): Not following: /usr/html/axis-cgi/lib/functions.sh was not specified as input (see shellcheck -x).
    [+] SC2004 (style): $/${} is unnecessary on arithmetic variables.
    [+] SC2006 (style): Use $(...) notation instead of legacy backticks `...`.
    [+] SC2009 (info): Consider using pgrep instead of grepping ps output.
    [+] SC2012 (info): Use find instead of ls to better handle non-alphanumeric filenames.
    [+] SC2013 (info): To read lines rather than words, pipe/redirect to a 'while read' loop.
    [+] SC2015 (info): Note that A && B || C is not if-then-else. C may run when A is true.
    [+] SC2016 (info): Expressions don't expand in single quotes, use double quotes for that.
    [+] SC2059 (info): Don't use variables in the printf format string. Use printf '..%s..' "$foo".
    [+] SC2086 (info): Double quote to prevent globbing and word splitting.
    [+] SC2181 (style): Check exit code directly with e.g. 'if mycmd;', not indirectly with $?.
    [+] SC2231 (info): Quote expansions in this for loop glob to prevent wordsplitting, e.g. "$dir"/*.txt .
    [+] SC2235 (style): Use { ..; } instead of (..) to avoid subshell overhead.
    [+] SC2236 (style): Use -n instead of ! -z.
    [+] SC2291 (info): Quote repeated spaces to avoid them collapsing into one.
    [+] SC2295 (info): Expansions inside ${..} need to be quoted separately, otherwise they match as patterns.
    [+] SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly).
    [+] SC1007 (warning): Remove space after = if trying to assign a value (for empty string, use var='' ... ).
    [+] SC1083 (warning): This { is literal. Check expression (missing ;/
?) or quote it.
    [+] SC1090 (warning): ShellCheck can't follow non-constant source. Use a directive to specify location.
    [+] SC2010 (warning): Don't use ls | grep. Use a glob or a for loop with a condition to allow non-alphanumeric filenames.
    [+] SC2027 (warning): The surrounding quotes actually unquote this. Remove or escape them.
    [+] SC2034 (warning): ERR_UNSUPPORTED_SIGNATURE_FORMAT appears unused. Verify use (or export if used externally).
    [+] SC2044 (warning): For loops over find output are fragile. Use find -exec or a while read loop.
    [+] SC2046 (warning): Quote this to prevent word splitting.
    [+] SC2048 (warning): Use "$@" (with quotes) to prevent whitespace problems.
    [+] SC2120 (warning): usage references arguments, but none are ever passed.
    [+] SC2125 (warning): Brace expansions and globs are literal in assignments. Quote it or use an array.
    [+] SC2155 (warning): Declare and assign separately to avoid masking return values.
    [+] SC2166 (warning): Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
    [+] SC2188 (warning): This redirection doesn't have a command. Move to its command (or use 'true' as no-op).
    [+] SC2254 (warning): Quote expansions in case patterns to match literally rather than as a glob.
    [+] SC3014 (warning): In POSIX sh, == in place of = is undefined.
    [+] SC3018 (warning): In POSIX sh, ++ is undefined.
    [+] SC3023 (warning): In POSIX sh, FDs outside 0-9 are undefined.
    [+] SC3037 (warning): In POSIX sh, echo flags are undefined.
    [+] SC3043 (warning): In POSIX sh, 'local' is undefined.
    [+] SC3045 (warning): In POSIX sh, ulimit -c is undefined.

==> Check scripts with semgrep



==> Summary of shell issues (semgrep)

[+] Found 984 issues (11 vulnerabilites) in 77 shell scripts


==> Check shell scripts for eval usage

[+] Found eval usage in qos.sh
[+] Found eval usage in 50default
[+] Found eval usage in init.crash
[+] Found eval usage in addon-info
[+] Found eval usage in addon-report
[+] Found eval usage in addon-setup
[+] Found eval usage in ldd
[+] Found eval usage in parhand-systemctl
[+] Found eval usage in poe_status.sh
[+] Found eval usage in sync_irlight_ircut.sh
[+] Found eval usage in alwaysmulti.cgi
[+] Found eval usage in alwaysmulti.sdp
[+] Found eval usage in connection_list.cgi
[+] Found eval usage in adp.sh
[+] Found eval usage in limited_access.sh
[+] Found eval usage in mediaclip.cgi
[+] Found eval usage in serverreport.cgi
[+] Found eval usage in devtools.sh
[+] Found eval usage in addon-common
[+] Found eval usage in systemd-sysv-install
[+] Found eval usage in acap_handle_persistent
[+] Found eval usage in bandwidth-setup
[+] Found eval usage in create-misalignment-data
[+] Found eval usage in focusd-fix-focus
[+] Found eval usage in fsupgrade
[+] Found eval usage in iptables
[+] Found eval usage in mcast-always-setup
[+] Found eval usage in restore-acaps
[+] Found eval usage in gen_serverreport.sh
[+] Found eval usage in install-package.sh
[+] Found eval usage in mcast-always-setter
[+] Found eval usage in populate-extfs.sh
[+] Found eval usage in rc.iverase
[+] Found eval usage in resolution_update
[+] Found eval usage in update-ca-certificates