The problem of cross-site scripting attacks (XSS) when working with JWT tokens
-
I use REST API on my resources via JWT Authentication for WP-API plugin (Enrique Chavez). I followed all the instructions of the plugin, added a line in wp-config.php “define(‘JWT_AUTH_SECRET_KEY’, ‘your-top-secret-key’);”
I get the token without any problems!
For security settings, I’m using the NinjaFirewall (WP Edition) plugin (free).
When I send a content update request via RESTAPI (post,patch,put) I get the following error: 403
Log: 6558685 CRITICAL 115 my_IP PATCH /index.php – Cross-site scripting – [RAW:PATCH = {“content”: “<p style=\”font-size:18px…..
I work via token as admin if I enable Debugging mode (Firewall Options) the log:” 2947131 DEBUG_ON 115 my_IP PATCH /index.php – Cross-site scripting – [RAW:PATCH = {“content”: “<p style=\”font-size:18px\”
But the post is updated, the request passes. How can I fix it?
- You must be logged in to reply to this topic.