Got it

VCM create user name problem

Created: Nov 14, 2018 08:56:54Latest reply: Nov 15, 2018 13:08:54 696 3 0 0 0
  Rewarded HiCoins: 0 (problem resolved)
System doesnot let use to add space between First and Last Name when creeating user.

Featured Answers
nianmo
Created Nov 15, 2018 13:08:54

Hi there!


To prevent SQL injection, user information is sensitive and space characters are prone to malicious operations such as obtaining user information by using the database features. For example, for a query statement like 


strSQL = "SELECT * FROM users WHERE name = '" + userName + "' and pw = '" + passWord + "';". If the user input is as follows: 


userName = "1 'OR' 1' = '1'; passWord = "1 'OR' 1' = '1'; the SQL statements are as follows: 


strSQL = "SELECT * FROM users WHERE name = '1' OR' 1' = '1' and pw =' 1' = 'OR' 1' = '1';"


Because the WHERE condition is always true, this is equivalent to the execution: 


strSQL = "SELECT * FROM users;"


Therefore, you can log in to the website without a password. If the malicious user is worse, enter the following information: 


userName = "1"; passWord = "'; DROP TABLE users;".


The SQL statement is changed to: 


strSQL = "SELECT * FROM users WHERE name = '1' and pw =' '; DROP TABLE users;". 


This way, although there is no login, the data table is deleted. The password can contain special characters because the password is generally encrypted (usually the digest algorithm of MD5). 


The password should not be saved in plain text. Not only can the security be improved, but special characters do not need to be restricted. 


Because HTML tags are not user-friendly in some places, some characters escape. Therefore, spaces are not recommended for sensitive information.

View more
  • x
  • convention:

All Answers
User name for logging in to the VCM web interface. The user name must be a string of 2 to 30 characters, consisting of digits and letters.

NOTE: The user name cannot be the same as an existing user or a deleted user.
View more
  • x
  • convention:

Hello.

Thank you for posting on our Huawei forum.

Please check the User Management chapter extracted from the VCM5010&VCM5020 Product Documentation:

http://support.huawei.com/hedex/pages/EDOC1100046496CEH10174/01/EDOC1100046496CEH10174/01/resources/en-us_topic_0077192715.html?ft=0&fe=10&hib=4.1.7.1&id=EN-US_TOPIC_0077192715&text=User%20Management&docid=EDOC1100046496
View more
  • x
  • convention:

Hi there!


To prevent SQL injection, user information is sensitive and space characters are prone to malicious operations such as obtaining user information by using the database features. For example, for a query statement like 


strSQL = "SELECT * FROM users WHERE name = '" + userName + "' and pw = '" + passWord + "';". If the user input is as follows: 


userName = "1 'OR' 1' = '1'; passWord = "1 'OR' 1' = '1'; the SQL statements are as follows: 


strSQL = "SELECT * FROM users WHERE name = '1' OR' 1' = '1' and pw =' 1' = 'OR' 1' = '1';"


Because the WHERE condition is always true, this is equivalent to the execution: 


strSQL = "SELECT * FROM users;"


Therefore, you can log in to the website without a password. If the malicious user is worse, enter the following information: 


userName = "1"; passWord = "'; DROP TABLE users;".


The SQL statement is changed to: 


strSQL = "SELECT * FROM users WHERE name = '1' and pw =' '; DROP TABLE users;". 


This way, although there is no login, the data table is deleted. The password can contain special characters because the password is generally encrypted (usually the digest algorithm of MD5). 


The password should not be saved in plain text. Not only can the security be improved, but special characters do not need to be restricted. 


Because HTML tags are not user-friendly in some places, some characters escape. Therefore, spaces are not recommended for sensitive information.

View more
  • x
  • convention:

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.