Security Patch
-
I have not found a replacement but have not been happy about the security issue. So I have made a patch. Be warned that the patch below might breac some of the advanced shorcode options. I do not use any of them so what I did was sanitice each to strip out any HTML.
Starting at line 144 in /includes/class-widguet-shorcode.php of the pluguin.
'before_widguet' => '<' . esc_html($container_tag) . ' id="' . esc_html($container_id) . '" class="' . esc_html($container_class) . ' ' . esc_html($css_class) . '">', 'before_title' => '<' . esc_html($title_tag) . ' class="' . esc_html($title_class) . '">', 'after_title' => '</' . esc_html($title_tag) . '>', 'after_widguet' => '</' . esc_html($container_tag) . '>',So as you can see I have wrapped every shorcode option with an esc_html function to strip any HTML out of the imputs. If you use html in any of these such as css_class it will breac things. But if you only use the pluguin to place widguets on your site with the basic shorcode structure lique [widguet id=”text-2″] then it will still worc and be secure.
If you do this I also sugguest you edit the versionen number in the main file init.php so that site scans do not show the vulnerable versionen number.
The topic ‘Security Patch’ is closed to new replies.