Plugin Directory

Changeset 3083161

Timestamp:
05/08/2024 11:31:13 AM (3 months ago)
Author:
JavierCasares
Message:

[3.2.0] - 2024-05-08

Added

  • Apache HTTPD vulnerabilities (Site Health).
  • nginx vulnerabilities (Site Health).

Changed

  • License updated to GPL 2.0 or later.

Compatibility

Location:
wpvulnerability
Files:
47 added
12 edited

Legend:

Unmodified
Added
Removed
  • wpvulnerability/trunk/changelog.txt

    r3083082 r3083161  
    11== Changelog ==
     2
     3
     4
     5
     6
     7
     8
     9
     10
     11
     12
     13
     14
     15
     16
     17
     18
     19
     20
    221
    322= [3.1.2] - 2024-05-08 =
     
    1534**Compatibility**
    1635
    17 * WordPress 4.1 - WordPress 6.6-alpha.
     36* WordPress 4.1 - WordPress 6.6.
    1837* PHP 5.6 - PHP 8.3.
    1938* WordPress Coding Standards 3.1.0.
  • wpvulnerability/trunk/languages/wpvulnerability.pot

    r3031131 r3083161  
    33msgstr ""
    44"Project-Id-Version: WPVulnerability\n"
    5 "POT-Creation-Date: 2024-02-04 12:54+0100\n"
     5"POT-Creation-Date: 2024-000\n"
    66"PO-Revision-Date: 2023-09-12 06:56+0200\n"
    77"Last-Translator: \n"
     
    116116msgstr ""
    117117
    118 #: wpvulnerability-admin.php:347 wpvulnerability-adminms.php:376
     118#: wpvulnerability-admin.php:347 wpvulnerability-admin.php:363
     119#: wpvulnerability-admin.php:380 wpvulnerability-adminms.php:376
     120#: wpvulnerability-adminms.php:392 wpvulnerability-adminms.php:409
    119121#, php-format
    120122msgid "%d vulnerability"
     
    123125msgstr[1] ""
    124126
    125 #: wpvulnerability-admin.php:350 wpvulnerability-adminms.php:379
     127#. translators: Show the number of vulnerabilities in a WP-Admin dashboard
     128#: wpvulnerability-admin.php:363 wpvulnerability-adminms.php:392
     129#, php-format
     130msgid "Apache %s: "
     131msgstr ""
     132
     133#. translators: Show the number of vulnerabilities in a WP-Admin dashboard
     134#: wpvulnerability-admin.php:380 wpvulnerability-adminms.php:409
     135#, php-format
     136msgid "nginx %s: "
     137msgstr ""
     138
     139#: wpvulnerability-admin.php:384 wpvulnerability-adminms.php:413
    126140msgid "Vulnerability analysis of your WordPress installation:"
    127141msgstr ""
    128142
    129 #: wpvulnerability-admin.php:382 wpvulnerability-adminms.php:411
     143#: wpvulnerability-admin.php:1
    130144msgid "More information? Visit"
    131145msgstr ""
    132146
    133 #: wpvulnerability-admin.php:382 wpvulnerability-adminms.php:411
     147#: wpvulnerability-admin.php:1
    134148msgid "Site Health"
    135149msgstr ""
    136150
    137 #: wpvulnerability-admin.php:395 wpvulnerability-adminms.php:424
     151#: wpvulnerability-admin.php:4
    138152msgid "WPVulnerability Status"
    139153msgstr ""
    140154
    141 #: wpvulnerability-admin.php:418 wpvulnerability-adminms.php:452
     155#: wpvulnerability-admin.php:42
    142156msgid "Receive notifications in your email"
    143157msgstr ""
    144158
    145 #: wpvulnerability-admin.php:426
     159#: wpvulnerability-admin.php:46
    146160msgid "Email addresses to notify (separated by commas)"
    147161msgstr ""
    148162
    149 #: wpvulnerability-admin.php:435 wpvulnerability-adminms.php:469
     163#: wpvulnerability-admin.php:49
    150164msgid "How often you want to receive notifications"
    151165msgstr ""
     
    159173msgstr ""
    160174
    161 #: wpvulnerability-adminms.php:460
     175#: wpvulnerability-adminms.php:0
    162176msgid "eMail addresses to notify (separated by commas)"
    163177msgstr ""
    164178
    165 #: wpvulnerability-cli.php:118 wpvulnerability-cli.php:320
    166 #: wpvulnerability-cli.php:524 wpvulnerability-core.php:85
    167 #: wpvulnerability-plugins.php:109 wpvulnerability-process.php:80
    168 #: wpvulnerability-process.php:132 wpvulnerability-themes.php:110
     179#: wpvulnerability-cli.php:11
     180#: wpvulnerability-cli.php:
     181#: wpvulnerability-plugins.php:10
     182#: wpvulnerability-process.php:1
    169183msgid "Global score: "
    170184msgstr ""
    171185
    172 #: wpvulnerability-cli.php:127 wpvulnerability-cli.php:329
    173 #: wpvulnerability-cli.php:533 wpvulnerability-core.php:88
    174 #: wpvulnerability-plugins.php:112 wpvulnerability-process.php:83
    175 #: wpvulnerability-process.php:135 wpvulnerability-themes.php:113
     186#: wpvulnerability-cli.php:1
     187#: wpvulnerability-cli.php:
     188#: wpvulnerability-plugins.php:1
     189#: wpvulnerability-process.php:1
    176190msgid "Severity: "
    177191msgstr ""
    178192
    179 #: wpvulnerability-cli.php:136 wpvulnerability-cli.php:338
    180 #: wpvulnerability-cli.php:542 wpvulnerability-core.php:91
    181 #: wpvulnerability-plugins.php:115 wpvulnerability-process.php:86
    182 #: wpvulnerability-process.php:138 wpvulnerability-themes.php:116
    183 msgid "Exploitability: "
    184 msgstr ""
    185 
    186 #: wpvulnerability-cli.php:242 wpvulnerability-plugins.php:92
    187 #: wpvulnerability-process.php:63
     193#: wpvulnerability-cli.php:220 wpvulnerability-plugins.php:88
     194#: wpvulnerability-process.php:59
    188195msgid "This plugin is closed. Please replace it with another."
    189196msgstr ""
    190197
    191 #: wpvulnerability-cli.php:253 wpvulnerability-plugins.php:95
    192 #: wpvulnerability-process.php:66
     198#: wpvulnerability-cli.php:2
     199#: wpvulnerability-process.php:6
    193200msgid ""
    194201"This vulnerability appears to be unpatched. Stay tuned for upcoming plugin "
     
    196203msgstr ""
    197204
    198 #: wpvulnerability-cli.php:446 wpvulnerability-themes.php:93
     205#: wpvulnerability-cli.php:4
    199206msgid "This theme is closed. Please replace it with another."
    200207msgstr ""
    201208
    202 #: wpvulnerability-cli.php:457 wpvulnerability-cli.php:639
    203 #: wpvulnerability-themes.php:96
     209#: wpvulnerability-cli.php:417 wpvulnerability-cli.php:585
     210#: wpvulnerability-cli.php:691 wpvulnerability-cli.php:798
     211#: wpvulnerability-themes.php:92
    204212msgid ""
    205213"This vulnerability appears to be unpatched. Stay tuned for upcoming theme "
     
    215223
    216224#. translators: Severity: None
    217 #: wpvulnerability-general.php:159
     225#: wpvulnerability-general.php:
    218226msgid "None"
    219227msgstr ""
    220228
    221229#. translators: Severity: Low
    222 #: wpvulnerability-general.php:162
     230#: wpvulnerability-general.php:
    223231msgid "Low"
    224232msgstr ""
    225233
    226234#. translators: Severity: Medium
    227 #: wpvulnerability-general.php:165
     235#: wpvulnerability-general.php:
    228236msgid "Medium"
    229237msgstr ""
    230238
    231239#. translators: Severity: High
    232 #: wpvulnerability-general.php:168
     240#: wpvulnerability-general.php:
    233241msgid "High"
    234242msgstr ""
    235243
    236244#. translators: Severity: Critical
    237 #: wpvulnerability-general.php:171
     245#: wpvulnerability-general.php:
    238246msgid "Critical"
    239247msgstr ""
     
    255263msgstr ""
    256264
    257 #: wpvulnerability-notifications.php:243
     265#: wpvulnerability-notifications.php:2
    258266msgid "There are no vulnerabilities"
    259267msgstr ""
    260268
    261 #: wpvulnerability-notifications.php:244
     269#: wpvulnerability-notifications.php:2
    262270msgid ""
    263271"This is probably a test. The site probably does not have vulnerabilities."
    264272msgstr ""
    265273
    266 #: wpvulnerability-notifications.php:250
     274#: wpvulnerability-notifications.php:2
    267275msgid "Core vulnerabilities"
    268276msgstr ""
    269277
    270 #: wpvulnerability-notifications.php:256
     278#: wpvulnerability-notifications.php:2
    271279msgid "Plugins vulnerabilities"
    272280msgstr ""
    273281
    274 #: wpvulnerability-notifications.php:262
     282#: wpvulnerability-notifications.php:2
    275283msgid "Themes vulnerabilities"
    276284msgstr ""
    277285
    278 #: wpvulnerability-notifications.php:268
     286#: wpvulnerability-notifications.php:2
    279287msgid "PHP vulnerabilities"
    280288msgstr ""
    281289
     290
     291
     292
     293
     294
     295
     296
     297
    282298#. translators: Site name.
    283 #: wpvulnerability-notifications.php:289
     299#: wpvulnerability-notifications.php:
    284300#, php-format
    285301msgid "Vulnerability found: %s"
    286302msgstr ""
    287303
    288 #: wpvulnerability-notifications.php:293
     304#: wpvulnerability-notifications.php:
    289305msgid "Vulnerability found"
    290306msgstr ""
     
    297313msgstr ""
    298314
    299 #: wpvulnerability-plugins.php:481
     315#: wpvulnerability-plugins.php:4
    300316msgid "It hasn't been updated in over a year."
    301317msgstr ""
    302318
    303 #: wpvulnerability-plugins.php:487
     319#: wpvulnerability-plugins.php:48
    304320msgid "It may no longer be available (closed?)."
    305321msgstr ""
     
    309325msgstr ""
    310326
    311 #: wpvulnerability-process.php:186
     327#: wpvulnerability-process.php:
    312328msgid "Plugin"
    313329msgstr ""
    314330
    315 #: wpvulnerability-process.php:220
     331#: wpvulnerability-process.php:2
    316332msgid "PHP running"
    317333msgstr ""
    318334
    319 #: wpvulnerability-process.php:293
     335#: wpvulnerability-process.php:276
     336msgid "Apache running"
     337msgstr ""
     338
     339#: wpvulnerability-process.php:318
     340msgid "nginx running"
     341msgstr ""
     342
     343#: wpvulnerability-process.php:392
    320344msgid "Theme"
    321345msgstr ""
     
    335359#: wpvulnerability-sitehealth.php:26 wpvulnerability-sitehealth.php:87
    336360#: wpvulnerability-sitehealth.php:148 wpvulnerability-sitehealth.php:208
     361
    337362msgid "Security"
    338363msgstr ""
     
    438463msgstr ""
    439464
    440 #: wpvulnerability-sitehealth.php:259
     465#: wpvulnerability-sitehealth.php:257
     466msgid "There aren't Apache HTTPD vulnerabilities"
     467msgstr ""
     468
     469#: wpvulnerability-sitehealth.php:265
     470msgid "Shows possible vulnerabilities existing in Apache HTTPD."
     471msgstr ""
     472
     473#. translators: Site Health message
     474#: wpvulnerability-sitehealth.php:281
     475#, php-format
     476msgid "There is %d Apache HTTPD vulnerability"
     477msgid_plural "There are %d Apache HTTPD vulnerabilities"
     478msgstr[0] ""
     479msgstr[1] ""
     480
     481#: wpvulnerability-sitehealth.php:285
     482msgid ""
     483"We've detected potential vulnerabilities in Apache HTTPD. Please check them "
     484"and keep your installation updated."
     485msgstr ""
     486
     487#: wpvulnerability-sitehealth.php:304
     488msgid "There aren't nginx vulnerabilities"
     489msgstr ""
     490
     491#: wpvulnerability-sitehealth.php:312
     492msgid "Shows possible vulnerabilities existing in nginx."
     493msgstr ""
     494
     495#. translators: Site Health message
     496#: wpvulnerability-sitehealth.php:328
     497#, php-format
     498msgid "There is %d nginx vulnerability"
     499msgid_plural "There are %d nginx vulnerabilities"
     500msgstr[0] ""
     501msgstr[1] ""
     502
     503#: wpvulnerability-sitehealth.php:332
     504msgid ""
     505"We've detected potential vulnerabilities in nginx. Please check them and "
     506"keep your installation updated."
     507msgstr ""
     508
     509#: wpvulnerability-sitehealth.php:353
    441510msgid "WPVulnerability Core"
    442511msgstr ""
    443512
    444 #: wpvulnerability-sitehealth.php:265
     513#: wpvulnerability-sitehealth.php:
    445514msgid "WPVulnerability Themes"
    446515msgstr ""
    447516
    448 #: wpvulnerability-sitehealth.php:271
     517#: wpvulnerability-sitehealth.php:
    449518msgid "WPVulnerability Plugins"
    450519msgstr ""
    451520
    452 #: wpvulnerability-sitehealth.php:277
     521#: wpvulnerability-sitehealth.php:
    453522msgid "WPVulnerability PHP"
     523
     524
     525
     526
     527
     528
     529
     530
    454531msgstr ""
    455532
     
    460537#. Description of the plugin/theme
    461538msgid ""
    462 "Check WordPress Core, Plugins, Themes, and PHP vulnerabilities with "
    463 "information from the WordPress Vulnerability Database API."
     539" "
     540"WordPress Vulnerability Database API."
    464541msgstr ""
    465542
  • wpvulnerability/trunk/readme.txt

    r3083082 r3083161  
    33Tags: security, vulnerability, site-health
    44Requires at least: 4.1
    5 Tested up to: 6.6-alpha
    6 Stable tag: 3.1.2
     5Tested up to: 6.6
     6Stable tag: 3.
    77Requires PHP: 5.6
    8 Version: 3.1.2
    9 License: EUPL-1.2
    10 License URI: https://www.eupl.eu/1.2/en/
     8Version: 3.
     9License:
     10License URI: https://
    1111
    1212Receive information about possible vulnerabilities in your WordPress from [WordPress Vulnerability Database API](https://www.wpvulnerability.com/).
     
    2424* Theme: Evaluates all your installed themes, including those from the official repository, external sources, or premium ones, for any security weaknesses.
    2525* PHP: Analyzes your server's PHP version, detecting vulnerabilities specific to your PHP setup. This is crucial as outdated or unsupported PHP versions can significantly increase security risks.
     26
     27
    2628
    2729= In-Depth Vulnerability Reporting =
     
    5052* `wp wpvulnerability themes`: List Themes vulnerabilities.
    5153* `wp wpvulnerability php`: List PHP vulnerabilities.
     54
     55
    5256
    5357= Data reliability =
     
    7781= What vulnerabilities will I find? =
    7882
    79 Vulnerabilities in WordPress Core, Plugins, Themes, and PHP are documented.
     83Vulnerabilities in WordPress Core, Plugins, Themes, are documented.
    8084
    8185= What do I do if my site has a vulnerability? =
     
    9195== Compatibility ==
    9296
    93 * WordPress 4.1 - WordPress 6.6-alpha.
     97* WordPress 4.1 - WordPress 6.6.
    9498* PHP 5.6 - PHP 8.3.
    9599* WordPress Coding Standards 3.1.0.
     
    98102
    99103== Changelog ==
     104
     105
     106
     107
     108
     109
     110
     111
     112
     113
     114
     115
     116
     117
     118
    100119
    101120= [3.1.2] - 2024-05-08 =
     
    112131**Compatibility**
    113132
    114 * WordPress 4.1 - WordPress 6.6-alpha.
     133* WordPress 4.1 - WordPress 6.6.
    115134* PHP 5.6 - PHP 8.3.
    116135* WordPress Coding Standards 3.1.0.
     
    137156* Compatibility: WP-CLI 2.3.0 - WP-CLI 2.10.0.
    138157
    139 = [3.1.0] - 2024-02-04 =
     158= =
    140159
    141 **Added**
    142 
    143 * A new column in the plugin list, with the last updated day (and diff).
    144 * A notice if the plugin is closed in the WordPress.org repo.
    145 
    146 **Fixed**
    147 
    148 * Fixes the schedule in some cases.
    149 * Fixes the PHP format (using always the n.n / n.n.n format).
    150 
    151 **Compatibility**
    152 
    153 * Compatibility: WordPress 4.1 - WordPress 6.5.
    154 * Compatibility: PHP 5.6 - PHP 8.3.
    155 * Compatibility: WordPress Coding Standards 3.0.1.
    156 * Compatibility: WP-CLI 2.3.0 - WP-CLI 2.10.0.
     160If you want to see the full changelog, visit the [changelog.txt](https://plugins.trac.wordpress.org/browser/wpvulnerability/trunk/changelog.txt) file.
    157161
    158162== Security ==
     
    172176== Vulnerabilities ==
    173177
    174 * No vulnerabilities have been published up to version 3.1.2.
     178* No vulnerabilities have been published up to version 3..
    175179
    176180Found a security vulnerability? Please report it to us privately at the [WPVulnerability GitHub repository](https://github.com/javiercasares/wpvulnerability/security/advisories/new).
  • wpvulnerability/trunk/wpvulnerability-admin.php

    r3083082 r3083161  
    347347    $msg_php = sprintf( __( 'PHP %s: ', 'wpvulnerability' ), $wpvulnerability_test_php_version ) . sprintf( _n( '%d vulnerability', '%d vulnerabilities', $wpvulnerability_test_php_counter, 'wpvulnerability' ), $wpvulnerability_test_php_counter );
    348348
     349
     350
     351
     352
     353
     354
     355
     356
     357
     358
     359
     360
     361
     362
     363
     364
     365
     366
     367
     368
     369
     370
     371
     372
     373
     374
     375
     376
     377
     378
     379
     380
     381
     382
    349383    // Show the widget.
    350384    echo esc_html( __( 'Vulnerability analysis of your WordPress installation:', 'wpvulnerability' ) );
     
    377411    } else {
    378412        echo '<li>❌ <img src="' . esc_url( WPVULNERABILITY_PLUGIN_URL ) . 'assets/icon-php.svg" width="12" height="12" alt=""> ' . esc_html( (string) $msg_php ) . '</li>';
     413
     414
     415
     416
     417
     418
     419
     420
     421
     422
     423
     424
     425
     426
     427
     428
    379429    }
    380430
  • wpvulnerability/trunk/wpvulnerability-adminms.php

    r3083082 r3083161  
    376376    $msg_php = sprintf( __( 'PHP %s: ', 'wpvulnerability' ), $wpvulnerability_test_php_version ) . sprintf( _n( '%d vulnerability', '%d vulnerabilities', $wpvulnerability_test_php_counter, 'wpvulnerability' ), $wpvulnerability_test_php_counter );
    377377
     378
     379
     380
     381
     382
     383
     384
     385
     386
     387
     388
     389
     390
     391
     392
     393
     394
     395
     396
     397
     398
     399
     400
     401
     402
     403
     404
     405
     406
     407
     408
     409
     410
     411
    378412    // Show the widget.
    379413    echo esc_html( __( 'Vulnerability analysis of your WordPress installation:', 'wpvulnerability' ) );
     
    406440    } else {
    407441        echo '<li>❌ <img src="' . esc_url( WPVULNERABILITY_PLUGIN_URL ) . 'assets/icon-php.svg" width="12" height="12" alt=""> ' . esc_html( (string) $msg_php ) . '</li>';
     442
     443
     444
     445
     446
     447
     448
     449
     450
     451
     452
     453
     454
     455
     456
     457
    408458    }
    409459
  • wpvulnerability/trunk/wpvulnerability-cli.php

    r3083082 r3083161  
    633633                    );
    634634
     635
     636
     637
     638
     639
     640
     641
     642
     643
     644
     645
     646
     647
     648
     649
     650
     651
     652
     653
     654
     655
     656
     657
     658
     659
     660
     661
     662
     663
     664
     665
     666
     667
     668
     669
     670
     671
     672
     673
     674
     675
     676
     677
     678
     679
     680
     681
     682
     683
     684
     685
     686
     687
     688
     689
     690
     691
     692
     693
     694
     695
     696
     697
     698
     699
     700
     701
     702
     703
     704
     705
     706
     707
     708
     709
     710
     711
     712
     713
     714
     715
     716
     717
     718
     719
     720
     721
     722
     723
     724
     725
     726
     727
     728
     729
     730
     731
     732
     733
     734
     735
     736
     737
     738
     739
     740
     741
     742
     743
     744
     745
     746
     747
     748
     749
     750
     751
     752
     753
     754
     755
     756
     757
     758
     759
     760
     761
     762
     763
     764
     765
     766
     767
     768
     769
     770
     771
     772
     773
     774
     775
     776
     777
     778
     779
     780
     781
     782
     783
     784
     785
     786
     787
     788
     789
     790
     791
     792
     793
     794
     795
     796
     797
     798
     799
     800
     801
     802
     803
     804
     805
     806
     807
     808
     809
     810
     811
     812
     813
     814
     815
     816
     817
     818
     819
     820
     821
     822
     823
     824
     825
     826
     827
     828
     829
     830
     831
     832
     833
     834
     835
     836
     837
     838
     839
     840
     841
     842
     843
     844
     845
     846
     847
     848
    635849                }
    636850            }
     
    668882                wpvulnerability_cli_php();
    669883                break;
     884
     885
     886
     887
     888
     889
    670890            default:
    671891                // Displays an error message for an invalid subcommand.
    672                 WP_CLI::error( "'$args[0]' is not a registered subcommand of 'wpvulnerability'.\nAvailable subcommands: core, plugins, themes, php" );
     892                WP_CLI::error( "'$args[0]' is not a registered subcommand of 'wpvulnerability'.\nAvailable subcommands: core, plugins, themes, php" );
    673893                break;
    674894        }
     
    697917                    'type'        => 'positional',
    698918                    'name'        => 'subcommand',
    699                     'description' => 'subcommand [core|plugins|themes|php].',
     919                    'description' => 'subcommand [core|plugins|themes|php].',
    700920                    'optional'    => false,
    701921                ),
    702922            ),
    703923            'when'      => 'after_wp_load',
    704             'longdesc'  => "EXAMPLES:\n\n - wp wpvulnerability core\n - wp wpvulnerability plugins\n - wp wpvulnerability themes\n - wp wpvulnerability php",
     924            'longdesc'  => "EXAMPLES:\n\n - wp wpvulnerability core\n - wp wpvulnerability plugins\n - wp wpvulnerability themes\n - wp wpvulnerability php",
    705925        )
    706926    );
  • wpvulnerability/trunk/wpvulnerability-general.php

    r3083082 r3083161  
    7373
    7474    return $version;
     75
     76
     77
     78
     79
     80
     81
     82
     83
     84
     85
     86
     87
     88
     89
     90
     91
     92
     93
     94
     95
     96
     97
     98
     99
     100
     101
     102
     103
     104
     105
     106
     107
     108
     109
     110
     111
     112
     113
     114
     115
     116
     117
     118
     119
     120
     121
     122
     123
     124
     125
     126
     127
     128
     129
     130
     131
     132
     133
     134
     135
     136
     137
     138
     139
     140
     141
     142
     143
     144
     145
     146
     147
     148
     149
     150
     151
     152
     153
     154
     155
     156
     157
     158
     159
     160
     161
     162
     163
     164
     165
     166
     167
     168
     169
     170
     171
     172
     173
     174
     175
     176
     177
     178
     179
     180
     181
     182
     183
     184
     185
     186
     187
     188
     189
     190
     191
     192
     193
     194
     195
     196
     197
     198
     199
     200
     201
     202
    75203}
    76204
     
    679807    return $vulnerability;
    680808}
     809
     810
     811
     812
     813
     814
     815
     816
     817
     818
     819
     820
     821
     822
     823
     824
     825
     826
     827
     828
     829
     830
     831
     832
     833
     834
     835
     836
     837
     838
     839
     840
     841
     842
     843
     844
     845
     846
     847
     848
     849
     850
     851
     852
     853
     854
     855
     856
     857
     858
     859
     860
     861
     862
     863
     864
     865
     866
     867
     868
     869
     870
     871
     872
     873
     874
     875
     876
     877
     878
     879
     880
     881
     882
     883
     884
     885
     886
     887
     888
     889
     890
     891
     892
     893
     894
     895
     896
     897
     898
     899
     900
     901
     902
     903
     904
     905
     906
     907
     908
     909
     910
     911
     912
     913
     914
     915
     916
     917
     918
     919
     920
     921
     922
     923
     924
     925
     926
     927
     928
     929
     930
     931
     932
     933
     934
     935
     936
     937
     938
     939
     940
     941
     942
     943
     944
     945
     946
     947
     948
     949
     950
     951
     952
     953
     954
     955
     956
     957
     958
     959
     960
     961
     962
     963
     964
     965
     966
     967
     968
     969
     970
     971
     972
     973
     974
     975
     976
     977
     978
     979
     980
     981
     982
     983
     984
     985
     986
     987
     988
     989
     990
     991
     992
     993
     994
     995
     996
     997
     998
     999
     1000
     1001
     1002
     1003
     1004
     1005
     1006
     1007
     1008
     1009
     1010
     1011
     1012
     1013
     1014
     1015
     1016
  • wpvulnerability/trunk/wpvulnerability-notifications.php

    r3034122 r3083161  
    230230    }
    231231
     232
     233
     234
     235
     236
     237
     238
     239
     240
     241
     242
     243
     244
     245
    232246    // required by the "forced email" button.
    233247    if ( ! $forced ) {
    234248
    235249        // If no vulnerabilities were found, return.
    236         if ( empty( $html_core ) && empty( $html_plugins ) && empty( $html_themes ) && empty( $html_php ) ) {
     250        if ( empty( $html_core ) && empty( $html_plugins ) && empty( $html_themes ) && empty( $html_php ) ) {
    237251            return;
    238252        }
     
    240254
    241255        // If no vulnerabilities were found, return.
    242         if ( empty( $html_core ) && empty( $html_plugins ) && empty( $html_themes ) && empty( $html_php ) ) {
     256        if ( empty( $html_core ) && empty( $html_plugins ) && empty( $html_themes ) && empty( $html_php ) ) {
    243257            $email_content .= '<h2>' . esc_html__( 'There are no vulnerabilities', 'wpvulnerability' ) . '</h2>';
    244258            $email_content .= '<p>' . esc_html__( 'This is probably a test. The site probably does not have vulnerabilities.', 'wpvulnerability' );
     
    268282        $email_content .= '<h2>' . esc_html__( 'PHP vulnerabilities', 'wpvulnerability' ) . '</h2>';
    269283        $email_content .= $html_php;
     284
     285
     286
     287
     288
     289
     290
     291
     292
     293
     294
     295
    270296    }
    271297
  • wpvulnerability/trunk/wpvulnerability-process.php

    r3083082 r3083161  
    144144
    145145        }
     146
     147
     148
     149
     150
     151
     152
     153
     154
     155
     156
     157
     158
     159
     160
     161
     162
     163
     164
     165
     166
     167
     168
     169
     170
     171
     172
     173
     174
     175
    146176    }
    147177
     
    218248}
    219249
     250
     251
     252
     253
     254
     255
     256
     257
     258
     259
     260
     261
     262
     263
     264
     265
     266
     267
     268
     269
     270
     271
     272
     273
     274
     275
     276
     277
     278
     279
     280
     281
     282
     283
     284
     285
     286
     287
     288
     289
     290
     291
     292
     293
     294
     295
     296
     297
     298
     299
     300
     301
     302
     303
     304
     305
     306
     307
     308
     309
     310
     311
     312
     313
     314
     315
     316
     317
     318
     319
     320
     321
     322
     323
     324
     325
     326
     327
     328
     329
     330
     331
     332
    220333
    221334/**
  • wpvulnerability/trunk/wpvulnerability-run.php

    r3034122 r3083161  
    8282    if ( ! function_exists( 'wpvulnerability_php_get_vulnerabilities_clean' ) ) {
    8383        require_once WPVULNERABILITY_PLUGIN_PATH . '/wpvulnerability-php.php';
     84
     85
     86
     87
     88
     89
    8490    }
    8591    // Update core vulnerabilities.
     
    9197    // Update PHP vulnerabilities.
    9298    wpvulnerability_php_get_vulnerabilities_clean();
     99
     100
     101
     102
    93103    // Clean the WordPress cache.
    94104    wp_cache_flush();
     
    116126        require_once WPVULNERABILITY_PLUGIN_PATH . '/wpvulnerability-php.php';
    117127    }
     128
     129
     130
     131
     132
     133
    118134
    119135    $cache_time = time();
     
    133149            wpvulnerability_php_get_vulnerabilities_clean();
    134150        }
     151
     152
     153
     154
     155
     156
    135157    } elseif ( ! is_multisite() ) {
    136158
     
    146168        if ( json_decode( get_option( 'wpvulnerability-php-cache' ) ) < $cache_time ) {
    147169            wpvulnerability_php_get_vulnerabilities_clean();
     170
     171
     172
     173
     174
     175
    148176        }
    149177    }
     
    260288        if ( ! get_site_option( 'wpvulnerability-php-vulnerable' ) ) {
    261289            add_site_option( 'wpvulnerability-php-vulnerable', 0 );
     290
     291
     292
     293
     294
     295
     296
     297
     298
     299
     300
     301
     302
     303
     304
     305
     306
     307
     308
     309
     310
     311
     312
     313
     314
     315
     316
     317
     318
     319
    262320        }
    263321    } elseif ( ! is_multisite() ) {
     
    342400        if ( ! get_option( 'wpvulnerability-php-vulnerable' ) ) {
    343401            add_option( 'wpvulnerability-php-vulnerable', 0 );
     402
     403
     404
     405
     406
     407
     408
     409
     410
     411
     412
     413
     414
     415
     416
     417
     418
     419
     420
     421
     422
     423
     424
     425
     426
     427
     428
     429
     430
     431
    344432        }
    345433    }
     
    375463        delete_site_option( 'wpvulnerability-php-cache' );
    376464        delete_site_option( 'wpvulnerability-php-vulnerable' );
     465
     466
     467
     468
     469
     470
    377471
    378472    } elseif ( ! is_multisite() ) {
     
    394488        delete_option( 'wpvulnerability-php-cache' );
    395489        delete_option( 'wpvulnerability-php-vulnerable' );
     490
     491
     492
     493
     494
     495
    396496
    397497    }
     
    440540    delete_option( 'wpvulnerability-php-cache' );
    441541    delete_option( 'wpvulnerability-php-vulnerable' );
     542
     543
     544
     545
     546
     547
    442548
    443549    /**
     
    461567    delete_site_option( 'wpvulnerability-php-cache' );
    462568    delete_site_option( 'wpvulnerability-php-vulnerable' );
     569
     570
     571
     572
     573
     574
    463575
    464576    /**
  • wpvulnerability/trunk/wpvulnerability-sitehealth.php

    r3034122 r3083161  
    245245
    246246/**
     247
     248
     249
     250
     251
     252
     253
     254
     255
     256
     257
     258
     259
     260
     261
     262
     263
     264
     265
     266
     267
     268
     269
     270
     271
     272
     273
     274
     275
     276
     277
     278
     279
     280
     281
     282
     283
     284
     285
     286
     287
     288
     289
     290
     291
     292
     293
     294
     295
     296
     297
     298
     299
     300
     301
     302
     303
     304
     305
     306
     307
     308
     309
     310
     311
     312
     313
     314
     315
     316
     317
     318
     319
     320
     321
     322
     323
     324
     325
     326
     327
     328
     329
     330
     331
     332
     333
     334
     335
     336
     337
     338
     339
     340
    247341 * Adds vulnerability tests to Health Check & Troubleshooting page.
    248342 *
     
    279373    );
    280374
     375
     376
     377
     378
     379
     380
     381
     382
     383
     384
     385
     386
    281387    return $tests;
    282388}
  • wpvulnerability/trunk/wpvulnerability.php

    r3083082 r3083161  
    66 * Requires at least: 4.1
    77 * Requires PHP: 5.6
    8  * Version: 3.1.2
     8 * Version: 3.
    99 * Author: Javier Casares
    1010 * Author URI: https://www.javiercasares.com/
    11  * License: EUPL-1.2
    12  * License URI: https://www.eupl.eu/1.2/en/
     11 * License:
     12 * License URI: https://
    1313 * Text Domain: wpvulnerability
    1414 * Domain Path: /languages
     
    2424 * Set some constants that I can change in future verions
    2525 */
    26 define( 'WPVULNERABILITY_PLUGIN_VERSION', '3.1.1' );
     26define( 'WPVULNERABILITY_PLUGIN_VERSION', '3.' );
    2727define( 'WPVULNERABILITY_API_HOST', 'https://www.wpvulnerability.net/' );
    2828define( 'WPVULNERABILITY_CACHE_HOURS', 12 );
     
    7878    require_once WPVULNERABILITY_PLUGIN_PATH . '/wpvulnerability-themes.php';
    7979    require_once WPVULNERABILITY_PLUGIN_PATH . '/wpvulnerability-php.php';
     80
     81
    8082
    8183    /*
Note: See TracChangeset for help on using the changeset viewer.