This site is the archived OWASP Foundation Wiki and is no longer accepting Account Requests.
To view the new OWASP Foundation website, please visit https://owasp.org

Difference between revisions of "Template:Top 10 2010 Developer Edition De:SubsectionAdvancedTemplate"

From OWASP
Jump to: navigation, search
m
m (checked backward compatibility with Template:Top 10 2010:SubsectionAdvancedTemplate; (>>>tbd: Replace 'Top_10_2010_Developer_Edition_De:ByTheNumbers' by new 'Top_10_2010:ByTheNumbers' before migration<<<))
Line 77: Line 77:
 
<onlyinclude> {{#ifeq: {{{type}}} | box |
 
<onlyinclude> {{#ifeq: {{{type}}} | box |
 
     {{#switch: {{{position}}}
 
     {{#switch: {{{position}}}
       | firstLeft = <!-- left half -->
+
       | firstLeft = <!-- first element: left half -->
 
               <tr>
 
               <tr>
 
               <td  
 
               <td  
Line 96: Line 96:
 
       | #default = <!-- no 'position' set yet (old style)-->
 
       | #default = <!-- no 'position' set yet (old style)-->
 
         {{#switch: {{{number}}} <!--- backward compatible for Template:Top 10 2010:SubsectionAdvancedTemplate; please do NOT use any longer --->
 
         {{#switch: {{{number}}} <!--- backward compatible for Template:Top 10 2010:SubsectionAdvancedTemplate; please do NOT use any longer --->
           | left = <!-- left half -->
+
           | left = <!-- first element: left half (=> firstLeft in new nomenclature for position!-->
 
               {{Top_10:SubsectionTableBeginTemplate|type=main}}
 
               {{Top_10:SubsectionTableBeginTemplate|type=main}}
                  </td></tr>
 
 
                   <tr>
 
                   <tr>
 
                   <td  
 
                   <td  
Line 104: Line 103:
 
                   </td>  
 
                   </td>  
 
                   <td  
 
                   <td  
           | whole =      
+
           | whole = <!-- first element with full width (=> firstWhole in new nomenclature for position!--> 
 
                   {{Top_10:SubsectionTableBeginTemplate|type=main}}
 
                   {{Top_10:SubsectionTableBeginTemplate|type=main}}
                  </td></tr>
 
 
                   <tr>
 
                   <tr>
 
                   <td  
 
                   <td  
           | 1 = <!-- number 1: Links 1. Eintrag -->
+
           | 1 = <!-- number 1: Left 1st Element  => firstLeft in new nomenclature for position!-->
 
                 {{Top_10:SubsectionTableBeginTemplate|type=main}}
 
                 {{Top_10:SubsectionTableBeginTemplate|type=main}}
 
                   <tr>
 
                   <tr>
 
                   <td  
 
                   <td  
           | 2 =  <!-- number 2: Rechts 2. Eintrag-->
+
           | 2 =  <!-- number 2: right 2nd Element => right in new nomenclature for position!-->
 
                   </td>  
 
                   </td>  
 
                   <td  
 
                   <td  
           | 3 =  <!-- number 3 Links 1. Verteidigungs-Option -->
+
           | 3 =  <!-- number 3: Links 3rd Element => left in new nomenclature for position!-->
 
                   </td></tr>
 
                   </td></tr>
 
                   <tr>
 
                   <tr>
 
                   <td  
 
                   <td  
           | 4 = <!-- 2nd defending Option 2, right -->
+
           | 4 = <!-- number 4: right 4th Element => right in new nomenclature for position!-->
 
                   </td>
 
                   </td>
 
                   <td  
 
                   <td  
Line 137: Line 135:
 
     {{#switch: {{{subsection}}}
 
     {{#switch: {{{subsection}}}
 
       | freetext=    {{{title}}}  
 
       | freetext=    {{{title}}}  
       | example=    {{Top_10:LanguageFile|text=exampleScenarios|risk={{{risk}}}|language={{{language}}}|year={{{year}}} }}
+
       | example=    {{Top_10:LanguageFile|text=exampleScenarios|language={{{language}}} }}
 
       | howPrevent=  {{Top_10:LanguageFile|text=howPrevent1|language={{{language}}} }} &apos;{{Top_10_2010_Developer_Edition_De:ByTheNumbers|{{{risk}}}|language={{{language}}}|year={{{year}}} }}&apos; {{Top_10:LanguageFile|text=howPrevent2|language={{{language}}} }}
 
       | howPrevent=  {{Top_10:LanguageFile|text=howPrevent1|language={{{language}}} }} &apos;{{Top_10_2010_Developer_Edition_De:ByTheNumbers|{{{risk}}}|language={{{language}}}|year={{{year}}} }}&apos; {{Top_10:LanguageFile|text=howPrevent2|language={{{language}}} }}
 
       | defOp=      {{Top_10:LanguageFile|text=defendingOption|language={{{language}}} }} {{{title}}} {{Top_10:LanguageFile|text=against|language={{{language}}} }} &apos;{{Top_10_2010_Developer_Edition_De:ByTheNumbers|{{{risk}}}|language={{{language}}}|year={{{year}}} }}&apos;:  
 
       | defOp=      {{Top_10:LanguageFile|text=defendingOption|language={{{language}}} }} {{{title}}} {{Top_10:LanguageFile|text=against|language={{{language}}} }} &apos;{{Top_10_2010_Developer_Edition_De:ByTheNumbers|{{{risk}}}|language={{{language}}}|year={{{year}}} }}&apos;:  
Line 148: Line 146:
 
           | right  
 
           | right  
 
           | whole={{{title}}}
 
           | whole={{{title}}}
           | 1={{Top_10:LanguageFile|text=vulnerableTo1|language={{{language}}} }} &apos;{{Top_10_2010_Developer_Edition_De:ByTheNumbers|{{{risk}}}|language={{{language}}}|year={{{year}}} }}&apos;  
+
           | 1={{Top_10:LanguageFile|text=vulnerableTo1|language={{{language}}} }} &apos;{{Top_10_2010_Developer_Edition_De:ByTheNumbers|{{{risk}}}|language={{{language}}}|year={{{year}}} }}&apos; {{Top_10:LanguageFile|text=vulnerableTo2|language={{{language}}} }}
 
           | 2={{Top_10:LanguageFile|text=howPrevent1|language={{{language}}} }} &apos;{{Top_10_2010_Developer_Edition_De:ByTheNumbers|{{{risk}}}|language={{{language}}}|year={{{year}}} }}&apos; {{Top_10:LanguageFile|text=howPrevent2|language={{{language}}} }}
 
           | 2={{Top_10:LanguageFile|text=howPrevent1|language={{{language}}} }} &apos;{{Top_10_2010_Developer_Edition_De:ByTheNumbers|{{{risk}}}|language={{{language}}}|year={{{year}}} }}&apos; {{Top_10:LanguageFile|text=howPrevent2|language={{{language}}} }}
           | 3={{Top_10:LanguageFile|text=exampleScenarios|risk={{{risk}}}|language={{{language}}}|year={{{year}}} }}
+
           | 3={{Top_10:LanguageFile|text=exampleScenarios|language={{{language}}} }}
 
           | 4={{Top_10:LanguageFile|text=references|language={{{language}}} }}
 
           | 4={{Top_10:LanguageFile|text=references|language={{{language}}} }}
 
       }}  
 
       }}  
Line 157: Line 155:
 
     {{#switch: {{{subsection}}}
 
     {{#switch: {{{subsection}}}
 
       | freetext=  {{{title}}}  
 
       | freetext=  {{{title}}}  
       | example=    {{Top_10:LanguageFile|text=exampleScenarios|risk={{{risk}}}|language={{{language}}}|year={{{year}}} }}
+
       | example=    {{Top_10:LanguageFile|text=exampleScenarios|language={{{language}}} }}
       | howPrevent= {{Top_10:LanguageFile|text=howPrevent1|language={{{language}}} }} &apos;{{Top_10_2010_Developer_Edition_De:ByTheNumbers|{{{risk}}}|language={{{language}}}|year={{{year}}} }}&apos; {{Top_10:LanguageFile|text=howPrevent2|language={{{language}}} }}
+
       | howPrevent= {{Top_10:LanguageFile|text=howPrevent1|language={{{language}}} }} &apos;{{Top_10_2010_Developer_Edition_De:ByTheNumbers|{{{risk}}}|language={{{language}}}|year={{{year}}} }}&apos {{Top_10:LanguageFile|text=howPrevent2|language={{{language}}} }}
 
       | defOp=      {{Top_10:LanguageFile|text=defendingOption|language={{{language}}} }} {{{title}}} {{Top_10:LanguageFile|text=against|language={{{language}}} }} &apos;{{Top_10_2010_Developer_Edition_De:ByTheNumbers|{{{risk}}}|language={{{language}}}|year={{{year}}} }}&apos;:
 
       | defOp=      {{Top_10:LanguageFile|text=defendingOption|language={{{language}}} }} {{{title}}} {{Top_10:LanguageFile|text=against|language={{{language}}} }} &apos;{{Top_10_2010_Developer_Edition_De:ByTheNumbers|{{{risk}}}|language={{{language}}}|year={{{year}}} }}&apos;:
 
       | userImpact= {{Top_10:LanguageFile|text=userImpact|language={{{language}}} }}
 
       | userImpact= {{Top_10:LanguageFile|text=userImpact|language={{{language}}} }}
Line 165: Line 163:
 
       | #default= <!-- no 'subsection' set yet (old style)-->
 
       | #default= <!-- no 'subsection' set yet (old style)-->
 
       {{#switch: {{{number}}} <!--- backward compatible for Template:Top 10 2010:SubsectionAdvancedTemplate; please do NOT use any longer --->
 
       {{#switch: {{{number}}} <!--- backward compatible for Template:Top 10 2010:SubsectionAdvancedTemplate; please do NOT use any longer --->
        | left
 
        | right
 
        | whole={{{title}}}
 
 
         | left  
 
         | left  
 
         | right  
 
         | right  
 
         | whole={{{title}}}
 
         | whole={{{title}}}
         | 1={{Top_10:LanguageFile|text=vulnerableTo1|language={{{language}}} }} &apos;{{Top_10_2010_Developer_Edition_De:ByTheNumbers|{{{risk}}}|language={{{language}}}|year={{{year}}} }}&apos;  
+
         | 1={{Top_10:LanguageFile|text=vulnerableTo1|language={{{language}}} }} &apos;{{Top_10_2010_Developer_Edition_De:ByTheNumbers|{{{risk}}}|language={{{language}}}|year={{{year}}} }}&apos; {{Top_10:LanguageFile|text=vulnerableTo2|language={{{language}}} }}
 
         | 2={{Top_10:LanguageFile|text=howPrevent1|language={{{language}}} }} &apos;{{Top_10_2010_Developer_Edition_De:ByTheNumbers|{{{risk}}}|language={{{language}}}|year={{{year}}} }}&apos; {{Top_10:LanguageFile|text=howPrevent2|language={{{language}}} }}
 
         | 2={{Top_10:LanguageFile|text=howPrevent1|language={{{language}}} }} &apos;{{Top_10_2010_Developer_Edition_De:ByTheNumbers|{{{risk}}}|language={{{language}}}|year={{{year}}} }}&apos; {{Top_10:LanguageFile|text=howPrevent2|language={{{language}}} }}
         | 3={{Top_10:LanguageFile|text=exampleScenarios|risk={{{risk}}}|language={{{language}}}|year={{{year}}} }}
+
         | 3={{Top_10:LanguageFile|text=exampleScenarios|language={{{language}}} }}
 
         | 4={{Top_10:LanguageFile|text=references|language={{{language}}} }}
 
         | 4={{Top_10:LanguageFile|text=references|language={{{language}}} }}
 
       }}
 
       }}
 
   }}|}}
 
   }}|}}
 
}} </onlyinclude>
 
}} </onlyinclude>

Revision as of 21:50, 11 April 2013

Usage:

  1. Start Table
    • {{Top_10:SubsectionTableBeginTemplate|type=main}} <!--- in the main page --->
    • {{Top_10:SubsectionTableBeginTemplate|type=headertab}} <!--- in the languages part, like JAVA --->
  2. hint: use 'position=firstLeft' or 'firstWhole' for the 1st element
{{Top_10_2010_Developer_Edition_De:SubsectionAdvancedTemplate  
  |type={{Top_10_2010:StyleTemplate}} <!--- => box --->
  |subsection=<defOp|example|freetext|howPrevent|references|userImpact|vulnerableTo>  
  |title=your title <!--- additional parameter for subsection=freetext or defOp (for the number) --->
  |position=<firstLeft|firstWhole|left|right|whole>  
  |risk=1 <!--- additional parameter for subsection=<defOp|example|howPrevent|vulnerableTo>:
  according to Template:Top_10_2010_Developer_Edition_De:ByTheNumbers --->
  |year=<2010|2013> <!--- changes year of the Top-10-Version for subsection=<defOp|example|howPrevent|vulnerableTo> --->
  |language=de <!--- additional parameter for all subsection-tags without fulltext --->
  according to Template:Top 10:LanguageFile --->
}}  
 outdatet:  
  |number=<1|2|3|4|left|right|whole> <!--- backward compatible for Template:Top 10 2010:SubsectionAdvancedTemplate; please do NOT use any longer --->
3. End Table
  • {{Top_10:SubsectionTableEndTemplate}} <!--- in the main page --->
  • {{Top_10_2010_Developer_Edition_De:BottomAdvancedTemplate <!--- end of the page --->
|type={{Top_10_2010:StyleTemplate}}
|useprev=PrevLink_Germany_Projekte
|prev=Top_10_fuer_Entwickler
|usenext=NextLink_Germany_Projekte
|next=Top_10_fuer_Entwickler/Die Top-10-Risiken
}}


Example:

{{Top_10:SubsectionTableBeginTemplate|type=main}} {{Top_10_2010_Developer_Edition_De:SubsectionAdvancedTemplate
|type={{Top_10_2010:StyleTemplate}}
|subsection=vulnerableTo
|position=firstLeft
|risk=1
|year=2013
|language=de
}}
1st box
{{Top_10:SubsectionTableEndTemplate}}


Bin ich durch 'Injection' verwundbar?

1st box

Wie kann ich 'Injection' verhindern?

2nd box

Mögliche Angriffsszenarien

3rd box

Referenzen

4th box

Verteidigungs-Option 1 gegen 'Injection':

5th box (big box)