Security scanner does not allow uploading woocommerce-germanized-pro
-
Hello,
I have a problem with the plugin security scanner.
For a particular plugin I use in my WordPress installation, woocommerce-germanized-pro, I cannot upload the integrity data.The Site Integrity Scanner reports the following error message:
Integrity data not found
When I click “Resolve issue” and upload a ZIP archive so that the security scanner can check the integrity of the code and detect malware, the following error message is displayed:Process aborted Error: file woocommerce-germanized-pro.zip cannot be used. Proper program code not found. Please upload another file.The problem is probably that the Cerber scanner cannot determine the correct data of the plugin. I have already debugged the cerber_detect_object() function, which returns false for this plugin. It looks to me like the detected name and version do not match the real name and version.
That’s why the for loop in cerber-scanner.php at line 4200 doesn’t seem to be run and doesn’t return anything. Since this is a paid Pro plugin, I’m happy to share the necessary info here and help with error detection.
The zip file contains a .php file in the main folder: woocommerce-germanized-pro.php.
The header of the file looks like this:/** * Plugin Name: Germanized for WooCommerce Pro * Plugin URI: https://vendidero.de/woocommerce-germanized * Description: Extends Germanized for WooCommerce with professional features such as PDF invoices, legal text generators and many more. * Version: 3.2.5 * Author: vendidero * Author URI: https://vendidero.de * Requires at least: 5.4 * Tested up to: 5.8 * WC requires at least: 3.9 * WC tested up to: 5.5 * * Text Domain: woocommerce-germanized-pro * Domain Path: /i18n/languages/ * * @author vendidero */Maybe you can check why the name and version are not recognised correctly and why I cannot upload the archive.
-
Hi! Can I see the plugin archive you’ve tried to upload?
Mhh, I’m not sure if I’m allowed to do that.
The plugin is a Pro plugin, for which you have to pay money.
However, I am happy to send you the following information:
– Folder structure (partially shortened)
– license.txt (partially shortened)
– readme.txt
– woocommerce-germanized-pro.php (partly shortened)
– wpml-config.xmlFolder structure (partially shortened)
. |____assets | |____css -> (around 10 css files) | |____images | | |____germanized.svg | |____js -> (around 20 js files)) |____i18n | |____languages -> (around 70 json files) |____includes | |____abstracts | | |____abstract-wc-gzdp-checkout-step.php | | |____abstract-wc-gzdp-invoice.php | | |____abstract-wc-gzdp-post-pdf.php | | |____abstract-wc-gzdp-theme.php | |____admin | | |____class-wc-gzdp-admin-generator.php | | |____class-wc-gzdp-admin-packing-slip-bulk-handler.php | | |____class-wc-gzdp-admin-setup-wizard.php | | |____class-wc-gzdp-admin.php | | |____notes | | | |____class-wc-gzdp-admin-note-generator-versions.php | | |____settings | | | |____abstract-wc-gzdp-settings-tab-generator.php | | | |____class-wc-gzdp-settings-tab-contract.php | | | |____class-wc-gzdp-settings-tab-emails.php | | | |____class-wc-gzdp-settings-tab-invoices.php | | | |____class-wc-gzdp-settings-tab-multistep-checkout.php | | | |____class-wc-gzdp-settings-tab-revocation-generator.php | | | |____class-wc-gzdp-settings-tab-shipments.php | | | |____class-wc-gzdp-settings-tab-taxes.php | | | |____class-wc-gzdp-settings-tab-terms-generator.php | | | |____class-wc-gzdp-settings.php | | |____views | | | |____html-admin-email-text-option.php | | | |____html-admin-table-checkboxes.php | | | |____html-generator-section-editor.php | | | |____html-generator-section-error.php | | | |____html-generator-section.php | | | |____html-import-legacy-invoices-errors.php | | | |____html-import-legacy-invoices-form.php | | | |____html-notice-dependencies-gzd.php | | | |____html-notice-dependencies.php | | | |____html-notice-wp-version.php | | | |____html-pdf-settings-before.php | | | |____html-shipment-packing-slip.php | | | |____setup | | | | |____activation.php | | | | |____invoice.php | | | | |____legacy-import.php | | | | |____ready.php | | | | |____support.php | |____api | | |____class-wc-gzdp-rest-api.php | | |____class-wc-gzdp-rest-customers-controller.php | | |____class-wc-gzdp-rest-orders-controller.php | |____checkout | | |____class-wc-gzdp-checkout-step-address.php | | |____class-wc-gzdp-checkout-step-order.php | | |____class-wc-gzdp-checkout-step-payment.php | | |____compatibility | | | |____class-wc-gzdp-checkout-compatibility-amazon-payments-advanced.php | | | |____class-wc-gzdp-checkout-compatibility-woo-paypal-plus.php | |____class-wc-gzdp-ajax.php | |____class-wc-gzdp-assets.php | |____class-wc-gzdp-contract-helper.php | |____class-wc-gzdp-dependencies.php | |____class-wc-gzdp-document-factory.php | |____class-wc-gzdp-elementor-helper.php | |____class-wc-gzdp-elementor-widget-helper.php | |____class-wc-gzdp-install.php | |____class-wc-gzdp-invoice-cancellation-refund.php | |____class-wc-gzdp-invoice-cancellation.php | |____class-wc-gzdp-invoice-factory.php | |____class-wc-gzdp-invoice-packing-slip.php | |____class-wc-gzdp-invoice-shortcodes.php | |____class-wc-gzdp-invoice-simple.php | |____class-wc-gzdp-legal-checkbox-helper.php | |____class-wc-gzdp-legal-page.php | |____class-wc-gzdp-multistep-checkout.php | |____class-wc-gzdp-privacy.php | |____class-wc-gzdp-theme-helper.php | |____class-wc-gzdp-unit-price-helper.php | |____class-wc-gzdp-vat-helper.php | |____class-wc-gzdp-vat-validation.php | |____class-wc-gzdp-wpml-helper.php | |____emails | | |____class-wc-gzdp-email-customer-order-confirmation.php | | |____class-wc-gzdp-email-customer-processing-order.php | | |____class-wc-gzdp-email-helper.php | |____vendidero | | |____vendidero-functions.php | |____wc-gzdp-core-functions.php | |____wc-gzdp-invoice-functions.php | |____wc-gzdp-invoice-template-functions.php | |____wc-gzdp-order-functions.php |____license.txt |____packages | |____storeabill -> (it's a subpackage containing assets, build, includes, lib, src, templates, license.txt, main php file and a xml file) | |____storeabill-lexoffice -> (it's a subpackage containing assets, build, includes, lib, src, templates, license.txt, main php file and a xml file) | |____storeabill-sevdesk -> (it's a subpackage containing assets, build, includes, lib, src, templates, license.txt, main php file and a xml file) |____readme.txt |____src | |____Autoloader.php | |____Legacy | | |____Cancellation.php | | |____CancellationRefund.php | | |____Importer.php | | |____Invoice.php | | |____Pdf.php | |____Packages.php | |____Packing | | |____Automation.php | |____StoreaBill -> (some php files in there) |____templates | |____checkout | | |____multistep | | | |____data.php | | | |____privacy.php | | | |____steps.php | | | |____submit.php | |____emails | | |____customer-processing-order-pre.php | | |____plain | | | |____customer-processing-order-pre.php | |____myaccount | | |____form-register-vat-id.php | |____packing-slip | | |____content.php | | |____footer-first-page.php | | |____footer.php | | |____header-first-page.php | | |____header.php | | |____page.php | |____post-document | | |____content.php | | |____footer-first-page.php | | |____footer.php | | |____header-first-page.php | | |____header.php | | |____page.php |____themes | |____assets | | |____css -> (some css files) | | |____js -> (some js files) | |____class-wc-gzdp-theme-astra.php | |____class-wc-gzdp-theme-enfold.php | |____class-wc-gzdp-theme-flatsome.php | |____class-wc-gzdp-theme-shopkeeper.php | |____class-wc-gzdp-theme-storefront.php | |____class-wc-gzdp-theme-virtue.php | |____enfold | | |____shortcodes | | | |____class-wc-gzdp-enfold-product-button.php | |____flatsome | | |____templates | | | |____checkout | | | | |____multistep | | | | | |____data.php | | | |____notices | | | | |____notice.php | |____views | | |____html-admin-notice-astra-shopmark.php | | |____html-admin-notice-virtue-shopmark.php | |____virtue | | |____templates | | | |____single-product | | | | |____price-unit.php | | | | |____price.php |____tree.txt |____vendor | |____ (vendor files here) |____woocommerce-germanized-pro.php |____wpml-config.xmllicense.txt (partially shortened)
WooCommerce Germanized Pro Copyright 2011 by the contributors This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA This program incorporates work covered by the following copyright and permission notices: WooCommerce WooCommerce Germanized =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright © 2007 Free Software Foundation, Inc. <http://fsf.org/> Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. ...readme.txt
=== Germanized for WooCommerce Pro === Contributors: vendidero WC requires at least: 3.9 WC tested up to: 5.6 Requires at least: 5.4 Tested up to: 5.8 Requires PHP: 5.6 License: GPLv3woocommerce-germanized-pro.php (partially shortened)
<?php /** * Plugin Name: Germanized for WooCommerce Pro * Plugin URI: https://vendidero.de/woocommerce-germanized * Description: Extends Germanized for WooCommerce with professional features such as PDF invoices, legal text generators and many more. * Version: 3.2.6 * Author: vendidero * Author URI: https://vendidero.de * Requires at least: 5.4 * Tested up to: 5.8 * WC requires at least: 3.9 * WC tested up to: 5.6 * * Text Domain: woocommerce-germanized-pro * Domain Path: /i18n/languages/ * * @author vendidero */ use Vendidero\Germanized\Pro\Autoloader; use Vendidero\Germanized\Pro\Packages; if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly } /** * Load core packages and the autoloader. * * The new packages and autoloader require PHP 5.6+. */ if ( version_compare( PHP_VERSION, '5.6.0', '>=' ) ) { require __DIR__ . '/src/Autoloader.php'; require __DIR__ . '/src/Packages.php'; if ( ! Autoloader::init() ) { return; } Packages::init(); } else { function wc_gzdp_admin_php_notice() { ?> <div id="message" class="error"> <p> <?php printf( /* translators: %s is the word upgrade with a link to a support page about upgrading */ __( 'Germanized Pro requires at least PHP 5.6 to work. Please %s your PHP version.', 'woocommerce-germanized-pro' ), '<a href="https://wordpress.org/support/update-php/">' . esc_html__( 'upgrade', 'woocommerce-germanized-pro' ) . '</a>' ); ?> </p> </div> <?php } add_action( 'admin_notices', 'wc_gzdp_admin_php_notice', 20 ); return; } if ( ! class_exists( 'WooCommerce_Germanized_Pro' ) ) : final class WooCommerce_Germanized_Pro { # the whole class goes here } endif; /** * @return WooCommerce_Germanized_Pro $pro instance */ function WC_germanized_pro() { return WooCommerce_Germanized_Pro::instance(); } $GLOBALS['woocommerce_germanized_pro'] = WC_germanized_pro(); ?>wpml-config.xml
<wpml-config> <custom-types> <custom-type translate="1" display-as-translated="1">document_template</custom-type> </custom-types> <custom-fields> <custom-field action="copy">_document_type</custom-field> <custom-field action="copy-once">_pdf_template_id</custom-field> <custom-field action="copy-once">_margins</custom-field> <custom-field action="copy">_template_name</custom-field> <custom-field action="copy-once">_fonts</custom-field> <custom-field action="copy-once">_font_size</custom-field> <custom-field action="copy-once">_color</custom-field> </custom-fields> <admin-texts> <key name="woocommerce_gzdp_checkout_step_title_address" /> <key name="woocommerce_gzdp_checkout_step_title_payment" /> <key name="woocommerce_gzdp_checkout_step_title_order" /> <key name="woocommerce_gzdp_checkout_privacy_policy_text" /> <key name="woocommerce_gzdp_contract_helper_email_order_processing_text" /> <key name="woocommerce_gzdp_legal_page_revocation_pdf" /> <key name="woocommerce_gzdp_legal_page_terms_pdf" /> <key name="woocommerce_gzdp_legal_page_data_security_pdf" /> <key name="woocommerce_gzdp_legal_page_imprint_pdf" /> <key name="woocommerce_customer_order_confirmation_settings"> <key name="subject" /> <key name="heading" /> <key name="additional_content" /> </key> <key name="woocommerce_sab_simple_invoice_settings"> <key name="subject" /> <key name="heading" /> <key name="additional_content" /> </key> <key name="woocommerce_sab_cancellation_invoice_settings"> <key name="subject" /> <key name="heading" /> <key name="additional_content" /> </key> <key name="woocommerce_sab_document_admin_settings"> <key name="subject" /> <key name="heading" /> <key name="additional_content" /> </key> <key name="woocommerce_sab_document_settings"> <key name="subject" /> <key name="heading" /> <key name="additional_content" /> </key> </admin-texts> </wpml-config>-
This reply was modified 4 years, 8 months ago by
Paul Vogel.
Hi! I’ll look into the issue soon.
Please install the latest release of WP Cerber and try to upload the archive. You will see what causes your issue. Since version 8.9.3, the scanner provides more information while processing uploaded archives.
Hi, I installed the latest version of WP Cerber and tried to upload the archive. Now it shows:
Error: file woocommerce-germanized-pro-3.2.7.zip cannot be used. No matching plugin name was found among installed plugins. Please upload another file.The name of the installed plugin and the name of the plugin in the archive are different. Upload that archive via Plugins -> Add new -> Upload Plugin.
Hi, the name of the plugin seems to be the same.
I tried the steps and got the following results:- Installing plugin from uploaded file: woocommerce-germanized-pro-3.2.7.zip
- Unzipping the package …
- The plugin will be installed …
- The destination folder already exists: /var/www/html/wp-content/plugins/woocommerce-germanized-pro/
- This plugin is already installed.
Furthermore it shows me:
Currently installed:- Plugin name: Germanized for WooCommerce Pro
- Version: 3.2.7
- Author: vendidero
- Required WordPress Version: 5.4
- Required PHP Version: –
Uploaded:
- Plugin name: Germanized for WooCommerce Pro
- Version: 3.2.7
- Author: vendidero
- Required WordPress Version: 5.4
- Required PHP Version: –
And two buttons:
- Replace installed with uploaded
- Cancel
I tried replacing the plugin with the uploaded and ran the security scanner again. The result is the same:
Error: file woocommerce-germanized-pro-3.2.7.zip cannot be used. No matching plugin name was found among installed plugins. Please upload another file. -
This reply was modified 4 years, 8 months ago by
The topic ‘Security scanner does not allow uploading woocommerce-germanized-pro’ is closed to new replies.