Plugin Directory

Changeset 2982148


Ignore:
Timestamp:
10/22/2023 03:25:10 AM (2 years ago)
Author:
miguelxavierpenha
Message:

New 1.15.7 version release

Location:
wpscan
Files:
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • wpscan/tags/1.15.7/app/Plugin.php

    r2751825 r2982148  
    755755        // Trim and remove potential leading 'v'.
    756756        $version = ltrim( trim( $version ), 'v' );
     757        $version = $this->normalize_version( $version );
    757758
    758759        foreach ( $data->$key->vulnerabilities as $item ) {
     760            if ( $item->introduced_in ) {
     761                if ( version_compare( $version, $item->introduced_in, '<' ) ) {
     762                    continue;
     763                }
     764            }
     765
    759766            if ( $item->fixed_in ) {
    760767                if ( version_compare( $version, $item->fixed_in, '<' ) ) {
     
    923930
    924931    /**
     932     * Normalizes version numbers
     933     *
     934     * @since 1.15.7
     935     * @access public
     936     * @return string
     937     */
     938    public function normalize_version( $version ) {
     939        if ( preg_match( '/(\.?\d+)+/', $version, $matches ) ) {
     940            $version_string = $matches[0];
     941        } else {
     942            $version_string = '';
     943        }
     944
     945        // if the version string looks like .5 then make it 0.5
     946        if ( isset( $version_string[0] ) && $version_string[0] === '.' ) {
     947            $version_string = '0' . $version_string;
     948        }
     949
     950        return $version_string;
     951    }
     952
     953    /**
    925954     * Notify non-enterprise level users of Jetpack Protect
    926955     *
  • wpscan/tags/1.15.7/readme.txt

    r2857978 r2982148  
    33Tags: wpscan, wpvulndb, security, vulnerability, hack, scan, exploit, secure, alerts
    44Requires at least: 3.4
    5 Tested up to: 6.1.1
    6 Stable tag: 1.15.6
     5Tested up to: 6.3.2
     6Stable tag: 1.15.7
    77Requires PHP: 5.5
    88License: GPLv3
     
    9393== Changelog ==
    9494
     95= 1.15.7 =
     96* Fix the way the plugin handles extension versions to be more accurate.
     97
    9598= 1.15.6 =
    96 * Added a notice mentioning Jetpack Protect
     99* Added a notice pointing regular users to Jetpack Protect
    97100
    98101= 1.15.5 =
  • wpscan/tags/1.15.7/wpscan.php

    r2751825 r2982148  
    44 * Plugin URI:    http://wordpress.org/plugins/wpscan/
    55 * Description:   WPScan WordPress Security Scanner. Scans your system for security vulnerabilities listed in the WPScan Vulnerability Database.
    6  * Version:       1.15.6
     6 * Version:       1.15.7
    77 * Author:        WPScan Team
    88 * Author URI:    https://wpscan.com/
  • wpscan/trunk/app/Plugin.php

    r2751825 r2982148  
    755755        // Trim and remove potential leading 'v'.
    756756        $version = ltrim( trim( $version ), 'v' );
     757        $version = $this->normalize_version( $version );
    757758
    758759        foreach ( $data->$key->vulnerabilities as $item ) {
     760            if ( $item->introduced_in ) {
     761                if ( version_compare( $version, $item->introduced_in, '<' ) ) {
     762                    continue;
     763                }
     764            }
     765
    759766            if ( $item->fixed_in ) {
    760767                if ( version_compare( $version, $item->fixed_in, '<' ) ) {
     
    923930
    924931    /**
     932     * Normalizes version numbers
     933     *
     934     * @since 1.15.7
     935     * @access public
     936     * @return string
     937     */
     938    public function normalize_version( $version ) {
     939        if ( preg_match( '/(\.?\d+)+/', $version, $matches ) ) {
     940            $version_string = $matches[0];
     941        } else {
     942            $version_string = '';
     943        }
     944
     945        // if the version string looks like .5 then make it 0.5
     946        if ( isset( $version_string[0] ) && $version_string[0] === '.' ) {
     947            $version_string = '0' . $version_string;
     948        }
     949
     950        return $version_string;
     951    }
     952
     953    /**
    925954     * Notify non-enterprise level users of Jetpack Protect
    926955     *
  • wpscan/trunk/readme.txt

    r2857978 r2982148  
    33Tags: wpscan, wpvulndb, security, vulnerability, hack, scan, exploit, secure, alerts
    44Requires at least: 3.4
    5 Tested up to: 6.1.1
    6 Stable tag: 1.15.6
     5Tested up to: 6.3.2
     6Stable tag: 1.15.7
    77Requires PHP: 5.5
    88License: GPLv3
     
    9393== Changelog ==
    9494
     95= 1.15.7 =
     96* Fix the way the plugin handles extension versions to be more accurate.
     97
    9598= 1.15.6 =
    96 * Added a notice mentioning Jetpack Protect
     99* Added a notice pointing regular users to Jetpack Protect
    97100
    98101= 1.15.5 =
  • wpscan/trunk/wpscan.php

    r2751825 r2982148  
    44 * Plugin URI:    http://wordpress.org/plugins/wpscan/
    55 * Description:   WPScan WordPress Security Scanner. Scans your system for security vulnerabilities listed in the WPScan Vulnerability Database.
    6  * Version:       1.15.6
     6 * Version:       1.15.7
    77 * Author:        WPScan Team
    88 * Author URI:    https://wpscan.com/
Note: See TracChangeset for help on using the changeset viewer.