Skip to content

Commit 719562e

Browse files
authored
Merge pull request #8 from HelloAsso/sec/broken-access-control
fix broken access control
2 parents 8bc8ddb + 7ba9d94 commit 719562e

3 files changed

Lines changed: 10 additions & 3 deletions

File tree

README.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Tags: helloasso, paiement, association, crowdfunding, don
55
Requires at least: 4.0
66
Tested up to: 6.4.3
77
Requires PHP: 7.2.34
8-
Stable tag: 1.1.10
8+
Stable tag: 1.1.11
99
License: GPLv2 or later
1010
License URI: http://www.gnu.org/licenses/gpl-2.0.html
1111

@@ -81,6 +81,9 @@ https://www.youtube.com/watch?v=Bjaqc_Yun8g
8181

8282
== Changelog ==
8383

84+
= 1.1.11 =
85+
* Correction d'une faille Broken Access Control
86+
8487
= 1.1.10 =
8588
* Correction d'une faille XSS possible sur l'insertion de l'iframe
8689

admin/class-hello-asso-admin.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -456,6 +456,10 @@ function sanitizeArray($data = array()) {
456456

457457
function ha_ajax() {
458458
check_ajax_referer('helloassosecuritytoken11', 'security');
459+
460+
if ( ! is_user_logged_in() || ! current_user_can('manage_options') ) {
461+
wp_die('Vous n’avez pas les droits nécessaires pour exécuter cette action.');
462+
}
459463

460464
if (!isset($_POST['campaign']) or $_POST['campaign'] == '') {
461465
$campaign = array();

hello-asso.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* Plugin Name: HelloAsso
1717
* Plugin URI: https://centredaide.helloasso.com/s/article/paiement-en-ligne-wordpress-integrer-vos-campagnes-helloasso
1818
* Description: HelloAsso est la solution gratuite des associations pour collecter des paiements et des dons sur internet.
19-
* Version: 1.1.10
19+
* Version: 1.1.11
2020
* Author: HelloAsso
2121
* Author URI: https://helloasso.com
2222
* License: GPL-2.0+
@@ -36,7 +36,7 @@
3636
* Start at version 1.0.0 and use SemVer - https://semver.org
3737
* Rename this for your plugin and update it as you release new versions.
3838
*/
39-
define('HELLO_ASSO_VERSION', '1.1.10');
39+
define('HELLO_ASSO_VERSION', '1.1.11');
4040

4141
/**
4242
* The code that runs during plugin activation.

0 commit comments

Comments
 (0)