{"summary":{"plugin_name":"one-click-demo-import","display_name":"One Click Demo Import","version":"3.4.1","risk_level":"low","risk_score":10.0,"risk_factors":{"static_analysis":5,"owasp":5,"attack_surface":5,"superglobal_density":5,"installs_modifier":-10},"last_analyzed":"2026-11-23T13:57:47.052123","removed_from_directory":false,"closed_reason":null,"closed_date":null,"commercial":false,"free_counterpart":null,"active_installs":1000000,"rating":86,"num_ratings":79,"tested":"6.9.4","requires":"5.5","requires_php":"7.4","author":"Syed Balkhi","short_description":"Import your demo content, widgets and theme settings with one click. Theme authors! Enable simple theme demo import for your users.","tags":["content","import","settings","theme options","widgets"],"added":"2016-03-25","last_updated":"2026-04-22 1:28pm GMT","metadata_fetched_at":"2026-04-26T17:45:47.734875+00:00","modules_missing":null,"modules_failed":null,"latest_release":null},"security_metrics":{"total_issues":14,"parameters_found":11,"unknown_parameters":0,"headers_accessed":0,"cookies_accessed":0,"wp_hooks":2,"rest_routes":0,"query_vars":0,"shortcode_atts":0,"rest_routes_with_access_patterns":0,"file_upload_parameters":4,"owasp_findings":{"A01":1,"A03":2,"A04":1},"attack_surface_level":"medium","attack_surface_score":33,"tainted_sinks":19,"tainted_sql":0,"tainted_ssrf":0,"tainted_file_ops":8,"auth_bypass_sinks":0,"dangerous_patterns":0},"comparison":{"percentile":90.4,"rank":40592,"peer_count":422208,"better_than":90.4,"risk_distribution":{"high":173312,"medium":107394,"minimal":40591,"low":64482,"critical":36429}},"executive_summary":null,"vulnerabilities":[{"id":"0c2e2b4d-49eb-4fd9-b9f0-3feae80c1082","title":"One Click Demo Import < 3.1.0 - Admin+ Arbitrary File Upload","created_at":"2022-03-21T07:13:16.000Z","updated_at":"2022-04-11T07:43:05.000Z","published_date":"2022-03-21T00:00:00.000Z","vuln_type":"UPLOAD","references":{"url":["https://plugins.trac.wordpress.org/changeset/2695999"],"cve":["2022-1008"]},"verified":true,"poc":null,"description":null,"cvss":null,"fixed_in":"3.1.0","introduced_in":null},{"id":"64b612a4-b219-4845-b364-47766a7abec1","title":"One Click Demo Import < 3.2.1 - Authenticated (Admin+) PHP Object Injection","created_at":"2024-05-17T14:07:17.000Z","updated_at":"2024-05-17T14:07:17.000Z","published_date":"2024-05-07T00:00:00.000Z","vuln_type":"OBJECT INJECTION","references":{"url":["https://patchstack.com/database/vulnerability/one-click-demo-import/wordpress-one-click-demo-import-plugin-3-2-0-php-object-injection-vulnerability"],"cve":["2024-34433"]},"verified":false,"poc":null,"description":null,"cvss":null,"fixed_in":"3.2.1","introduced_in":null}],"recommendations":[{"category":"A01","name":"Broken Access Control","severity":"medium","findings_count":1,"description":"Access control enforces policy such that users cannot act outside of their intended permissions","recommendations":["Add a real permission_callback to every REST route — never '__return_true' for state-changing endpoints","Verify nonces on all wp_ajax_nopriv_ handlers and re-check capabilities server-side","Validate and canonicalize file paths to block traversal on read/write/delete operations","Never trust a user-supplied role/capability — enforce it against the acting user's own permissions"],"findings_summary":["Reachable 'file_write' sink x8 - 8 attacker-reachable 'file_write' sink(s) found by the reachability analyzer"]},{"category":"A03","name":"Injection","severity":"medium","findings_count":2,"description":"User-supplied data is not validated, filtered, or sanitized by the application","recommendations":["Use $wpdb->prepare() for all database queries — never interpolate or concatenate input","Sanitize all user input with appropriate WordPress functions","Escape output based on context (esc_html, esc_attr, etc.)","Never pass user input to eval(), include/require, or a variable function"],"findings_summary":["phpcs_security: Easy XSS detected because of direct user input with $_GET on echo","Reachable 'file_include' sink x11 - 11 attacker-reachable 'file_include' sink(s) found by the reachability analyzer"]},{"category":"A04","name":"Insecure Design","severity":"low","findings_count":1,"description":"Missing or ineffective control design — e.g. plugin files that perform work when requested directly, bypassing the WordPress bootstrap","recommendations":["Add a `defined('ABSPATH') || exit;` guard to every PHP file so it cannot be requested directly","Move logic out of directly-reachable files into hook callbacks loaded by WordPress","Threat-model unauthenticated entry points during design, not after release"],"findings_summary":["Direct file access: 10 plugin file(s) reachable by direct HTTP request, bypassing the WordPress bootstrap — insecure design"]}],"owasp_findings":{"A01":[{"type":"reachability_sink","sink":"file_write","count":8,"risk":"8 attacker-reachable 'file_write' sink(s) found by the reachability analyzer"}],"A03":[{"type":"phpcs_security","message":"Easy XSS detected because of direct user input with $_GET on echo","file":"/plugins/one-click-demo-import/tags/3.4.1/views/import.php","line":35},{"type":"reachability_sink","sink":"file_include","count":11,"risk":"11 attacker-reachable 'file_include' sink(s) found by the reachability analyzer"}],"A04":[{"type":"direct_file_access","count":10,"risk":"10 plugin file(s) reachable by direct HTTP request, bypassing the WordPress bootstrap — insecure design"}]}}