Search…

X3 Photo Gallery Support Forums

Search…
 
hpdorn
Topic Author
Posts: 18
Joined: 26 Dec 2020, 05:19

Settings/Custom Status:error

19 Oct 2024, 10:14

Just a question if this is a known problem:

I wanted to add some things in Settings/Custom/<head>[html].

I used the example from the help (?):
<meta name="p:domain_verify" content="xxxxxxx"/>.

When saving I get the following error
Error-->TextStatus: error.

In the server logs I get the following message:
Apache error: [client 91.248.82.127] ModSecurity: [file "/etc/httpd/conf/modsecurity.d/rules/tortix/modsec/12_asl_adv_xss_rules.conf"] [line "36"] [id "341256"] [rev "5"] [msg "Atomicorp.com WAF rules: Possible Cross Site Scripting attack (detectXSS)"] [data "{\\x22style\\x22:{\\x22layout\\x22:{\\x22layout\\x22:\\x22topbar-float\\x22,\\x22fixed\\x22:\\x22topbar-fixed\\x22,\\x22wide\\x22: true,\\x22overlay\\x22:true},\\x22skin\\x22:{\\x22skin\\x22:\\x22twilight\\x22,\\x22primary_color\\x22:\\x22goldenrod\\x22,\\x22clear\\x22: \\x22filled\\x22},\\x22font\\x22:{\\x22font\\x22:\\x22inconsolata:400,700|special elite|logo:small|topbar:special elite|sidebar:special elite|subheader: small|styled:inconsolata\\x22},\\x22logo\\x22:{\\x22enabled\\x22:true,\\x22title\\x22:\\x22hpd photo gallery\\x22,\\x22use_image\\x22:. .."] [severity "CRITICAL"] Access denied with code 403 (phase 2). XSS detected using libinjection. [hostname "pictures.hapede.de"] [uri "/panel/x3_settings.php"] [unique_id "ZxO6C7uPoxaMTgVRx4c5tQAAABI"], referer: https://pictures.hapede.de/panel/

This is not a problem for me, but maybe someone knows what the problem is.
Thanks.
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14469
Joined: 30 Sep 2006, 03:37

Re: Settings/Custom Status:error

20 Oct 2024, 00:16

hpdorn wrote:"/etc/httpd/conf/modsecurity.d/rules/tortix/modsec/12_asl_adv_xss_rules.conf"
This is your modsecurity firewall in effect. It considers the html you are saving as "dangerous" because of the HTML content you are trying to save, although it is not. Modsecurity is probably added by default from your hosting. Essentially, it should not be enabled from within your /panel/ section, because only you can login there, and you are supposed to be make any changes you want.
 
hpdorn
Topic Author
Posts: 18
Joined: 26 Dec 2020, 05:19

Re: Settings/Custom Status:error

20 Oct 2024, 03:46

Thanks for the explanation.:thumbsup: