当前位置:网站首页>The "&" character will destroy the data stored in the web The "&" character breaks passwords that are stored in the web config
The "&" character will destroy the data stored in the web The "&" character breaks passwords that are stored in the web config
2022-06-25 06:24:00 【Bustling city 】
problem :
I have an ASP.NET MVC3 C# .NET Application running on IIS 7.5. I have one in IIS 7.5 Running on ASP.NET MVC3 C#.NET Applications .
We have a Windows NT service account we Impersonate in our code in order to read/write documents to a file share. We simulated a in the code Windows NT Service account , To read the document / Write to file share .The user id is compiled in the code and the service account password is stored in the web.config file. user ID Compile... In code , The service account password is stored in web.config In file .
The password contains an ampersand character (ie: p&ssword ). Password contains & Symbol ( namely : p&ssword ).
This broke the site. This breaks the website .When accessing the site we received this error :"Sorry, an error occurred while processing your request". When visiting the website , We received this error :“ I'm sorry , An error occurred while processing your request ”.
Here is the code that uses the password: Here is the code to use the password :
var password = ConfigurationManager.AppSettings.Get(Common.SVC_PWD); bool isSuccess = LogonUser( @"my_svc_acct", "my.domain.net", password, LOGON32_LOGON_NEW_CREDENTIALS, LOGON32_PROVIDER_DEFAULT, ref token );Why would this cause the site to break? Why does it cause website disruption ?
Solution :
Reference resources : https://stackoom.com/en/question/zIBc边栏推荐
- General test point ideas are summarized and shared, which can be directly used in interview and actual software testing
- Find command – find and search for files
- 3-7sql injection website instance step 3: attack type and attack strategy
- [v2.0] automatic update system based on motion step API (support disconnection reconnection and data compensation)
- After five years of software testing in ByteDance, I was dismissed in December to remind my brother of paddling
- Global and Chinese kaolin market operation scale and investment development proposal report 2022
- Mongodb delete data
- An easy problem
- Rational investment and internationalism
- How to use asemi FET 7n80 and how to use 7n80
猜你喜欢
![[data visualization application] draw spatial map (with R language code)](/img/2d/04e5015573d10bdd6325ae497bfeb3.jpg)
[data visualization application] draw spatial map (with R language code)

C switch nested syntax

DNS domain name system

Add the author watermark plugin v1.4 update to the posts of elegant grass discuz plugin - some forums post errors and bugs have been fixed

JS dynamic table creation

MySQL uses the where condition to find strange results: solve

Hands on deep learning (III)

Face++ realizes face detection by flow

Es11 new methods: dynamic import(), bigint, globalthis, optional chain, and null value merging operator

How to use asemi FET 7n80 and how to use 7n80
随机推荐
Research Report on investment share and application prospect of 1,3-propanediol (PDO) industry in the world and China 2022
What elements are indispensable for the development of the character? What are the stages
Kotlin reflection -- Notes
Hands on deep learning (III)
Noi Mathematics: Dirichlet convolution
C switch nested syntax
Research Report on brand strategic management and marketing trends in the global and Chinese preserved fruit market 2022
Netstat command – displays network status
CTFSHOW
A + B Again
The elephant turns around and starts the whole body. Ali pushes Maoxiang not only to Jingdong
Mongodb basic concept learning - Documentation
MV command – move or rename files
JS to determine whether an element exists in the array (four methods)
Mongodb delete data
Advantages and disadvantages of using SNMP and WMI polling
Cnpm installation
Explain @builder usage
Highway
Go uses channel to control concurrency