Post by Joe1234 » Mon Mar 31, 2025 1:39 pm

I'm using an extension https://www.opencart.com/index.php?rout ... _license=0 the developer has not responded to issues in over a year. This mod offers the ability to edit mods scripts in the admin panel.

My issue is since the latest OC 3 update, this mod is unable to save any modifications that have <script></script> in it. I know it may be hard to offer input with just that, but just looking for ideas of what I could look at to try and resolve this, or what info you may need to help me figure this out.
Last edited by Joe1234 on Tue Apr 01, 2025 1:09 pm, edited 1 time in total.

v3.0.4.0 php 8.1
I'm here for a reason, if your response is contact a/the developer, just don't reply.


Active Member

Posts

Joined
Sat Jan 01, 2022 5:47 am

Post by paulfeakins » Mon Mar 31, 2025 5:50 pm

Joe1234 wrote:
Mon Mar 31, 2025 1:39 pm
My issue is since the latest OC 3 update, this mod is unable to save any modifications that have <script></script> in it.
That's more likely a change on your web server.

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Legendary Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by grgr » Tue Apr 01, 2025 11:36 am

I would agree with the above. Extension works just fine.

-
Image Image Image
VIEW ALL EXTENSIONS * EXTENSION SUPPORT * WEBSITE * CUSTOM REQUESTS


User avatar
Active Member

Posts

Joined
Mon Mar 28, 2011 4:08 pm
Location - UK

Post by Joe1234 » Tue Apr 01, 2025 1:17 pm

Thanks. You were right. Once again modsecurity reared its ugly head. I had to disable 3 rules to allow the following to flow "<script></script>" and "window.onload = function()". Does anyone know how to disable the rule only when it's coming from a specific url instead of disabling it all together?

v3.0.4.0 php 8.1
I'm here for a reason, if your response is contact a/the developer, just don't reply.


Active Member

Posts

Joined
Sat Jan 01, 2022 5:47 am

Post by nonnedelectari » Tue Apr 01, 2025 5:16 pm

Joe1234 wrote:
Tue Apr 01, 2025 1:17 pm
Thanks. You were right. Once again modsecurity reared its ugly head. I had to disable 3 rules to allow the following to flow "<script></script>" and "window.onload = function()". Does anyone know how to disable the rule only when it's coming from a specific url instead of disabling it all together?
you could try this for specific urls:

Code: Select all

SecRule REQUEST_BASENAME "@beginsWith /url_to_exclude" "id:x,ctl:ruleEngine=Off"
make x a unique id

or off only for the entire admin directory:

Code: Select all

<Directory "/admin">
	<IfModule security2_module>
		SecRuleEngine Off
	</IfModule>
</Directory>
or set it to detection only for the entire admin directory:

Code: Select all

<Directory "/admin">
	<IfModule security2_module>
		SecRuleEngine DetectionOnly
	</IfModule>
</Directory>
or remove a specific rule for the admin side:

Code: Select all

<Directory "/admin">
	<IfModule security2_module>
		SecRuleRemoveById xxxxxxxxx
	</IfModule>
</Directory>
not sure if you can or are allowed to do this via your htaccess.

Active Member

Posts

Joined
Thu Mar 04, 2021 6:34 pm

Post by Joe1234 » Wed Apr 02, 2025 8:46 pm

@nonnedelectari, thank, I'll try that as soon as I get a chance.
@paul and grgr, what made you say server issue? I would have never thought that, so in case something else pops up in the future, I'd like to know the thought process.

v3.0.4.0 php 8.1
I'm here for a reason, if your response is contact a/the developer, just don't reply.


Active Member

Posts

Joined
Sat Jan 01, 2022 5:47 am
Who is online

Users browsing this forum: No registered users and 11 guests