Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-workflow
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
project-open
intranet-workflow
Commits
f1b6879d
Commit
f1b6879d
authored
May 23, 2011
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Workflow:
Fixed XSS issue
parent
f7eee438
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
intranet-workflow-procs.tcl
tcl/intranet-workflow-procs.tcl
+11
-0
No files found.
tcl/intranet-workflow-procs.tcl
View file @
f1b6879d
...
...
@@ -1073,6 +1073,17 @@ ad_proc -public im_workflow_home_inbox_component {
for
{
set i 0
}
{
$i
<
$form
_vars_size
}
{
incr i
}
{
set key
[
ns_set key
$form
_vars
$i
]
if
{
""
==
$key
}
{
continue
}
# Security check for cross site scripting
if
{
!
[
regexp
{
^
[
a-zA-Z0-9_
\-
]
*$
}
$key
]}
{
im_security_alert
\
-location im_workflow_home_inbox_component
\
-message
"Invalid URL var characters"
\
-value
[
ns_quotehtml
$key
]
# Quote the harmful keys
regsub -all
{[
^a-zA-Z0-9_
\-
]}
$key
"_"
key
}
set value
[
ns_set get
$form
_vars
$key
]
append current_url
"
$key
=
[
ns_urlencode
$value
]
"
ns_log Notice
"im_workflow_home_inbox_component: i=
$i
, key=
$key
, value=
$value
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment