Re: [WebDNA] Stop hacking

This WebDNA talk-list message is from

2013


It keeps the original formatting.
numero = 110692
interpreted = N
texte = --Apple-Mail=_54B7A801-BE70-4437-9333-29A98EE22265 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=iso-8859-1 On 2013-09-11, at 9:49 PM, WebDNA wrote: > Just off the top of my head ....... > What if you just disallowed all commands in the prefs ? '!' is not a command. =20 Neither is 'Capitalize'. =20 Etc. > Or update the WebDNA version to the one that fixed the problem ..... yes ^^^ >=20 >=20 > Regards >=20 > Stuart Tremain > IDFK Web Developments > AUSTRALIA > webdna@idfk.com.au >=20 >=20 >=20 >=20 > On 12/09/2013, at 11:46 AM, John Butler = wrote: >=20 >> Here is a version Donovan posted I think in Sept. 2011. >>=20 >> = --------------------------------------------------------------------------= ------------------------------------------------------------------ >>=20 >> [formvariables name=3Dtext][redirect url=3Dindex.html][/formvariables] >> = [text]t_commands=3D|[url]![/url]|addfields|addlineitem|append|appendfile|a= pplescript|arrayget|arrayset|authenticate|boldwords|browsername|calcfilecr= c32|capitalize|cart|case|clearlineitems|closedatabase|command|commitdataba= se|convertchars|convertwords|copyfile|copyfolder|countchars|countwords|cre= atefolder|date|ddeconnect|ddesend|decrypt|delete|deletefile|deletefolder|d= os|elapsedtime|else|encrypt|exclusivelock|filecompare|fileinfo|findstring|= flushcache|flushdatabases|format|format|formvariables|founditems|freememor= y|function|getchars|getcookie|getmimeheader|grep|hideif|html1|html2|html3|= httpmethod|if|include|input|interpret|ipaddress|issecureclient|lastautonum= ner|lastrandom|lineitems|listchars|listcookies|listdatabases|listfields|li= stfiles|listmimeheaders|listpath|listvariables|listwords|lookup|lookup|loo= p|lowercase|math|middle|movefile|object|orderfile|password|platform|produc= t|protect|purchase|random|raw|redirect|referrer|removehtml|removelineitem|= replace|replacefounditems|return|returnraw|scope|search|sendmail|setcookie= |setheader|setlineitem|setmimeheader|shell|showif|shownext|spawn|sql|sql|s= qlconnect|sqldisconnect|sqlexecute|sqlinfo|sqlrelease|sqlresult|switch|tab= le|tcpconnect|tcpsend|then|thisurl|time|unurl|uppercase|url|username|valid= card|version|waitforfile|writefile|xmlnode|xmlnodes|xmlnodesattributes|xml= parse|xsl|xslt|[/text] >> [formvariables] >> [showif [t_commands]^|[url][name][/url]|] >> [redirect url=3Dindex.html] >> [/showif] >> [/formvariables] >>=20 >>=20 >> = --------------------------------------------------------------------------= ------------------------------------------------------------------ >>=20 >> The version you posted that started this thread looked fine, too, at = first glance. =20 >>=20 >> -G >>=20 >>=20 >>=20 >> On 2013-09-11, at 9:34 PM, Steve Graham wrote: >>=20 >>> > Many of us placed other code to prevent this hole in the webdna = pre-parse script. >>>=20 >>> Can you send it to me or post here? >>>=20 >>>=20 >>>=20 >>>=20 >>>=20 >>>=20 >>> On Wed, Sep 11, 2013 at 6:57 PM, John Butler = wrote: >>> yes, it seems the coder was preventing the very thing I mentioned in = my last post on this thread. >>>=20 >>> -G >>>=20 >>>=20 >>> On 2013-09-11, at 7:54 PM, Steve Graham = wrote: >>>=20 >>>> This is noHack.db: >>>>=20 >>>> contextName >>>> ! >>>> addfields >>>> addlineitem >>>> append >>>> appendfile >>>> applescript >>>> arrayget >>>> arrayset >>>> authenticate >>>> boldwords >>>> browsername >>>> calcfilecrc32 >>>> capitalize >>>> case >>>> clearlineitems >>>> closedatabase >>>> command >>>> commitdatabase >>>> convertchars >>>> convertwords >>>> copyfile >>>> copyfolder >>>> countchars >>>> countwords >>>> createfolder >>>> date >>>> ddeconnect >>>> ddesend >>>> decrypt >>>> delete >>>> deletefile >>>> deletefolder >>>> dos >>>> elapsedtime >>>> else >>>> encrypt >>>> exclusivelock >>>> filecompare >>>> fileinfo >>>> findstring >>>> flushcache >>>> flushdatabases >>>> format >>>> format >>>> formvariables >>>> founditems >>>> freememory >>>> function >>>> getchars >>>> getcookie >>>> getmimeheader >>>> grep >>>> hideif >>>> html1 >>>> html2 >>>> html3 >>>> httpmethod >>>> if >>>> include >>>> input >>>> interpret >>>> ipaddress >>>> issecureclient >>>> lastautonumner >>>> lastrandom >>>> lineitems >>>> listchars >>>> listcookies >>>> listdatabases >>>> listfields >>>> listfiles >>>> listmimeheaders >>>> listpath >>>> listvariables >>>> listwords >>>> lookup >>>> lookup >>>> loop >>>> lowercase >>>> math >>>> middle >>>> movefile >>>> object >>>> orderfile >>>> password >>>> platform >>>> product >>>> protect >>>> purchase >>>> random >>>> raw >>>> redirect >>>> referrer >>>> removehtml >>>> removelineitem >>>> replace >>>> replacefounditems >>>> return >>>> returnraw >>>> scope >>>> search >>>> sendmail >>>> setcookie >>>> setheader >>>> setlineitem >>>> setmimeheader >>>> shell >>>> showif >>>> shownext >>>> spawn >>>> sql >>>> sql >>>> sqlconnect >>>> sqldisconnect >>>> sqlexecute >>>> sqlinfo >>>> sqlrelease >>>> sqlresult >>>> switch >>>> table >>>> tcpconnect >>>> tcpsend >>>> text >>>> then >>>> thisurl >>>> time >>>> unurl >>>> uppercase >>>> url >>>> username >>>> validcard >>>> version >>>> version >>>> waitforfile >>>> writefile >>>> xmlnode >>>> xmlnodes >>>> xmlnodesattributes >>>> xmlparse >>>> xsl >>>> xslt >>>>=20 >>>>=20 >>>> On Wed, Sep 11, 2013 at 6:42 PM, Donovan Brooke = wrote: >>>> Steve,=20 >>>> It appears the original coder was trying to stop anyone from trying = a context in the URL... however, I'm not sure why that would be desired. = We don't know the contents of "noHack.db" so we can't tell you exactly = what the coder was trying to protect the site from. >>>>=20 >>>> Donovan >>>> =20 >>>> =20 >>>>> --- Original message ---=20 >>>>> Subject: [WebDNA] Stop hacking=20 >>>>> From: Steve Graham =20 >>>>> To: =20 >>>>> Date: Wednesday, 11/09/2013 3:53 PM >>>>>=20 >>>>> I found this code in a webdna site I am fixing. Someone please = say if this is necessary or recommended to stop hackers in v7.x or = v6.2.1: >>>>>=20 >>>>> [formvariables] >>>>> [search db=3DnoHack.db&eqcontextNamedatarq=3D[url][name][/url]] >>>>> [founditems] >>>>> [redirect /] >>>>> [/founditems] >>>>> [/search] >>>>> [/formvariables] >>>>>=20 >>>>> [!] include this file at the top of every page to block hacking = when a context name appears as a formvariable name [/!] >>>>> --------------------------------------------------------- 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 Bug Reporting: = support@webdna.us >>>>=20 >>>> --------------------------------------------------------- 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 Bug Reporting: = support@webdna.us >>>>=20 >>>> --------------------------------------------------------- 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 Bug Reporting: = support@webdna.us >>>=20 >>> --------------------------------------------------------- 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 Bug Reporting: = support@webdna.us >>>=20 >>> --------------------------------------------------------- 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 Bug Reporting: = support@webdna.us >>=20 >> --------------------------------------------------------- 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 Bug Reporting: = support@webdna.us >=20 > --------------------------------------------------------- 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 Bug Reporting: = support@webdna.us --Apple-Mail=_54B7A801-BE70-4437-9333-29A98EE22265 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=iso-8859-1
On 2013-09-11, at 9:49 PM, WebDNA <webdna@idfk.com.au> = wrote:

Just = off the top of my head .......

What if you just = disallowed all commands in the prefs = ?

'!' is not a command. =   

Neither is 'Capitalize'. =  

Etc.


Or update the = WebDNA version to the one that fixed the problem = .....

yes = ^^^




Regards

Stuart = Tremain
IDFK Web Developments
AUSTRALIA




On 12/09/2013, at 11:46 AM, John Butler <govinda.webdnatalk@gmail.com<= /a>> wrote:

Here is a version Donovan posted I think in Sept. = 2011.

-------------------------------------------= --------------------------------------------------------------------------= -----------------------

[formvariables = name=3Dtext][redirect = url=3Dindex.html][/formvariables]
[text]t_commands=3D|[url]![/ur= l]|addfields|addlineitem|append|appendfile|applescript|arrayget|arrayset|a= uthenticate|boldwords|browsername|calcfilecrc32|capitalize|cart|case|clear= lineitems|closedatabase|command|commitdatabase|convertchars|convertwords|c= opyfile|copyfolder|countchars|countwords|createfolder|date|ddeconnect|ddes= end|decrypt|delete|deletefile|deletefolder|dos|elapsedtime|else|encrypt|ex= clusivelock|filecompare|fileinfo|findstring|flushcache|flushdatabases|form= at|format|formvariables|founditems|freememory|function|getchars|getcookie|= getmimeheader|grep|hideif|html1|html2|html3|httpmethod|if|include|input|in= terpret|ipaddress|issecureclient|lastautonumner|lastrandom|lineitems|listc= hars|listcookies|listdatabases|listfields|listfiles|listmimeheaders|listpa= th|listvariables|listwords|lookup|lookup|loop|lowercase|math|middle|movefi= le|object|orderfile|password|platform|product|protect|purchase|random|raw|= redirect|referrer|removehtml|removelineitem|replace|replacefounditems|retu= rn|returnraw|scope|search|sendmail|setcookie|setheader|setlineitem|setmime= header|shell|showif|shownext|spawn|sql|sql|sqlconnect|sqldisconnect|sqlexe= cute|sqlinfo|sqlrelease|sqlresult|switch|table|tcpconnect|tcpsend|then|thi= surl|time|unurl|uppercase|url|username|validcard|version|waitforfile|write= file|xmlnode|xmlnodes|xmlnodesattributes|xmlparse|xsl|xslt|[/text]
[formvariables]
[showif = [t_commands]^|[url][name][/url]|]
[redirect = url=3Dindex.html]
= [/showif]
[/formvariables]


<= /div>
----------------------------------------------------------------= --------------------------------------------------------------------------= --

The version you posted that started this = thread looked fine, too, at first glance. =   

-G




> Many of us placed other code to = prevent this hole in the webdna pre-parse script.

Can you = send it to me or post here?






On Wed, Sep 11, 2013 at 6:57 PM, John Butler <govinda.webdnatalk@gmail.com> = wrote:
yes, it seems the coder was = preventing the very thing I mentioned in my last post on this = thread.

-G


On 2013-09-11, at 7:54 = PM, Steve Graham <skgrahamjr@gmail.com> wrote:

This is = noHack.db:

contextName
!
addfields
addlineitem
appendappendfile
applescript
arrayget
arrayset
authenticate
bol= dwords
browsername
calcfilecrc32
capitalize
= case
clearlineitems
closedatabase
command
commitdatabase
co= nvertchars
convertwords
copyfile
copyfolder
countchars
coun= twords
createfolder
date
ddeconnect
ddesend
decrypt
dele= te
= deletefile
deletefolder
dos
elapsedtime
else
encrypt
exc= lusivelock
filecompare
fileinfo
findstring
flushcache
flush= databases
format
format
formvariables
founditems
freememory=
= function
getchars
getcookie
getmimeheader
grep
hideif
ht= ml1
html2
html3
httpmethod
if
include
input
interpret=
ipaddress
issecureclient
lastautonumner
lastrandom
lineite= ms
= listchars
listcookies
listdatabases
listfields
listfiles
li= stmimeheaders
listpath
listvariables
listwords
lookup
looku= p
loop
lowercase
math
middle
movefile
object
orderfil= e
= password
platform
product
protect
purchase
random
rawredirect
referrer
removehtml
removelineitem
replace
replac= efounditems
return
returnraw
scope
search
sendmail
setco= okie
= setheader
setlineitem
setmimeheader
shell
showif
shownextspawn
sql
sql
sqlconnect
sqldisconnect
sqlexecute
sqli= nfo
sqlrelease
sqlresult
switch
table
tcpconnect
tcpsend=
= text
then
thisurl
time
unurl
uppercase
url
usernamevalidcard
version
version
waitforfile
writefile
xmlnodexmlnodes
xmlnodesattributes
xmlparse
xsl
xslt


On Wed, Sep 11, 2013 at 6:42 PM, = Donovan Brooke <dbrooke@webdna.us> wrote:
Steve,
It appears the original coder was trying to stop anyone from = trying a context in the URL... however, I'm not sure why that would be = desired. We don't know the contents of "noHack.db" so we can't tell you = exactly what the coder was trying to protect the site from.
=
Donovan
 
 
--- Original message ---
Subject: = [WebDNA] Stop hacking
From: Steve Graham <skgrahamjr@gmail.com>
To: <talk@webdna.us>
Date: Wednesday, = 11/09/2013 3:53 PM

I found this code in a webdna site I am = fixing.  Someone please say if this is necessary or recommended to = stop hackers in v7.x or v6.2.1:

[formvariables]
[search = db=3DnoHack.db&eqcontextNamedatarq=3D[url][name][/url]]
[founditems= ]
[redirect = /]
[/founditems]
[/search]
[/formvariables]

[!] include = this file at the top of every page to block hacking when a context name = appears as a formvariable name [/!]
--------------------------------------------------------- = This message is sent to you because you are subscribed to the mailing = list <talk@webdna.us>. To unsubscribe, E-mail to: = <talk-leave@webdna.us>archives: http://mail.webdna.us/list/talk@webdna.us Bug = Reporting: support@webdna.us

--------------------------------------------------------- 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 Bug Reporting: support@webdna.us

= --------------------------------------------------------- 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 Bug Reporting: support@webdna.us
--------------------------------------------------------- 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 Bug Reporting: support@webdna.us

=
--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/l= ist/talk@webdna.us Bug Reporting: support@webdna.us

--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/l= ist/talk@webdna.us Bug Reporting: support@webdna.us
--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/l= ist/talk@webdna.us Bug Reporting: support@webdna.us
= --Apple-Mail=_54B7A801-BE70-4437-9333-29A98EE22265-- Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] Stop hacking (Donovan Brooke 2013)
  2. Re: [WebDNA] Stop hacking (Dan Strong 2013)
  3. Re: [WebDNA] Stop hacking (John Butler 2013)
  4. Re: [WebDNA] Stop hacking (WebDNA 2013)
  5. Re: [WebDNA] Stop hacking (John Butler 2013)
  6. Re: [WebDNA] Stop hacking (Steve Graham 2013)
  7. Re: [WebDNA] Stop hacking (John Butler 2013)
  8. Re: [WebDNA] Stop hacking (John Butler 2013)
  9. Re: [WebDNA] Stop hacking (Steve Graham 2013)
  10. Re: [WebDNA] Stop hacking (Donovan Brooke 2013)
  11. [WebDNA] Stop hacking (Steve Graham 2013)
--Apple-Mail=_54B7A801-BE70-4437-9333-29A98EE22265 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=iso-8859-1 On 2013-09-11, at 9:49 PM, WebDNA wrote: > Just off the top of my head ....... > What if you just disallowed all commands in the prefs ? '!' is not a command. =20 Neither is 'Capitalize'. =20 Etc. > Or update the WebDNA version to the one that fixed the problem ..... yes ^^^ >=20 >=20 > Regards >=20 > Stuart Tremain > IDFK Web Developments > AUSTRALIA > webdna@idfk.com.au >=20 >=20 >=20 >=20 > On 12/09/2013, at 11:46 AM, John Butler = wrote: >=20 >> Here is a version Donovan posted I think in Sept. 2011. >>=20 >> = --------------------------------------------------------------------------= ------------------------------------------------------------------ >>=20 >> [formvariables name=3Dtext][redirect url=3Dindex.html][/formvariables] >> = [text]t_commands=3D|[url]![/url]|addfields|addlineitem|append|appendfile|a= pplescript|arrayget|arrayset|authenticate|boldwords|browsername|calcfilecr= c32|capitalize|cart|case|clearlineitems|closedatabase|command|commitdataba= se|convertchars|convertwords|copyfile|copyfolder|countchars|countwords|cre= atefolder|date|ddeconnect|ddesend|decrypt|delete|deletefile|deletefolder|d= os|elapsedtime|else|encrypt|exclusivelock|filecompare|fileinfo|findstring|= flushcache|flushdatabases|format|format|formvariables|founditems|freememor= y|function|getchars|getcookie|getmimeheader|grep|hideif|html1|html2|html3|= httpmethod|if|include|input|interpret|ipaddress|issecureclient|lastautonum= ner|lastrandom|lineitems|listchars|listcookies|listdatabases|listfields|li= stfiles|listmimeheaders|listpath|listvariables|listwords|lookup|lookup|loo= p|lowercase|math|middle|movefile|object|orderfile|password|platform|produc= t|protect|purchase|random|raw|redirect|referrer|removehtml|removelineitem|= replace|replacefounditems|return|returnraw|scope|search|sendmail|setcookie= |setheader|setlineitem|setmimeheader|shell|showif|shownext|spawn|sql|sql|s= qlconnect|sqldisconnect|sqlexecute|sqlinfo|sqlrelease|sqlresult|switch|tab= le|tcpconnect|tcpsend|then|thisurl|time|unurl|uppercase|url|username|valid= card|version|waitforfile|writefile|xmlnode|xmlnodes|xmlnodesattributes|xml= parse|xsl|xslt|[/text] >> [formvariables] >> [showif [t_commands]^|[url][name][/url]|] >> [redirect url=3Dindex.html] >> [/showif] >> [/formvariables] >>=20 >>=20 >> = --------------------------------------------------------------------------= ------------------------------------------------------------------ >>=20 >> The version you posted that started this thread looked fine, too, at = first glance. =20 >>=20 >> -G >>=20 >>=20 >>=20 >> On 2013-09-11, at 9:34 PM, Steve Graham wrote: >>=20 >>> > Many of us placed other code to prevent this hole in the webdna = pre-parse script. >>>=20 >>> Can you send it to me or post here? >>>=20 >>>=20 >>>=20 >>>=20 >>>=20 >>>=20 >>> On Wed, Sep 11, 2013 at 6:57 PM, John Butler = wrote: >>> yes, it seems the coder was preventing the very thing I mentioned in = my last post on this thread. >>>=20 >>> -G >>>=20 >>>=20 >>> On 2013-09-11, at 7:54 PM, Steve Graham = wrote: >>>=20 >>>> This is noHack.db: >>>>=20 >>>> contextName >>>> ! >>>> addfields >>>> addlineitem >>>> append >>>> appendfile >>>> applescript >>>> arrayget >>>> arrayset >>>> authenticate >>>> boldwords >>>> browsername >>>> calcfilecrc32 >>>> capitalize >>>> case >>>> clearlineitems >>>> closedatabase >>>> command >>>> commitdatabase >>>> convertchars >>>> convertwords >>>> copyfile >>>> copyfolder >>>> countchars >>>> countwords >>>> createfolder >>>> date >>>> ddeconnect >>>> ddesend >>>> decrypt >>>> delete >>>> deletefile >>>> deletefolder >>>> dos >>>> elapsedtime >>>> else >>>> encrypt >>>> exclusivelock >>>> filecompare >>>> fileinfo >>>> findstring >>>> flushcache >>>> flushdatabases >>>> format >>>> format >>>> formvariables >>>> founditems >>>> freememory >>>> function >>>> getchars >>>> getcookie >>>> getmimeheader >>>> grep >>>> hideif >>>> html1 >>>> html2 >>>> html3 >>>> httpmethod >>>> if >>>> include >>>> input >>>> interpret >>>> ipaddress >>>> issecureclient >>>> lastautonumner >>>> lastrandom >>>> lineitems >>>> listchars >>>> listcookies >>>> listdatabases >>>> listfields >>>> listfiles >>>> listmimeheaders >>>> listpath >>>> listvariables >>>> listwords >>>> lookup >>>> lookup >>>> loop >>>> lowercase >>>> math >>>> middle >>>> movefile >>>> object >>>> orderfile >>>> password >>>> platform >>>> product >>>> protect >>>> purchase >>>> random >>>> raw >>>> redirect >>>> referrer >>>> removehtml >>>> removelineitem >>>> replace >>>> replacefounditems >>>> return >>>> returnraw >>>> scope >>>> search >>>> sendmail >>>> setcookie >>>> setheader >>>> setlineitem >>>> setmimeheader >>>> shell >>>> showif >>>> shownext >>>> spawn >>>> sql >>>> sql >>>> sqlconnect >>>> sqldisconnect >>>> sqlexecute >>>> sqlinfo >>>> sqlrelease >>>> sqlresult >>>> switch >>>> table >>>> tcpconnect >>>> tcpsend >>>> text >>>> then >>>> thisurl >>>> time >>>> unurl >>>> uppercase >>>> url >>>> username >>>> validcard >>>> version >>>> version >>>> waitforfile >>>> writefile >>>> xmlnode >>>> xmlnodes >>>> xmlnodesattributes >>>> xmlparse >>>> xsl >>>> xslt >>>>=20 >>>>=20 >>>> On Wed, Sep 11, 2013 at 6:42 PM, Donovan Brooke = wrote: >>>> Steve,=20 >>>> It appears the original coder was trying to stop anyone from trying = a context in the URL... however, I'm not sure why that would be desired. = We don't know the contents of "noHack.db" so we can't tell you exactly = what the coder was trying to protect the site from. >>>>=20 >>>> Donovan >>>> =20 >>>> =20 >>>>> --- Original message ---=20 >>>>> Subject: [WebDNA] Stop hacking=20 >>>>> From: Steve Graham =20 >>>>> To: =20 >>>>> Date: Wednesday, 11/09/2013 3:53 PM >>>>>=20 >>>>> I found this code in a webdna site I am fixing. Someone please = say if this is necessary or recommended to stop hackers in v7.x or = v6.2.1: >>>>>=20 >>>>> [formvariables] >>>>> [search db=3DnoHack.db&eqcontextNamedatarq=3D[url][name][/url]] >>>>> [founditems] >>>>> [redirect /] >>>>> [/founditems] >>>>> [/search] >>>>> [/formvariables] >>>>>=20 >>>>> [!] include this file at the top of every page to block hacking = when a context name appears as a formvariable name [/!] >>>>> --------------------------------------------------------- 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 Bug Reporting: = support@webdna.us >>>>=20 >>>> --------------------------------------------------------- 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 Bug Reporting: = support@webdna.us >>>>=20 >>>> --------------------------------------------------------- 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 Bug Reporting: = support@webdna.us >>>=20 >>> --------------------------------------------------------- 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 Bug Reporting: = support@webdna.us >>>=20 >>> --------------------------------------------------------- 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 Bug Reporting: = support@webdna.us >>=20 >> --------------------------------------------------------- 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 Bug Reporting: = support@webdna.us >=20 > --------------------------------------------------------- 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 Bug Reporting: = support@webdna.us --Apple-Mail=_54B7A801-BE70-4437-9333-29A98EE22265 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=iso-8859-1
On 2013-09-11, at 9:49 PM, WebDNA <webdna@idfk.com.au> = wrote:

Just = off the top of my head .......

What if you just = disallowed all commands in the prefs = ?

'!' is not a command. =   

Neither is 'Capitalize'. =  

Etc.


Or update the = WebDNA version to the one that fixed the problem = .....

yes = ^^^




Regards

Stuart = Tremain
IDFK Web Developments
AUSTRALIA




On 12/09/2013, at 11:46 AM, John Butler <govinda.webdnatalk@gmail.com<= /a>> wrote:

Here is a version Donovan posted I think in Sept. = 2011.

-------------------------------------------= --------------------------------------------------------------------------= -----------------------

[formvariables = name=3Dtext][redirect = url=3Dindex.html][/formvariables]
[text]t_commands=3D|[url]![/ur= l]|addfields|addlineitem|append|appendfile|applescript|arrayget|arrayset|a= uthenticate|boldwords|browsername|calcfilecrc32|capitalize|cart|case|clear= lineitems|closedatabase|command|commitdatabase|convertchars|convertwords|c= opyfile|copyfolder|countchars|countwords|createfolder|date|ddeconnect|ddes= end|decrypt|delete|deletefile|deletefolder|dos|elapsedtime|else|encrypt|ex= clusivelock|filecompare|fileinfo|findstring|flushcache|flushdatabases|form= at|format|formvariables|founditems|freememory|function|getchars|getcookie|= getmimeheader|grep|hideif|html1|html2|html3|httpmethod|if|include|input|in= terpret|ipaddress|issecureclient|lastautonumner|lastrandom|lineitems|listc= hars|listcookies|listdatabases|listfields|listfiles|listmimeheaders|listpa= th|listvariables|listwords|lookup|lookup|loop|lowercase|math|middle|movefi= le|object|orderfile|password|platform|product|protect|purchase|random|raw|= redirect|referrer|removehtml|removelineitem|replace|replacefounditems|retu= rn|returnraw|scope|search|sendmail|setcookie|setheader|setlineitem|setmime= header|shell|showif|shownext|spawn|sql|sql|sqlconnect|sqldisconnect|sqlexe= cute|sqlinfo|sqlrelease|sqlresult|switch|table|tcpconnect|tcpsend|then|thi= surl|time|unurl|uppercase|url|username|validcard|version|waitforfile|write= file|xmlnode|xmlnodes|xmlnodesattributes|xmlparse|xsl|xslt|[/text]
[formvariables]
[showif = [t_commands]^|[url][name][/url]|]
[redirect = url=3Dindex.html]
= [/showif]
[/formvariables]


<= /div>
----------------------------------------------------------------= --------------------------------------------------------------------------= --

The version you posted that started this = thread looked fine, too, at first glance. =   

-G



On 2013-09-11, at 9:34 PM, Steve Graham = <skgrahamjr@gmail.com> = wrote:

> Many of us placed other code to = prevent this hole in the webdna pre-parse script.

Can you = send it to me or post here?






On Wed, Sep 11, 2013 at 6:57 PM, John Butler <govinda.webdnatalk@gmail.com> = wrote:
yes, it seems the coder was = preventing the very thing I mentioned in my last post on this = thread.

-G


On 2013-09-11, at 7:54 = PM, Steve Graham <skgrahamjr@gmail.com> wrote:

This is = noHack.db:

contextName
!
addfields
addlineitem
appendappendfile
applescript
arrayget
arrayset
authenticate
bol= dwords
browsername
calcfilecrc32
capitalize
= case
clearlineitems
closedatabase
command
commitdatabase
co= nvertchars
convertwords
copyfile
copyfolder
countchars
coun= twords
createfolder
date
ddeconnect
ddesend
decrypt
dele= te
= deletefile
deletefolder
dos
elapsedtime
else
encrypt
exc= lusivelock
filecompare
fileinfo
findstring
flushcache
flush= databases
format
format
formvariables
founditems
freememory=
= function
getchars
getcookie
getmimeheader
grep
hideif
ht= ml1
html2
html3
httpmethod
if
include
input
interpret=
ipaddress
issecureclient
lastautonumner
lastrandom
lineite= ms
= listchars
listcookies
listdatabases
listfields
listfiles
li= stmimeheaders
listpath
listvariables
listwords
lookup
looku= p
loop
lowercase
math
middle
movefile
object
orderfil= e
= password
platform
product
protect
purchase
random
rawredirect
referrer
removehtml
removelineitem
replace
replac= efounditems
return
returnraw
scope
search
sendmail
setco= okie
= setheader
setlineitem
setmimeheader
shell
showif
shownextspawn
sql
sql
sqlconnect
sqldisconnect
sqlexecute
sqli= nfo
sqlrelease
sqlresult
switch
table
tcpconnect
tcpsend=
= text
then
thisurl
time
unurl
uppercase
url
usernamevalidcard
version
version
waitforfile
writefile
xmlnodexmlnodes
xmlnodesattributes
xmlparse
xsl
xslt


On Wed, Sep 11, 2013 at 6:42 PM, = Donovan Brooke <dbrooke@webdna.us> wrote:
Steve,
It appears the original coder was trying to stop anyone from = trying a context in the URL... however, I'm not sure why that would be = desired. We don't know the contents of "noHack.db" so we can't tell you = exactly what the coder was trying to protect the site from.
=
Donovan
 
 
--- Original message ---
Subject: = [WebDNA] Stop hacking
From: Steve Graham <skgrahamjr@gmail.com>
To: <talk@webdna.us>
Date: Wednesday, = 11/09/2013 3:53 PM

I found this code in a webdna site I am = fixing.  Someone please say if this is necessary or recommended to = stop hackers in v7.x or v6.2.1:

[formvariables]
[search = db=3DnoHack.db&eqcontextNamedatarq=3D[url][name][/url]]
[founditems= ]
[redirect = /]
[/founditems]
[/search]
[/formvariables]

[!] include = this file at the top of every page to block hacking when a context name = appears as a formvariable name [/!]
--------------------------------------------------------- = This message is sent to you because you are subscribed to the mailing = list <talk@webdna.us>. To unsubscribe, E-mail to: = <talk-leave@webdna.us>archives: http://mail.webdna.us/list/talk@webdna.us Bug = Reporting: support@webdna.us

--------------------------------------------------------- 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 Bug Reporting: support@webdna.us

= --------------------------------------------------------- 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 Bug Reporting: support@webdna.us
--------------------------------------------------------- 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 Bug Reporting: support@webdna.us

=
--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/l= ist/talk@webdna.us Bug Reporting: support@webdna.us

--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/l= ist/talk@webdna.us Bug Reporting: support@webdna.us
--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/l= ist/talk@webdna.us Bug Reporting: support@webdna.us
= --Apple-Mail=_54B7A801-BE70-4437-9333-29A98EE22265-- John Butler

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:

PC Auth Hub+Merchant (1998) return missing item (was:WebCat Sales) (1997) Pithy questions on webcommerce & siteedit (1997) [OT] Getting a domain listening on port 443 and port80? (2003) Try not to laugh (2007) Country & Ship-to address & other fields ? (1997) talk list (2000) bcc and sendmail (2001) Date Time Oddness (1999) Non WebDNA forms and timed popups... (2002) Formating found categories (1997) tcpconnect timeout with Authorizenet (2003) WebCat2 beta 11 - new prefs ... (1997) CAlendar (2003) Download URL & access on the fly ? (1997) [include ...] behavior (1997) Documentation Feedback (1997) [WebDNA] Ubuntu 16.04.4 LTS (2018) Keep away (1997) default error on NT? (1997)