[+] 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 1 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/linuxrc (-rw-r--r-- root root)
[+] Found 1 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/etc/udhcpc.d/50default (-rw-r--r-- root root)
[+] Found 1 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/a1210_iconf.sh (-rw-r--r-- root root)
[+] Found 13 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/etc/qos/qos.sh (-rw-r--r-- root root)
[+] Found 6 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/acap-licensekey-add (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/acap-install (-rw-r--r-- root root)
[+] Found 4 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/acap-licensekey-remove (-rw-r--r-- root root)
[+] Found 5 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/a1601_test.sh (-rw-r--r-- root root)
[+] Found 4 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/acap-licensekey-view (-rw-r--r-- root root)
[+] Found 6 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/acap-list (-rw-r--r-- root root)
[+] Found 4 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/acap-remove (-rw-r--r-- root root)
[+] Found 4 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/acap-symlink-cleanup (-rw-r--r-- root root)
[+] Found 5 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/acap-startstop (-rw-r--r-- root root)
[+] Found 4 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/acap-state (-rw-r--r-- root root)
[+] Found 1 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/addon-gkeyfileparser (-rw-r--r-- root _ssh)
[+] Found 1 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/addon-list (-rw-r--r-- root _ssh)
[+] Found 10 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/addon-report (-rw-r--r-- root _ssh)
[+] Found 4 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/addon-restore (-rw-r--r-- root _ssh)
[+] Found 24 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/addon-info (-rw-r--r-- root _ssh)
[+] Found 10 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/addon-install (-rw-r--r-- root _ssh)
[+] Found 10 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/addon-systemctl (-rw-r--r-- root _ssh)
[+] Found 1 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/addon-uninstall (-rw-r--r-- root _ssh)
[+] Found 2 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/checkprogress.sh (-rw-r--r-- root root)
[+] Found 1 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/data-partition.sh (-rw-r--r-- root root)
[+] Found 1 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/factory-default-data-partition.sh (-rw-r--r-- root root)
[+] Found 2 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/function_button.sh (-rw-r--r-- root root)
[+] Found 23 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/elflibcheck.sh (-rw-r--r-- root root)
[+] Found 2 issues in script (common linux file: yes): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/glib-gettextize (-rw-r--r-- root root)
[+] Found 16 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/iowrapper.sh (-rw-r--r-- root root)
[+] Found 42 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/addon-setup (-rw-r--r-- root _ssh)
[+] Found 3 issues in script (common linux file: yes): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/ldd (-rw-r--r-- root root)
[+] Found 1 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/opkg-check-config (-rw-r--r-- root root)
[+] Found 6 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/parhand-systemctl (-rw-r--r-- root root)
[+] Found 15 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/print_a1210_inputs.sh (-rw-r--r-- root root)
[+] Found 1 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/reset_mcu.sh (-rw-r--r-- root root)
[+] Found 30 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/poe_status.sh (-rw-r--r-- root root)
[+] Found 1 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.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/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/socksparams2tsocks (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/start-package-allowed.sh (-rw-r--r-- 150 150)
[+] Found 3 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/tsocks (-rw-r--r-- root root)
[+] Found 4 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/vmstatus.sh (-rw-r--r-- root root)
[+] Found 28 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/validate_parameters.sh (-rw-r--r-- root root)
[+] Found 1 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/html/axis-cgi/applications/info.cgi (-rw-r--r-- 150 _ssh)
[+] Found 1 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/html/axis-cgi/applications/list.cgi (-rw-r--r-- 150 _ssh)
[+] Found 6 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/html/axis-cgi/dnsupdate.cgi (-rw-r--r-- root _ssh)
[+] Found 8 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/html/axis-cgi/connection_list.cgi (-rw-r--r-- root _ssh)
[+] Found 1 issues in script (common linux file: yes): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/html/axis-cgi/file_upload.cgi (-rw-r--r-- 150 _ssh)
[+] Found 4 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.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/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/html/axis-cgi/ipfilter.cgi (-rw-r--r-- root _ssh)
[+] Found 2 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/html/axis-cgi/language_viewer.cgi (-rw-r--r-- 150 docker)
[+] Found 6 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.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/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.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/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/html/axis-cgi/local_list.cgi (-rw-r--r-- 150 docker)
[+] Found 1 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/html/axis-cgi/login.cgi (-rw-r--r-- 150 docker)
[+] Found 14 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/html/axis-cgi/lib/preserve.sh (-rw-r--r-- 150 _ssh)
[+] Found 1 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/html/axis-cgi/paramlist.cgi (-rw-r--r-- root _ssh)
[+] Found 2 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/html/axis-cgi/pingtest.cgi (-rw-r--r-- 150 _ssh)
[+] Found 1 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.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/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/html/axis-cgi/serverreport.cgi (-rw-r--r-- root _ssh)
[+] Found 16 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/html/axis-cgi/irissetup.cgi (-rw-r--r-- root messagebus)
[+] Found 4 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/html/axis-cgi/tcptest.cgi (-rw-r--r-- root _ssh)
[+] Found 4 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/html/axis-cgi/systemlog.cgi (-rw-r--r-- 150 _ssh)
[+] Found 1 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/html/axis-cgi/verify_firewall.cgi (-rw-r--r-- root _ssh)
[+] Found 2 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/html/axis-cgi/virtualinput/activate.cgi (-rw-r--r-- 150 messagebus)
[+] Found 2 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.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/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.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/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.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/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.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/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/lib/addon-apache-config (-rw-r--r-- root _ssh)
[+] Found 3 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/lib/conf-migrate/softreset-run.d/web-language (-rw-r--r-- root root)
[+] Found 2 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/lib/conf-migrate/upgrade-run.d/actionengined (-rw-r--r-- root root)
[+] Found 166 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/html/axis-cgi/lib/adp.sh (-rw-r--r-- 150 _ssh)
[+] Found 12 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/lib/conf-migrate/upgrade-parhand (-rw-r--r-- root root)
[+] Found 8 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/lib/conf-migrate/upgrade-run.d/bandwidth (-rw-r--r-- root root)
[+] Found 1 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/lib/conf-migrate/upgrade-run.d/cert-init (-rw-r--r-- root root)
[+] Found 6 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/lib/conf-migrate/upgrade-run.d/io2d (-rw-r--r-- root root)
[+] Found 72 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/lib/addon-common (-rw-r--r-- root _ssh)
[+] Found 8 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/lib/conf-migrate/upgrade-run.d/ipfilter (-rw-r--r-- root root)
[+] Found 6 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/lib/conf-migrate/upgrade-run.d/mdnssd (-rw-r--r-- root root)
[+] Found 17 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/lib/conf-migrate/upgrade-run.d/ntpconfd (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/lib/conf-migrate/upgrade-run.d/openssh (-rw-r--r-- root root)
[+] Found 26 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/lib/conf-migrate/upgrade-run.d/snmp-confd (-rw-r--r-- root root)
[+] Found 8 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/lib/conf-migrate/upgrade-run.d/time-service (-rw-r--r-- root root)
[+] Found 6 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/lib/conf-migrate/upgrade-run.d/upnp (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/lib/conf-migrate/upgrade-run.d/web-language (-rw-r--r-- root root)
[+] Found 2 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/lib/conf-migrate/upgrade-run.d/wssecurity-user-handling (-rw-r--r-- root root)
[+] Found 1 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.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/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.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/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.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/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/libexec/bandwidth-setup (-rw-r--r-- root root)
[+] Found 1 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/libexec/deviceuuid-init (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/libexec/enable-remote-logging (-rw-r--r-- root root)
[+] Found 1 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.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/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/libexec/mcast-always-setup (-rw-r--r-- root root)
[+] Found 7 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/libexec/ipfilter (-rw-r--r-- root root)
[+] Found 2 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/libexec/mcast-redir-setup (-rw-r--r-- root root)
[+] Found 2 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.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/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/libexec/pre-parhand-set-defaults (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/libexec/rc-ruleengine-acap (-rw-r--r-- root _ssh)
[+] Found 16 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/libexec/restore-acaps (-rw-r--r-- root _ssh)
[+] Found 7 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/libexec/rtp-setup (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: yes): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/libexec/sa/sa1 (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: yes): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/libexec/sa/sa2 (-rw-r--r-- root root)
[+] Found 2 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/libexec/sshdgenkeys.sh (-rw-r--r-- root root)
[+] Found 1 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/libexec/zram-init (-rw-r--r-- root root)
[+] Found 2 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/ac_platform_check.sh (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.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/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/control.cgi (-rw-r--r-- 150 _ssh)
[+] Found 3 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/coredump.sh (-rw-r--r-- root root)
[+] Found 11 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/dnsupdate.script (-rw-r--r-- root root)
[+] Found 1 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/get_sia_osdp_verified_version.sh (-rw-r--r-- root root)
[+] Found 1 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/get_ul_version.sh (-rw-r--r-- root root)
[+] Found 12 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/date.cgi (-rw-r--r-- root _ssh)
[+] Found 2 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/httpd-check-ciphers (-rw-r--r-- root root)
[+] Found 2 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.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/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/httpd-update-groups (-rw-r--r-- root root)
[+] Found 1 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/license.cgi (-rw-r--r-- 150 _ssh)
[+] Found 13 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/mcast-always-setter (-rw-r--r-- root root)
[+] Found 19 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/mcu-ctl (-rw-r--r-- root root)
[+] Found 2 issues in script (common linux file: yes): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/reboot (-rw-r--r-- root root)
[+] Found 9 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.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/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/statuscacheinit (-rw-r--r-- root root)
[+] Found 1 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/upload.cgi (-rw-r--r-- 150 _ssh)
[+] Found 2 issues in script (common linux file: yes): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/update-ca-certificates (-rw-r--r-- root root)
[+] Found 10 issues in script (common linux file: yes): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/share/keyutils/request-key-debug.sh (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: yes): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/share/opkg/intercept/depmod (-rw-r--r-- root root)
[+] Found 30 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/install-package.sh (-rw-r--r-- 150 150)
[+] Found 1 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/share/serverreport.d/customheader_report.sh (-rw-r--r-- 150 _ssh)
[+] Found 2 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/share/serverreport.d/feature-flag.sh (-rw-r--r-- 155 _ssh)
[+] Found 1 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/share/serverreport.d/mqtt_config.sh (-rw-r--r-- 155 _ssh)
[+] Found 7 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/share/serverreport.d/ntp_status.sh (-rw-r--r-- 150 _ssh)
[+] Found 23 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/share/serverreport.d/sdcard-report.sh (-rw-r--r-- root _ssh)
[+] Found 8 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/share/syslog-ng/include/scl/loadbalancer/gen-loadbalancer.sh (-rw-r--r-- root root)
[+] Found 47 issues in script (common linux file: no): ./logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/sbin/syslog-ng-debun (-rw-r--r-- root root)


==> Summary of shell issues (shellcheck)

[+] Found 1109 issues in 181 shell scripts


    [+] SC1035 (error): You are missing a required space after the !.
    [+] 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.
    [+] SC2071 (error): > is for string comparisons. Use -gt instead.
    [+] 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.
    [+] 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.
    [+] SC2129 (style): Consider using { cmd1; cmd2; } >> file instead of individual redirects.
    [+] SC2161 (style): Instead of '[ 1 ]', use 'true'.
    [+] SC2181 (style): Check exit code directly with e.g. 'if mycmd;', not indirectly with $?.
    [+] 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.
    [+] SC2034 (warning): ERR_UNSUPPORTED_SIGNATURE_FORMAT appears unused. Verify use (or export if used externally).
    [+] SC2038 (warning): Use -print0/-0 or -exec + to allow for non-alphanumeric filenames.
    [+] SC2043 (warning): This loop will only ever run once. Bad quoting or missing glob/expansion?
    [+] 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.
    [+] SC2091 (warning): Remove surrounding $() to avoid executing output (or use eval if intentional).
    [+] 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.
    [+] SC3012 (warning): In POSIX sh, lexicographical > is undefined.
    [+] SC3014 (warning): In POSIX sh, == in place of = is undefined.
    [+] SC3018 (warning): In POSIX sh, ++ is undefined.
    [+] SC3037 (warning): In POSIX sh, echo flags are undefined.
    [+] SC3043 (warning): In POSIX sh, 'local' is undefined.
    [+] SC3045 (warning): In POSIX sh, read -n is undefined.

==> Check scripts with semgrep



==> Summary of shell issues (semgrep)

[+] Found 885 issues (9 vulnerabilites) in 73 shell scripts


==> Check shell scripts for eval usage

[+] Found eval usage in qos.sh
[+] Found eval usage in 50default
[+] 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 connection_list.cgi
[+] Found eval usage in adp.sh
[+] Found eval usage in limited_access.sh
[+] Found eval usage in serverreport.cgi
[+] Found eval usage in addon-common
[+] Found eval usage in acap_handle_persistent
[+] Found eval usage in bandwidth-setup
[+] Found eval usage in deviceuuid-init
[+] Found eval usage in ipfilter
[+] Found eval usage in mcast-always-setup
[+] Found eval usage in restore-acaps
[+] 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 update-ca-certificates