question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

WordPress: Nicepage plugin import failed

See original GitHub issue

Description

To reproduce this error

Here is the process

  1. Install Nicepage plugin (https://nicepage.com/doc/1323/getting-started-with-wp-theme-and-plugin).
  2. In the WordPress sidebar, go to Nicepage > Import
  3. When uploading a zip file (while choosing check replace & replace)
  4. Finally after hitting upload we get 403 error.
---lDPfp6Zx---H--
ModSecurity: Warning. Matched "Operator `Within' with parameter `/proxy/ /lock-token/ /content-range/ /if/' against variable `TX:header_name_content-range' (Value: `/content-range/' ) [file "/usr/local/lsws/conf/modsec/coreruleset-3.3.2/rules/REQUEST-920-PROTOCOL-ENFORCEMENT.conf"] [line "1087"] [id "920450"] [rev ""] [msg "HTTP header is restricted by policy (/content-range/)"] [data "Restricted header detected: /content-range/"] [severity "2"] [ver "OWASP_CRS/3.3.2"] [maturity "0"] [accuracy "0"] [tag "application-multi"] [tag "language-multi"] [tag "platform-multi"] [tag "attack-protocol"] [tag "paranoia-level/1"] [tag "OWASP_CRS"] [tag "capec/1000/210/272"] [tag "PCI/12.1"] [hostname "domain.com"] [uri "/wp-admin/admin-ajax.php"] [unique_id "1637483735"] [ref "o0,13v1742,13t:lowercaseo0,16v1781,16t:lowercaseo0,7v1574,7t:lowercaseo0,4v1546,4t:lowercaseo0,10v1647,10t:lowercaseo0,14v1927,14t:lowercaseo0,6v266,6t:lowercaseo0,15v74,15t:lowercaseo0,12v141,12t:low (170 characters omitted)"]
ModSecurity: Access denied with code 403 (phase 2). Matched "Operator `Ge' with parameter `5' against variable `TX:ANOMALY_SCORE' (Value: `5' ) [file "/usr/local/lsws/conf/modsec/coreruleset-3.3.2/rules/REQUEST-949-BLOCKING-EVALUATION.conf"] [line "80"] [id "949110"] [rev ""] [msg "Inbound Anomaly Score Exceeded (Total Score: 5)"] [data ""] [severity "2"] [ver "OWASP_CRS/3.3.2"] [maturity "0"] [accuracy "0"] [tag "application-multi"] [tag "language-multi"] [tag "platform-multi"] [tag "attack-generic"] [hostname "domain.com"] [uri "/wp-admin/admin-ajax.php"] [unique_id "1637483735"] [ref ""]

---lDPfp6Zx---Z--

Audit Logs / Triggered Rule Numbers

id “949110”

Seems this one is creating an issue -> https://github.com/coreruleset/coreruleset/blob/4eab4128a7079551551dcea90e1910ce7946d4eb/rules/REQUEST-949-BLOCKING-EVALUATION.conf#L139

Your Environment

  • CRS version (e.g., v3.2.2):
  • Paranoia level setting:
  • ModSecurity version (e.g., 2.9.3):
  • Web Server and version (e.g., apache 2.4.41): OpenLiteSpeed/LiteSpeed Enterprise
  • Operating System and version: Ubuntu 20.04

Confirmation

[ ] I have removed any personal data (email addresses, IP addresses, passwords, domain names) from any logs posted.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
usmannasircommented, Nov 22, 2021

@airween This seems to resolve the issue.

1reaction
usmannasircommented, Nov 21, 2021

I will try this and revert to you by tomorrow.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Failed to import Nicepage into Wordpress
I can't upload my Nicepage file onto Wordpress - it comes up with error code. Error occured: (status 200)
Read more >
Topic: Nicepage import not working | WordPress.com Forums
I didn't have this issue until the newest update for the plugin. ... following error, each and every time I try to import...
Read more >
Export and Update of WordPress Content from Nicepage ...
If you have changes in your Nicepage desktop projects, you can export and import the Nicepage pages and Plugin to your existing WordPress...
Read more >
[Resolved] Nicepage string translation error. - WPML
This is the technical support forum for WPML - the multilingual WordPress plugin. Everyone can read, but only WPML clients can post here....
Read more >
How To Fix "The Link You Followed Has Expired" Error in ...
This error usually occurs when you are trying to upload a WordPress theme or a plugin to your website from the WordPress admin...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found