wpovernight / woocommerce-pdf-ips-number-tools

0 stars 0 forks source link

Escape query args for urls #14

Closed alexmigf closed 2 years ago

alexmigf commented 2 years ago

Due to a notification from the WordPress Plugin Directory team, we decided to escape missing query args on plugin urls.

Slack discussion: https://wpovernight.slack.com/archives/C04CH2B9W/p1653986899006649

An example of a vulnerable use: echo add_query_arg( 'addon', $key );

That needs to be wrapped with esc_url: echo esc_url( add_query_arg( 'addon', $key ) );

In order to properly secure your plugin(s) you must do the following: