TYPO3Jack.net - Das TYPO3 Mailinglist Forum Archiv

Die TYPO3 Mailingliste - nicht fragen: lesen!

[TYPO3] suggestions on form submit

This is a discussion on [TYPO3] suggestions on form submit within the typo3-english@lists.netfielders.de forums, part of the TYPO3-Mailinglists: ENGLISH category; Hello all, We created a simple extension with kickstarter and added custom code to it. Everything seems to work fine ...


Zurück   TYPO3Jack.net - Das TYPO3 Mailinglist Forum Archiv > TYPO3-Mailinglists: ENGLISH > typo3-english@lists.netfielders.de

Registrieren Hilfe Benutzerliste Kalender Suchen Heutige Beiträge Alle Foren als gelesen markieren
  #1  
Alt 03.06.2007, 01:21
M.Couperus
Gast
 
Beiträge: n/a
Standard [TYPO3] suggestions on form submit

Hello all,

We created a simple extension with kickstarter and added custom code to it.
Everything seems to work fine except for one detail with which I'm not
happy. One of our PHP developers decided to submit the form to itself.
Normally I would post the form to a handler which checks the submitted data
and then submits this data (if the data adhered to specified rules) to the
database. As far as I know (in theory) this should be more secure. But how
to do this? Personally I'm not that advanced in PHP programming and TYPO3
and so I would post to -- for example-- 'process.php'. This wouldn't work
in our case because I want to 'echo' the submitted data again to the user
without leaving the location in the CMS. In addition it would be vulnerable
to sql injections because it would be wide open to the internet i.e. (post
to www.domain.com/process.php)

So the question: "How to process form data in typo3 effective and secure?"

Thanks in advance.

Regards,

Marco
_______________________________________________
TYPO3-english mailing list
TYPO3-english (AT) lists (DOT) netfielders.de
http://lists.netfielders.de/cgi-bin/.../typo3-english
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #2  
Alt 03.06.2007, 01:28
Ries van Twisk
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] suggestions on form submit

hey,

in typo3 you kost to the system. And when your form is setup correctly
you will find the posted variables back in $this -> pivars['...'];

Then you can do your post processing, accept the values and do
something with them,
or show the form again and fill in the inputs.

Just make sure you understand how to setup forms and how to
create correct post/get names.

Ries

On Jun 2, 2007, at 6:21 PM, M.Couperus wrote:

> Hello all,
>
> We created a simple extension with kickstarter and added custom
> code to it.
> Everything seems to work fine except for one detail with which I'm not
> happy. One of our PHP developers decided to submit the form to itself.
> Normally I would post the form to a handler which checks the
> submitted data
> and then submits this data (if the data adhered to specified rules)
> to the
> database. As far as I know (in theory) this should be more secure.
> But how
> to do this? Personally I'm not that advanced in PHP programming
> and TYPO3
> and so I would post to -- for example-- 'process.php'. This
> wouldn't work
> in our case because I want to 'echo' the submitted data again to
> the user
> without leaving the location in the CMS. In addition it would be
> vulnerable
> to sql injections because it would be wide open to the internet
> i.e. (post
> to www.domain.com/process.php)
>
> So the question: "How to process form data in typo3 effective and
> secure?"
>
> Thanks in advance.
>
> Regards,
>
> Marco
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english (AT) lists (DOT) netfielders.de
> http://lists.netfielders.de/cgi-bin/.../typo3-english


--
Ries van Twisk
Freelance Typo3 Developer
email: ries (AT) vantwisk (DOT) nl
web: http://www.rvantwisk.nl/
skype: callto://r.vantwisk




_______________________________________________
TYPO3-english mailing list
TYPO3-english (AT) lists (DOT) netfielders.de
http://lists.netfielders.de/cgi-bin/.../typo3-english
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #3  
Alt 03.06.2007, 14:08
M.Couperus
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] suggestions on form submit

Hi,

So posting them to an array soemwhere in typo3 system if I understand you
correctly. Then getting those values with another php script. But as the
form is not iniating the 'get' script how to process the data?

What would be the best place in typo3 to post such data and how do I
initiate the new script? The script must display the posted form again and
if the data adhered to my specified rules it should be posted to the
database?

Thanks in adavance!

Marco


On 6/3/07, Ries van Twisk <typo3 (AT) rvt (DOT) dds.nl> wrote:
>
> hey,
>
> in typo3 you kost to the system. And when your form is setup correctly
> you will find the posted variables back in $this -> pivars['...'];
>
> Then you can do your post processing, accept the values and do
> something with them,
> or show the form again and fill in the inputs.
>
> Just make sure you understand how to setup forms and how to
> create correct post/get names.
>
> Ries
>
> On Jun 2, 2007, at 6:21 PM, M.Couperus wrote:
>
> > Hello all,
> >
> > We created a simple extension with kickstarter and added custom
> > code to it.
> > Everything seems to work fine except for one detail with which I'm not
> > happy. One of our PHP developers decided to submit the form to itself.
> > Normally I would post the form to a handler which checks the
> > submitted data
> > and then submits this data (if the data adhered to specified rules)
> > to the
> > database. As far as I know (in theory) this should be more secure.
> > But how
> > to do this? Personally I'm not that advanced in PHP programming
> > and TYPO3
> > and so I would post to -- for example-- 'process.php'. This
> > wouldn't work
> > in our case because I want to 'echo' the submitted data again to
> > the user
> > without leaving the location in the CMS. In addition it would be
> > vulnerable
> > to sql injections because it would be wide open to the internet
> > i.e. (post
> > to www.domain.com/process.php)
> >
> > So the question: "How to process form data in typo3 effective and
> > secure?"
> >
> > Thanks in advance.
> >
> > Regards,
> >
> > Marco
> > _______________________________________________
> > TYPO3-english mailing list
> > TYPO3-english (AT) lists (DOT) netfielders.de
> > http://lists.netfielders.de/cgi-bin/.../typo3-english

>
> --
> Ries van Twisk
> Freelance Typo3 Developer
> email: ries (AT) vantwisk (DOT) nl
> web: http://www.rvantwisk.nl/
> skype: callto://r.vantwisk
>
>
>
>
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english (AT) lists (DOT) netfielders.de
> http://lists.netfielders.de/cgi-bin/.../typo3-english
>

_______________________________________________
TYPO3-english mailing list
TYPO3-english (AT) lists (DOT) netfielders.de
http://lists.netfielders.de/cgi-bin/.../typo3-english
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #4  
Alt 03.06.2007, 14:41
Oliver Rowlands
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] suggestions on form submit

Hi Marco,

I think you need to read up on Typo3 extension development as you seem
to have a lack of understanding of the basic concepts. There is basic
extension development tutorial available on Typo3.org:

http://typo3.org/documentation/docum...ic/0.0.8/view/

You might also want to have a look at how other extensions work - maybe
try finding one which provides similar functionality to the one are
trying to create and use it as a starting point.

It is a flawed misconception to think that 'submitting data to a handler
is safer than submitting data to itself' as this is makes no difference
whatsoever when it comes to 'security'.

In most cases securing PHP forms all comes down to how you handle
incoming requests, data validation & sanitisation and how this data then
interacts with your database or model. Whether this logic is in the same
controller which generates your form or a separate one is completely
irrelevant.

Hope this help,

Oliver

M.Couperus wrote:
> Hi,
>
> So posting them to an array soemwhere in typo3 system if I understand you
> correctly. Then getting those values with another php script. But as the
> form is not iniating the 'get' script how to process the data?
>
> What would be the best place in typo3 to post such data and how do I
> initiate the new script? The script must display the posted form again and
> if the data adhered to my specified rules it should be posted to the
> database?
>
> Thanks in adavance!
>
> Marco
>
>
> On 6/3/07, Ries van Twisk <typo3 (AT) rvt (DOT) dds.nl> wrote:
>>
>> hey,
>>
>> in typo3 you kost to the system. And when your form is setup correctly
>> you will find the posted variables back in $this -> pivars['...'];
>>
>> Then you can do your post processing, accept the values and do
>> something with them,
>> or show the form again and fill in the inputs.
>>
>> Just make sure you understand how to setup forms and how to
>> create correct post/get names.
>>
>> Ries
>>
>> On Jun 2, 2007, at 6:21 PM, M.Couperus wrote:
>>
>> > Hello all,
>> >
>> > We created a simple extension with kickstarter and added custom
>> > code to it.
>> > Everything seems to work fine except for one detail with which I'm not
>> > happy. One of our PHP developers decided to submit the form to itself.
>> > Normally I would post the form to a handler which checks the
>> > submitted data
>> > and then submits this data (if the data adhered to specified rules)
>> > to the
>> > database. As far as I know (in theory) this should be more secure.
>> > But how
>> > to do this? Personally I'm not that advanced in PHP programming
>> > and TYPO3
>> > and so I would post to -- for example-- 'process.php'. This
>> > wouldn't work
>> > in our case because I want to 'echo' the submitted data again to
>> > the user
>> > without leaving the location in the CMS. In addition it would be
>> > vulnerable
>> > to sql injections because it would be wide open to the internet
>> > i.e. (post
>> > to www.domain.com/process.php)
>> >
>> > So the question: "How to process form data in typo3 effective and
>> > secure?"
>> >
>> > Thanks in advance.
>> >
>> > Regards,
>> >
>> > Marco
>> > _______________________________________________
>> > TYPO3-english mailing list
>> > TYPO3-english (AT) lists (DOT) netfielders.de
>> > http://lists.netfielders.de/cgi-bin/.../typo3-english

>>
>> --
>> Ries van Twisk
>> Freelance Typo3 Developer
>> email: ries (AT) vantwisk (DOT) nl
>> web: http://www.rvantwisk.nl/
>> skype: callto://r.vantwisk
>>
>>
>>
>>
>> _______________________________________________
>> TYPO3-english mailing list
>> TYPO3-english (AT) lists (DOT) netfielders.de
>> http://lists.netfielders.de/cgi-bin/.../typo3-english
>>



--
Oliver Rowlands
:: Liquid Light ::

E - oliver (AT) liquidlight (DOT) co.uk
W - http://www.liquidlight.co.uk

T - 00 44 (0)845 6 58 88 35
F - 00 44 (0)845 6 58 44 35
_______________________________________________
TYPO3-english mailing list
TYPO3-english (AT) lists (DOT) netfielders.de
http://lists.netfielders.de/cgi-bin/.../typo3-english
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
 

Themen-Optionen Thema durchsuchen
Thema durchsuchen:

Erweiterte Suche
Ansicht Thema bewerten
Thema bewerten:

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are an


Ähnliche Themen

Thema Autor Forum Antworten Letzter Beitrag
[TYPO3-dev] [TYPO3-content-rendering] Fancy form fields - THEsolution for the TYPO3 FORM element?! Ingo Renner typo3-dev@lists.netfielders.de 1 31.05.2007 18:35
[TYPO3] tmail submit causing indexed sarch to submit... Andrew Davis typo3-english@lists.netfielders.de 2 24.05.2007 00:20
[TYPO3] Suggestions needed for extensions to handle articles etc. Simon Stieper typo3-english@lists.netfielders.de 0 06.02.2007 10:54
[TYPO3-dev] Submit of BE form which is filled with JS (AJAX) doesnot work as expected - fields are empty Patrick Schuster typo3-dev@lists.netfielders.de 1 09.01.2007 15:05
[TYPO3] mail form Allen typo3-english@lists.netfielders.de 1 12.12.2006 13:24


Alle Zeitangaben in WEZ +1. Es ist jetzt 23:51 Uhr.


Powered by vBulletin® Version 3.7.2 (Deutsch)
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74