当前位置:网站首页>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边栏推荐
- [Suanli network] problems and challenges faced by the development of Suanli network
- Which of the top ten securities companies has the lowest Commission and is the most safe and reliable? Do you know anything
- Advantages and disadvantages of using SNMP and WMI polling
- ctfshow-misc
- Highway
- Optimal Parking
- 【LeetCode】40. Combined summation II (2 strokes of wrong questions)
- Day22 send request and parameterization using JMeter
- Count the grid
- Global and Chinese kaolin market operation scale and investment development proposal report 2022
猜你喜欢
![[v2.0] automatic update system based on motion step API (support disconnection reconnection and data compensation)](/img/73/2ec957d58616d692e571a70826787f.jpg)
[v2.0] automatic update system based on motion step API (support disconnection reconnection and data compensation)

DNS domain name system

Soft exam information system project manager_ Management Science (Operations Research) -- senior information system project manager of soft test 033
![[Suanli network] problems and challenges faced by the development of Suanli network](/img/90/1d537de057113e2b4754e76746f256.jpg)
[Suanli network] problems and challenges faced by the development of Suanli network

Soft exam information system project manager_ Information system security management - Senior Information System Project Manager of soft test 026

Exercise: completion

2022 AI trend 8 forecast!

3-7sql injection website instance step 3: attack type and attack strategy

Arm register (cortex-a), coprocessor and pipeline

Asemi fast recovery diode us1m parameters, us1m recovery time, us1m voltage drop
随机推荐
[hand torn STL] Stack & queue
The e-book "action guide for large organizations to further promote zero code application platform" was officially released!
50 days countdown! Are you ready for the Landbridge cup provincial tournament?
Highway
Soft exam information system project manager_ Management Science (Operations Research) -- senior information system project manager of soft test 033
cacacahe
Investment opportunities and operational risk assessment report of China's engineering consulting industry during the 14th Five Year Plan period 2022-2028
Curl command – file transfer tool
Global and China chemical mechanical polishing abrasive materials market demand outlook and investment scale forecast report 2022 Edition
Count the grid
Netstat command – displays network status
Day21 JMeter usage basis
[kicad image] download and installation
Understand what ICMP Protocol is
Asemi fast recovery diode us1m parameters, us1m recovery time, us1m voltage drop
[open source sharing] deeply study KVM, CEPH, fuse features, including open source projects, code cases, articles, videos, architecture brain maps, etc
Global and China financial guarantee marketing strategy and channel dynamic construction report 2022
A + B Again
MySQL tuning -- 02 -- slow query log
Tablespace free space