Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: 500 Internal Server Error Ad Agency Saving

500 Internal Server Error Ad Agency Saving 2 years 4 months ago #16866

  • Dataosk
  • Dataosk's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 15
  • Karma: 0
500 Internal Server Error

Using iJoomla Ad Agency I have come across a problem which was related to my server configuration.
In shot.
Saving a General setting or Language file through Administration is producing a 500 Internal Server Error.
iJoomla Ad Agency -> Settings -> General
or
iJoomla Ad Agency -> Settings -> Language

Server log showed that:
Access denied with code 500 (phase 2). Pattern match "((alter|create|drop)[[:space:]]+(column|database|procedure|table)|delete[[:space:]]+from|update.+set.+=)" at ARGS:filecontentFE. [file "/usr/local/apache/conf/modsec2.user.conf"] [line "352"] [id "300015"] [rev "1"] [msg "Generic SQL injection protection"] [severity "CRITICAL"]

Which is a Mod_Security
The only solution i have found is to temporarily disable the line in mod_security configuration.
#Generic SQL sigs
SecRule ARGS "((alter|create|drop)[[:space:]]+(column|database|procedure|table)|delete[[:space:]]+from|update.+set.+=)" "id:300015,rev:1,severity:2,msg:'Generic SQL injection protection'"

To disable replace above with:
#Generic SQL sigs
#SecRule ARGS "((alter|create|drop)[[:space:]]+(column|database|procedure|table)|delete[[:space:]]+from|update.+set.+=)" "id:300015,rev:1,severity:2,msg:'Generic SQL injection protection'"

Save the settings for Ad_Agency, than immediately reverse the changes in/for mod_security rules.

Remember: mod_security is a great layer of protection for your server. If anyone telling you that mod_security is useless, they either low knowledge untalented programmers or they up to no good. Period.


Regards,
Alex
The administrator has disabled public write access.

Re: 500 Internal Server Error Ad Agency Saving 2 years 4 months ago #16867

  • Dataosk
  • Dataosk's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 15
  • Karma: 0
Have to say that problem is related to versions 1.5+ to the moment 2.0.2.
The administrator has disabled public write access.

Re: 500 Internal Server Error Ad Agency Saving 2 years 4 months ago #16874

  • Merav
  • Merav's Avatar
Will investigate and if we can find a fix, we will add it to the next version. Thanks!
The administrator has disabled public write access.

Re: 500 Internal Server Error Ad Agency Saving 2 years 4 months ago #17147

  • Merav
  • Merav's Avatar
I got this from our programmer:

We need to alter a database column based on the user's preferred settings, so that rule of Mod_security (Apache server module) will catch our SQL and output a 500 Internal Server Error.

My advice to all users it that they should disable this rule, not only because of Ad Agency but for other component also, because there are some of them that alter tables or drop tables.
The administrator has disabled public write access.

Re: 500 Internal Server Error Ad Agency Saving 2 years 3 months ago #18059

  • Dataosk
  • Dataosk's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 15
  • Karma: 0
Merav wrote:
I got this from our programmer:

We need to alter a database column based on the user's preferred settings, so that rule of Mod_security (Apache server module) will catch our SQL and output a 500 Internal Server Error.

My advice to all users it that they should disable this rule, not only because of Ad Agency but for other component also, because there are some of them that alter tables or drop tables.
Running many PHP/MySQL sites on my server and never had a problem with that security rule. Turning off security option is very irresponsible and not a very good advice at all.
The administrator has disabled public write access.

Re: 500 Internal Server Error Ad Agency Saving 2 years 3 months ago #18119

  • Ricardo
  • Ricardo's Avatar
  • NOW ONLINE
  • Administrator
  • Posts: 7859
  • Thank you received: 164
  • Karma: 37
I have mod security enabled and I don´t have this error in the latest version. Could you check the server error log?
Ricardo Corai
Moderator
www.ricardocorai.com
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Time to create page: 0.131 seconds

Why iJoomla?

iJoomla, voted "The Best Joomla Apps Developers" in 2010 CMS Expo. We are the leading provider of Joomla extensions, Joomla Modules, Joomla plugins and Joomla components for Joomla 1.5, Joomla 2.5 & Joomla 3.0. 

Our most popular commercial extensions included: Guru (Joomla LMS), iJoomla Ad Agency (Joomla Banners Extension) iJoomla DigiStore (Joomla eCommerce), iJoomla SEO (Component for Joomla SEO), iJoomla Surveys (for creating Joomla Surveys) and more! 

We also provide free Joomla modules on our free Joomla downloads section.

All our Joomla extensions are well developed, fully supported and well documented.