Hi christophe
IMHO (but Ivan will confirm) mod_security seems to truncate your url (see
Location:
> /siteminderagent/pwcgi/smpwservicescgi.exe?SMENC=3DUTF-8&SMTOKEN=3D{RC2=
}GuFcF7I/F5Sl03RqtNrPsMPlYiQZg/B1e2KFVDxfbVrnyC2MPyEDnDn1fDzHRadtrowaa0dt=
XRcvNGiN+cwPaCYlGkzRryxlqAMQ33n/JFc//j8GS51FTS31e00c0C0x4dszYnBMJfwIFO/TQ=
0vyWFW1RyszdoiTDAp8ZSwqgO0=3D&USERNAME=3Dtest_YM00&SMAUTHREASON=3D20&SMAG=
ENTNAME=3D-SM-fshUMrkQm%2fB7%2bk8CAU%2fak459pCXPADL1l0bEfFr6ZGrq3HJ%2fv72=
0ACDphqn4Rhzb&TARGET=3D-SM-https%3a%2f%2fwww%2emyserver%2ecom%2fURI%2fhom=
e%2ehtml%3
that is truncated before the end... (fSMLOCALE=3DFR-FR is missing) and ca=
use
the %3f not beeing accepted... Changing the %3f to ? make the query a
little bit shorter and is then accepted (but without taking care of the
LOCALE I think.
Cheers
Alex
On Lun 10 avril 2006 11:31, ze...@vo... a =E9crit :
> Hi Ivan,
>
> Thanks for you answer.
>
> I tried again to set the "SecFilterCheckURLEncoding" to "Off or On" but
> the error still occurs.
>
> The Debug log (level 2) that be displayed is as follow:
>
> Detection phase starting (request 366218): "GET
> /siteminderagent/pwcgi/smpwservicescgi.exe?SMENC=3DUTF-8&SMTOKEN=3D{RC2=
}GuFcF7I/F5Sl03RqtNrPsMPlYiQZg/B1e2KFVDxfbVrnyC2MPyEDnDn1fDzHRadtrowaa0dt=
XRcvNGiN+cwPaCYlGkzRryxlqAMQ33n/JFc//j8GS51FTS31e00c0C0x4dszYnBMJfwIFO/TQ=
0vyWFW1RyszdoiTDAp8ZSwqgO0=3D&USERNAME=3Dtest_YM00&SMAUTHREASON=3D20&SMAG=
ENTNAME=3D-SM-fshUMrkQm%2fB7%2bk8CAU%2fak459pCXPADL1l0bEfFr6ZGrq3HJ%2fv72=
0ACDphqn4Rhzb&TARGET=3D-SM-https%3a%2f%2fwww%2emyserver%2ecom%2fURI%2fhom=
e%2ehtml%3fSMLOCALE=3DFR-FR
> HTTP/1.1"
> [10/Apr/2006:10:58:20 +0200]
> [www.myserver.com/sid#115800][rid#366218][/siteminderagent/pwcgi/smpwse=
rvicescgi.exe][1]
> Access denied with code 403. Error normalising REQUEST_URI: Invalid
> character detected [0]
>
>
> The modsec_log is as follow
>
> =3D=3D0000763d=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DRequest: www.myserver.com
> 1.10.11.12 - - [10/Apr/2006:11:06:56 +0200] "GET
> /siteminderagent/pwcgi/smpwservicescgi.exe?SMENC=3DUTF-8&SMTOKEN=3D{RC2=
}GuFcF7I/F5Sl03RqtNrPsMPlYiQZg/B1e2KFVDxfbVrnyC2MPyEDnDn1fDzHRadtrowaa0dt=
XRcvNGiN+cwPaCYlGkzRryxlqAMQ33n/JFc//j8GS51FTS31e00c0C0x4dszYnBMJfwIFO/TQ=
0vyWFW1RyszdoiTDAp8ZSwqgO0=3D&USERNAME=3Dtest_YM00&SMAUTHREASON=3D20&SMAG=
ENTNAME=3D-SM-fshUMrkQm%2fB7%2bk8CAU%2fak459pCXPADL1l0bEfFr6ZGrq3HJ%2fv72=
0ACDphqn4Rhzb&TARGET=3D-SM-https%3a%2f%2fwww%2emyserver%2ecom%2fURI%2fhom=
e%2ehtml%3fSMLOCALE=3DFR-FR
> HTTP/1.1" 403 2244
> "https://www.myserver.com/siteminderagent/pwcgi/smpwservicescgi.exe?SME=
NC=3DUTF-8&SMTOKEN=3D{RC2}GuFcF7I/F5Sl03RqtNrPsMPlYiQZg/B1e2KFVDxfbVrnyC2=
MPyEDnDn1fDzHRadtrowaa0dtXRcvNGiN+cwPaCYlGkzRryxlqAMQ33n/JFc//j8GS51FTS31=
e00c0C0x4dszYnBMJfwIFO/TQ0vyWFW1RyszdoiTDAp8ZSwqgO0=3D&USERNAME=3Dtest_YM=
00&SMAUTHREASON=3D20&SMAGENTNAME=3D-SM-fshUMrkQm%2fB7%2bk8CAU%2fak459pCXP=
ADL1l0bEfFr6ZGrq3HJ%2fv720ACDphqn4Rhzb&TARGET=3D-SM-https%3a%2f%2fwww%2em=
yserver%2ecom%2fURI%2fhome%2ehtml%3fSMLOCALE=3DFR-FR"
> "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)"=
-
> "-"
> ----------------------------------------
> GET
> /siteminderagent/pwcgi/smpwservicescgi.exe?SMENC=3DUTF-8&SMTOKEN=3D{RC2=
}GuFcF7I/F5Sl03RqtNrPsMPlYiQZg/B1e2KFVDxfbVrnyC2MPyEDnDn1fDzHRadtrowaa0dt=
XRcvNGiN+cwPaCYlGkzRryxlqAMQ33n/JFc//j8GS51FTS31e00c0C0x4dszYnBMJfwIFO/TQ=
0vyWFW1RyszdoiTDAp8ZSwqgO0=3D&USERNAME=3Dtest_YM00&SMAUTHREASON=3D20&SMAG=
ENTNAME=3D-SM-fshUMrkQm%2fB7%2bk8CAU%2fak459pCXPADL1l0bEfFr6ZGrq3HJ%2fv72=
0ACDphqn4Rhzb&TARGET=3D-SM-https%3a%2f%2fwww%2emyserver%2ecom%2fURI%2fhom=
e%2ehtml%3fSMLOCALE=3DFR-FR
> HTTP/1.1
> Accept: */*
> Referer:
> https://www.myserver.com/siteminderagent/pwcgi/smpwservicescgi.exe?SMEN=
C=3DUTF-8&SMTOKEN=3D{RC2}GuFcF7I/F5Sl03RqtNrPsMPlYiQZg/B1e2KFVDxfbVrnyC2M=
PyEDnDn1fDzHRadtrowaa0dtXRcvNGiN+cwPaCYlGkzRryxlqAMQ33n/JFc//j8GS51FTS31e=
00c0C0x4dszYnBMJfwIFO/TQ0vyWFW1RyszdoiTDAp8ZSwqgO0=3D&USERNAME=3Dtest_YM0=
0&SMAUTHREASON=3D20&SMAGENTNAME=3D-SM-fshUMrkQm%2fB7%2bk8CAU%2fak459pCXPA=
DL1l0bEfFr6ZGrq3HJ%2fv720ACDphqn4Rhzb&TARGET=3D-SM-https%3a%2f%2fwww%2emy=
server%2ecom%2fURI%2fhome%2ehtml%3fSMLOCALE=3DFR-FR
> Accept-Language: fr,en-gb;q=3D0.5
> Accept-Encoding: gzip, deflate
> User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR
> 1.1.4322)
> Host: www.myserver.com
> Connection: Keep-Alive
> SM_TRANSACTIONID: c2ce165c-0650-443a2030-000e-074810c5
> SM_SDOMAIN: .myserver.com
> Location:
> /siteminderagent/pwcgi/smpwservicescgi.exe?SMENC=3DUTF-8&SMTOKEN=3D{RC2=
}GuFcF7I/F5Sl03RqtNrPsMPlYiQZg/B1e2KFVDxfbVrnyC2MPyEDnDn1fDzHRadtrowaa0dt=
XRcvNGiN+cwPaCYlGkzRryxlqAMQ33n/JFc//j8GS51FTS31e00c0C0x4dszYnBMJfwIFO/TQ=
0vyWFW1RyszdoiTDAp8ZSwqgO0=3D&USERNAME=3Dtest_YM00&SMAUTHREASON=3D20&SMAG=
ENTNAME=3D-SM-fshUMrkQm%2fB7%2bk8CAU%2fak459pCXPADL1l0bEfFr6ZGrq3HJ%2fv72=
0ACDphqn4Rhzb&TARGET=3D-SM-https%3a%2f%2fwww%2emyserver%2ecom%2fURI%2fhom=
e%2ehtml%3
> SM_REALM:
> SM_REALMOID:
> SM_AUTHTYPE: Not Protected
> SM_USER:
> SM_USERDN:
> mod_security-message: Access denied with code 403. Error normalising
> REQUEST_URI: Invalid character detected [0]
> mod_security-action: 403
>
> It seems that the error is due to the invalid character "0" if i
> understand the log displayed. But why my URL works fine when i change
> "%3f" to "?" ?!
> I continue my investigation, but if you can help me i will be happy...
>
> Regards,
> Christophe
>
>
>> Message du 07/04/06 =C3=A0 18h41
>> De : "Ivan Ristic" <iv...@we...>
>> A : ze...@vo...
>> Copie =C3=A0 : mod...@li...
>> Objet : Re: [mod-security-users] Access denied with code 403. Error
>> normalising REQUEST_URI: Invalid URL encoding detected: not enough
>> characters
>>
>> ze...@vo... wrote:
>> > Hi,
>> >
>> > I face a big problem using Mod Security 1.9.2.
>> >
>> > My web server architecture uses Siteminder and i use this kind of UR=
L
>> to
>> > change or modify password:
>> >
>> > https://www.myserver.com/siteminderagent/pwcgi/smpwservicescgi.exe
>>
>> The URL works fine work me.
>>
>> Are you sure you get the same result with "SecFilterCheckURLEncoding
>> Off"?
>>
>>
>> > ModSecurity logs as following:
>>
>> Can you get me the audit log entry for this problem?
>>
>>
>> > [06/Apr/2006:17:45:06 +0200]
>> > [www.myserver.com/sid#115800][rid#32ef88][/siteminderagent/pwcgi/smp=
wservicescgi.
>> > exe][1] Access denied with code 403. Error normalising REQUEST_URI:
>> > Invalid URL encoding detected: not enough characters
>>
>> This message would typically appear when there's an % at the end
>> of the URI but the two hexadecimal characters that need to follow it
>> aren't.
>>
>> --
>> Ivan Ristic, Technical Director
>> Thinking Stone, http://www.thinkingstone.com
>> ModSecurity: Open source Web Application Firewall
>> Apache Security (O'Reilly): http://www.apachesecurity.net
>>
>>
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by xPML, a groundbreaking scripting
> language
> that extends applications into web and mobile media. Attend the live
> webcast
> and join the prime developer group breaking into this new coding
> territory!
> http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=110944&bid$1720&dat=12164=
2
> _______________________________________________
> mod-security-users mailing list
> mod...@li...
> https://lists.sourceforge.net/lists/listinfo/mod-security-users
>
|