Skip to content

Commit 7ae9432

Browse files
authored
Merge pull request #9 from HelloAsso/fix/xss-injection-mika
Check if widget value correct to avoid injection
2 parents 719562e + d03399f commit 7ae9432

4 files changed

Lines changed: 20 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.11
8+
Stable tag: 1.1.12
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.12 =
85+
* Correction d'une faille XSS possible sur l'insertion de l'iframe
86+
8487
= 1.1.11 =
8588
* Correction d'une faille Broken Access Control
8689

admin/js/hello-asso-admin.js

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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.11
19+
* Version: 1.1.12
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.11');
39+
define('HELLO_ASSO_VERSION', '1.1.12');
4040

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

public/class-hello-asso-public.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,12 @@ function ha_shortcode($atts)
132132
{
133133
$height = preg_match($pattern, $atts['height'] ?? 0) ? $atts['height'] : "450px";
134134
$styleIframe = 'style="width:350px; height:'. $height . '; border:none;"';
135+
} else {
136+
$type = "";
137+
}
138+
139+
if(!str_starts_with($url, "https://www.helloasso.com/")) {
140+
$url = "";
135141
}
136142

137143
ob_start();

0 commit comments

Comments
 (0)