|
|
|
|
|
by golden_apples
5161 days ago
|
|
The php code would be inside a shortcode that looked like [php][/php], so no, that wouldn't protect you. The smart fix is to check for user permissions and nonce before rendering the shortcode preview, which I hope is what the Woo patch does. |
|
Authentication would plug it from random attackers at least. But it seems to me it would still be ripe for a CSRF attack..? That might seem unlikely but I can imagine the attacker could post a comment with a link on the victims blog who had been identified as having a wootheme installed. If the victim clicked the link (likely while authenticated) the attacker's php code would execute.