diff -u mahara-1.0.9/debian/changelog mahara-1.0.9/debian/changelog --- mahara-1.0.9/debian/changelog +++ mahara-1.0.9/debian/changelog @@ -1,3 +1,10 @@ +mahara (1.0.9-2ubuntu0.4) jaunty; urgency=low + + * SECURITY UPDATE: cross-site scripting vulnerabilities (LP: #390471) + - debian/patches/XSS_escaping.dpatch: fix from upstream + + -- Francois Marier Mon, 22 Jun 2009 15:04:27 +1200 + mahara (1.0.9-2ubuntu0.3) jaunty; urgency=low * SECURITY UPDATE: cross-site scripting vulnerabilities in user profile diff -u mahara-1.0.9/debian/patches/00list mahara-1.0.9/debian/patches/00list --- mahara-1.0.9/debian/patches/00list +++ mahara-1.0.9/debian/patches/00list @@ -2,0 +3 @@ +XSS_escaping.dpatch only in patch2: unchanged: --- mahara-1.0.9.orig/debian/patches/XSS_escaping.dpatch +++ mahara-1.0.9/debian/patches/XSS_escaping.dpatch @@ -0,0 +1,46 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## XSS_escaping.dpatch by Francois Marier +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Multiple XSS vulnerabilities + +@DPATCH@ +diff --git a/htdocs/artefact/file/theme/default/folder_render_self.tpl b/htdocs/artefact/file/theme/default/folder_render_self.tpl +index 3e9427a..3f50753 100644 +--- a/htdocs/artefact/file/theme/default/folder_render_self.tpl ++++ b/htdocs/artefact/file/theme/default/folder_render_self.tpl +@@ -18,8 +18,8 @@ + + {foreach from=$children item=child} + +- {$child->artefacttype|escape} +- {$child->title} ++ {$child->artefacttype|escape} ++ {$child->title|escape} + {$child->description|escape} + {if !$simpledisplay}{$child->date}{/if} + +diff --git a/htdocs/artefact/resume/theme/default/artefactchooser-element.tpl b/htdocs/artefact/resume/theme/default/artefactchooser-element.tpl +index 56f5d21..ef18052 100644 +--- a/htdocs/artefact/resume/theme/default/artefactchooser-element.tpl ++++ b/htdocs/artefact/resume/theme/default/artefactchooser-element.tpl +@@ -5,5 +5,5 @@ + + + +- {if $artefact->description}{$artefact->description}{/if} ++ {$artefact->description|str_shorten} + +diff --git a/htdocs/theme/default/templates/view/submit.tpl b/htdocs/theme/default/templates/view/submit.tpl +index fa24eb4..f0bd075 100644 +--- a/htdocs/theme/default/templates/view/submit.tpl ++++ b/htdocs/theme/default/templates/view/submit.tpl +@@ -4,7 +4,7 @@ + {include file="columnleftstart.tpl"} +

{$heading|escape}

+
+-

{$message}

++

{$message|escape}

+ {$form} +
+ {include file="columnleftend.tpl"}