aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKrayon <krayon.git@qdnx.org>2022-02-01 02:13:19 +1100
committerDaniel Lange <DLange@git.local>2023-01-09 19:31:43 +0100
commite6dce5f55626d47bcdb48786cd67ac45c9006121 (patch)
tree3dc38ef69eb5fd387a557601d0c2e5c985631714
parent6d2313d3a26269e4d49084bbd038855bd74a2309 (diff)
downloadstikked-fit-e6dce5f55626d47bcdb48786cd67ac45c9006121.tar.gz
stikked-fit-e6dce5f55626d47bcdb48786cd67ac45c9006121.tar.bz2
stikked-fit-e6dce5f55626d47bcdb48786cd67ac45c9006121.zip
Corrected XSS vuln in title param
( reported in https://github.com/claudehohl/Stikked/issues/556 )
-rw-r--r--htdocs/themes/bootstrap/views/defaults/paste_form.php3
-rw-r--r--htdocs/themes/cleanwhite/views/defaults/paste_form.php3
-rw-r--r--htdocs/themes/default/views/defaults/paste_form.php3
-rw-r--r--htdocs/themes/geocities/views/defaults/paste_form.php3
-rw-r--r--htdocs/themes/i386/views/defaults/paste_form.php3
-rw-r--r--htdocs/themes/stikkedizr/views/defaults/paste_form.php3
6 files changed, 12 insertions, 6 deletions
diff --git a/htdocs/themes/bootstrap/views/defaults/paste_form.php b/htdocs/themes/bootstrap/views/defaults/paste_form.php
index 07fd4a2..9cc9fed 100644
--- a/htdocs/themes/bootstrap/views/defaults/paste_form.php
+++ b/htdocs/themes/bootstrap/views/defaults/paste_form.php
@@ -24,7 +24,8 @@
<label for="title">
<?php echo lang('paste_title'); ?>
</label>
- <input value="<?php if(isset($title_set)){ echo $title_set; }?>" class="span3" type="text" id="title" name="title" tabindex="2" maxlength="50" />
+ <?php $set = array('name' => 'title', 'id' => 'title', 'class' => 'span3', 'value' => (isset($title_set) ? $title_set : ''), 'maxlength' => '50', 'tabindex' => '2');
+ echo form_input($set);?>
</div>
<div class="span3">
<label for="lang">
diff --git a/htdocs/themes/cleanwhite/views/defaults/paste_form.php b/htdocs/themes/cleanwhite/views/defaults/paste_form.php
index 3d0adfb..7782d64 100644
--- a/htdocs/themes/cleanwhite/views/defaults/paste_form.php
+++ b/htdocs/themes/cleanwhite/views/defaults/paste_form.php
@@ -29,7 +29,8 @@
<span class="instruction"><?php echo lang('paste_title_desc'); ?></span>
</label>
- <input value="<?php if(isset($title_set)){ echo $title_set; }?>" type="text" id="title" name="title" tabindex="2" maxlength="50" />
+ <?php $set = array('name' => 'title', 'id' => 'title', 'value' => (isset($title_set) ? $title_set : ''), 'maxlength' => '50', 'tabindex' => '2');
+ echo form_input($set);?>
</div>
<div class="item last">
diff --git a/htdocs/themes/default/views/defaults/paste_form.php b/htdocs/themes/default/views/defaults/paste_form.php
index 51db9b9..86ef9e0 100644
--- a/htdocs/themes/default/views/defaults/paste_form.php
+++ b/htdocs/themes/default/views/defaults/paste_form.php
@@ -26,7 +26,8 @@
<label for="title"><?php echo lang('paste_title'); ?>
<span class="instruction"><?php echo lang('paste_title_desc'); ?></span>
</label>
- <input value="<?php if(isset($title_set)){ echo $title_set; }?>" type="text" id="title" name="title" tabindex="2" maxlength="50" />
+ <?php $set = array('name' => 'title', 'id' => 'title', 'value' => (isset($title_set) ? $title_set : ''), 'maxlength' => '50', 'tabindex' => '2');
+ echo form_input($set);?>
</div>
<div class="item last">
diff --git a/htdocs/themes/geocities/views/defaults/paste_form.php b/htdocs/themes/geocities/views/defaults/paste_form.php
index a426630..a29440c 100644
--- a/htdocs/themes/geocities/views/defaults/paste_form.php
+++ b/htdocs/themes/geocities/views/defaults/paste_form.php
@@ -29,7 +29,8 @@
<?php echo lang('paste_title'); ?>
</label>
- <input value="<?php if(isset($title_set)){ echo $title_set; }?>" class="span3" type="text" id="title" name="title" tabindex="2" maxlength="50" />
+ <?php $set = array('name' => 'title', 'id' => 'title', 'class' => 'span3', 'value' => (isset($title_set) ? $title_set : ''), 'maxlength' => '50', 'tabindex' => '2');
+ echo form_input($set);?>
</div>
<div class="span3">
diff --git a/htdocs/themes/i386/views/defaults/paste_form.php b/htdocs/themes/i386/views/defaults/paste_form.php
index c2c36f6..3433902 100644
--- a/htdocs/themes/i386/views/defaults/paste_form.php
+++ b/htdocs/themes/i386/views/defaults/paste_form.php
@@ -29,7 +29,8 @@
<?php echo lang('paste_title'); ?>
</label>
- <input value="<?php if(isset($title_set)){ echo $title_set; }?>" class="span3" type="text" id="title" name="title" tabindex="2" maxlength="50" />
+ <?php $set = array('name' => 'title', 'id' => 'title', 'class' => 'span3', 'value' => (isset($title_set) ? $title_set : ''), 'maxlength' => '50', 'tabindex' => '2');
+ echo form_input($set);?>
</div>
<div class="span3">
diff --git a/htdocs/themes/stikkedizr/views/defaults/paste_form.php b/htdocs/themes/stikkedizr/views/defaults/paste_form.php
index 594bebb..4bb844b 100644
--- a/htdocs/themes/stikkedizr/views/defaults/paste_form.php
+++ b/htdocs/themes/stikkedizr/views/defaults/paste_form.php
@@ -28,7 +28,8 @@
<label for="title">
<i class="fa fa-flag"></i> <?php echo lang('paste_title'); ?>
</label>
- <input value="<?php if(isset($title_set)){ echo $title_set; }?>" class="form-control" type="text" id="title" name="title" tabindex="2" maxlength="50" />
+ <?php $set = array('name' => 'title', 'id' => 'title', 'class' => 'form-control', 'value' => (isset($title_set) ? $title_set : ''), 'maxlength' => '50', 'tabindex' => '2');
+ echo form_input($set);?>
</div>
<div class="col-3 col-sm-12 col-lg-3">

© 2014-2024 Faster IT GmbH | imprint | privacy policy