projects
/
osm
/
NBI.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a8ba45a
)
Fix bug 1593 - Can not create Openstack vim due to special characters in username
60/11060/1
author
sousaedu
<eduardo.sousa@canonical.com>
Mon, 12 Jul 2021 08:21:06 +0000
(10:21 +0200)
committer
sousaedu
<eduardo.sousa@canonical.com>
Mon, 12 Jul 2021 08:21:15 +0000
(10:21 +0200)
I've checked the code in common and in NBI to see if there was a
possible vector for NoSQL Injection and there wasn't.
Change-Id: I9f1626f8d943999d94d82444aec12efa0f66ddc7
Signed-off-by: sousaedu <eduardo.sousa@canonical.com>
osm_nbi/validation.py
patch
|
blob
|
history
diff --git
a/osm_nbi/validation.py
b/osm_nbi/validation.py
index
de8f913
..
9bc2624
100644
(file)
--- a/
osm_nbi/validation.py
+++ b/
osm_nbi/validation.py
@@
-448,7
+448,7
@@
vim_account_edit_schema = {
# "vim_url_admin": description_schema,
# "vim_tenant": name_schema,
"vim_tenant_name": name_schema,
- "vim_user": s
hortname
_schema,
+ "vim_user": s
tring
_schema,
"vim_password": passwd_schema,
"config": {"type": "object"}
},
@@
-471,7
+471,7
@@
vim_account_new_schema = {
# "vim_url_admin": description_schema,
# "vim_tenant": name_schema,
"vim_tenant_name": name_schema,
- "vim_user": s
hortname
_schema,
+ "vim_user": s
tring
_schema,
"vim_password": passwd_schema,
"config": {"type": "object"}
},