Jump to content

Unable To Update Knowledgebase


willow

Recommended Posts

I've recently upgraded my installation to latest release but im now not able to update my knowedgebase articles because im getting a 406 error when i try to save the changes:

Not Acceptable

 

An appropriate representation of the requested resource /admin/supportkb.php could not be found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

I have checked and /adming/supportkb.php is there.

 

Thanks in advance :)

Link to comment
Share on other sites

  • 7 months later...

I get this occasionally too. It's definitely ModSecurity that's blocking the posted data.

 

[Tue Oct 18 13:47:45 2011] [error] [client xx.xx.xx.xx] ModSecurity: Access denied with code 406 (phase 2). Pattern match "((select|grant|delete|insert|drop|alter|replace|truncate|update|create|rename|describe)[[:space:]]+[A-Z|a-z|0-9|\\*| |\\,]+[[:space:]]+(from|into|table|database|index|view)[[:space:]]+[A-Z|a-z|0-9|\\*| |\\,]|UNION SELECT.*\\'.*\\'.*,[0-9].*INTO.*FROM)" at REQUEST_BODY. [file "/usr/local/apache/conf/modsec2.user.conf"] [line "347"] [id "300013"] [rev "1"] [msg "Generic SQL injection protection"] [severity "CRITICAL"] [hostname "hostname.domain.tld"] [uri "/adminfolder/supportkb.php"] [unique_id "Tpz24XZYGEEAAGRBlzoAAAAD"]

 

It doesn't affect all KB articles though, I'm trying to work out what it is about some KB articles that triggers the rule.

Link to comment
Share on other sites

Quick solution was to whitelist my IP in ModSecurity

 

Open

/usr/local/apache/conf/modsec2/whitelist.conf

 

Add

SecRule REMOTE_ADDR "^xxx\.xxx\.xxx\.xxx" phase:1,nolog,allow,ctl:ruleEngine=off

(Where xxx.xxx.xxx.xxx is your IP address)

 

Restart Apache.

Edited by mikelegg
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated