月色真美是什么意思| 一一是什么意思| versus什么意思| 鸡炖什么补气血| 什么是笑气| 头晕拉肚子是什么情况| 为什么今年闰六月| 什么是强直性脊柱炎| 清炖鸡汤放什么调料| 孕囊是什么东西| 政治面貌填什么| 玻尿酸是干什么用的| 榴莲什么时候最便宜| 痔疮的症状有些什么| 毁谤是什么意思| 双侧腋下见淋巴结什么意思| 精华液是干什么的| us是什么单位| 格色是什么意思| 印度属于什么亚| 哼哼唧唧是什么生肖| 心得安又叫什么名| 什么办法退烧快| 梦见捡鸡蛋是什么意思| 相见不如怀念是什么意思| 汀是什么意思| 不撞南墙不回头是什么意思| 隆胸有什么危害和后遗症吗| 吃中药为什么要忌口| 猴和什么属相最配| 6月6号是什么日子| 卡介疫苗什么时候打| 不是月经期出血是什么原因| 对猫过敏有什么症状| 为什么北方人比南方人高| 梦见洗车是什么意思| 吃木瓜有什么好处| 什么人容易得白塞氏病| 肝脏检查挂什么科| 羊肉不能和什么食物一起吃| plump什么意思| 1.5是什么星座| 养胃吃什么食物最好| 陪跑什么意思| 呜呼哀哉什么意思| 神经性皮炎用什么药膏好| 锥切手术是什么意思| 披什么散什么| 脚趾发紫是什么原因| 教师节送什么礼物给老师| 正局级什么级别| 单纯性苔藓是什么病| 三个土是什么字| 什么洗面奶最好用排行第一| 早上八点半是什么时辰| 什么药治便秘效果最好最快| 额头长痘痘什么原因| 草莓印是什么意思| 办理身份证需要带什么| 肌酐高什么东西不能吃| 气压是什么| 宫腔内无回声区是什么意思| 11月7日是什么星座| 什么野菜降血糖| 有且仅有什么意思| 老虎的祖先是什么动物| 喘不上来气是什么原因| 苹果手机用的什么系统| 月经喝什么比较好| 百合花代表什么| 香片属于什么茶| 香蕉有什么作用与功效| 流产吃什么药| 自闭症是什么原因引起| 麻是什么植物| 吃什么对喉咙好| 打喷嚏流鼻涕吃什么药| 哒哒是什么意思| 乙肝是什么意思| 月经期间洗澡会有什么影响吗| 鸳鸯是什么意思| 可以是什么意思| 遨游是什么意思| 腮腺炎不能吃什么| 零和游戏是什么意思| 喝桦树茸有什么好处| 四肢抽搐口吐白沫是什么病| 内热是什么原因引起的怎么调理| cip是什么| 均质是什么意思| 什么是腺肌症| 一个火一个旦读什么字| 月经第三天属于什么期| 饭后呕吐是什么原因引起的| 精液是什么颜色| 两个虎念什么| 做梦梦到屎什么意思| 六月份什么星座| 两胸中间疼是什么原因| edf是什么意思| 输液葡萄糖有什么作用| 不完全性右束支传导阻滞是什么意思| 孕妇红细胞偏低是什么原因| 腰间盘突出压迫神经腿疼吃什么药| 辣椒是什么时候传入中国的| 孕妇无创检查是什么| 将军是指什么生肖| 吴承恩是什么朝代的| 什么来什么去的四字词语| 149是什么意思| 肝多发囊肿是什么意思| 骨裂吃什么药| 玉皇大帝的老婆叫什么| 乐得什么填词语| 儿郎是什么意思| 囊肿长什么样子图片| 癞蛤蟆长什么样| 什么食物含钙量最高| 59岁生日有什么讲究| 花胶和什么煲汤最适合| 撒野是什么意思| 反绒皮是什么材质| 什么烟贵| 炖鸡放什么材料| 女生来大姨妈要注意什么| 什么的雾| bgm网络语什么意思| facebook什么意思| 商数是什么意思| naomi什么意思| 吃什么药能来月经| 静脉血栓吃什么药| 禄代表什么生肖| 11.4什么星座| 羊肉和什么食物相克| 熬夜吃什么补回来| 多吃海带有什么好处和坏处| 莘莘学子是什么意思| 润滑油可以用什么代替| 洛阳有什么山| 12月21是什么星座| zf是什么意思| 肠炎吃什么消炎药| 腰疼吃点什么药| 什么是坐骨神经疼有什么症状| 财大气粗是什么意思| 类风湿关节炎不能吃什么食物| tu是什么意思| 救赎什么意思| 周公解梦梦见蛇是什么意思| 八五年属什么| 三叉神经痛看什么科| 制氧机什么牌子好| 减肥喝什么牛奶| ri是什么意思| 月经每个月都提前是什么原因| 一加是什么品牌| 什么护肤品最好用| 无名指比中指长代表什么| 缓刑什么意思| 中风吃什么药最有效| 弱冠之年是什么意思| 四川酸菜是什么菜| 妈宝男什么意思| 宫颈炎和阴道炎有什么区别| 子宫憩室有什么症状| 男生下面疼是什么原因| 见色起意是什么意思| 五塔标行军散有什么功效| 幡然是什么意思| 来月经有异味什么原因| 第一次什么感觉| 什么是压缩性骨折| 梦到和男朋友分手是什么征兆| 荷尔蒙是什么意思| 6.16是什么星座| 肺气肿挂什么科| 梦特娇属于什么档次| 名侦探柯南什么时候完结| 盗汗遗精是什么意思| 毛重是什么| 来大姨妈拉肚子是什么原因| 生长纹是什么| 咳嗽挂什么科室| 吃避孕药有什么副作用| 紫薇是什么意思| 秋高气爽是什么意思| 胆汁酸高吃什么药| 地贫是什么| 阴道炎用什么药最好| 腰椎间盘突出不能吃什么食物| 验血脂挂什么科| 鼻子经常出血是什么原因| 为什么手机打不出去电话| 鸡的五行属什么| 布洛芬过量有什么危害| 晴字五行属什么| 家门不幸是什么意思| 胃酸是什么颜色| 白带是绿色的是什么原因| ped是什么意思| 感知力是什么意思| 长长的柳条像什么| 喉咙肿大是什么原因| 过是什么结构的字| 反洗钱是什么意思| 红枣什么时候吃最好| 花指什么生肖| 金屋藏娇是什么意思| 百脚虫的出现意味什么| 甲炎是什么病| 子宫形态失常是什么意思| opo是什么意思| 百合什么时候种植最好| 大臣是什么意思| 脑供血不足有什么危害| 尿道灼热感吃什么药| 做爱吃什么药| 异麦芽酮糖醇是什么| 肝硬化前期有什么症状| 身上长小肉揪是什么原因| 慢性咽炎吃什么药好| 梦见自己生病住院了是什么意思| 炒菜放什么调料最好吃| 人参归脾丸和归脾丸有什么区别| 什么钙片补钙效果最好| 四海是什么意思| 水瓶座与什么星座最配| kda什么意思| 为什么会内分泌失调| 属猪的贵人属相是什么| 扳机点是什么意思| 湿疹是由什么引起的| 送男朋友什么礼物合适| 什么是恒牙| 什么开窍于耳| 高血糖喝什么茶好| dave是什么意思| 碧霄是什么意思| 发烧喝什么粥| 肾阳虚吃什么药最好最有效| 鱼香肉丝是什么菜系| 五花八门什么意思| 梦见猫吃老鼠什么意思| 不能吃油腻的是什么病| 孕妇建档需要什么资料| 化学专业学什么| 为什么乳头会痛| 为什么鱼和熊掌不可兼得| 放屁多是什么病的征兆| 一什么桌子| 平年是什么意思| 眼睛有血丝是什么原因| 饭圈是什么意思| 胡萝卜什么时候种| 什么叫熬夜| 孩子发烧按摩什么部位退烧| 猪肝炒什么| 番茄和西红柿有什么区别| 鲢鱼吃什么食物| 硒是什么意思| 西地那非有什么副作用| 杜甫自号什么| 小孩记忆力差是什么原因| 百度
Skip to content

各种护肤品,衣服鞋子!GAP、NB、UGG统统都到了!

Introduction

百度 而智能停车则是“智慧城市”建设的重要问题之一。

This cheat sheet provides advice for securely configuring SQL and NoSQL databases. It is designed to be used by application developers if they are responsible for managing the databases. For details about protecting against SQL Injection attacks, see the SQL Injection Prevention Cheat Sheet.

Protecting the Backend Database

The application's backend database should be isolated from other servers and only connect with as few hosts as possible. This task will depend on the system and network architecture. Consider these suggestions:

  • Disabling network (TCP) access and requiring all access is over a local socket file or named pipe.
  • Configuring the database to only bind on localhost.
  • Restricting access to the network port to specific hosts with firewall rules.
  • Placing the database server in a separate DMZ isolated from the application server.

Similar protections should protect any web-based management tools used with the database, such as phpMyAdmin.

When an application is running on an untrusted system (such as a thick-client), it should always connect to the backend through an API that can enforce appropriate access control and restrictions. Direct connections should never ever be made from a thick client to the backend database.

Implementing Transport Layer Protection

Most database default configurations start with unencrypted network connections, though some do encrypt the initial authentication (such as Microsoft SQL Server). Even if the initial authentication is encrypted, the rest of the traffic will be unencrypted and all kinds of sensitive information will be sent across the network in clear text. The following steps should be taken to prevent unencrypted traffic:

  • Configure the database to only allow encrypted connections.
  • Install a trusted digital certificate on the server.
  • The client application to connect using TLSv1.2+ with modern ciphers (e.g, AES-GCM or ChaCha20).
  • The client application to verify that the digital certificate is correct.

The Transport Layer Security Cheat Sheet contains further guidance on securely configuring TLS.

Configuring Secure Authentication

The database should always require authentication, including connections from the local server. Database accounts should be:

  • Protected with strong and unique passwords.
  • Used by a single application or service.
  • Configured with the minimum permissions required as discussed in the permissions section below.

As with any system that has its own user accounts, the usual account management processes should be followed, including:

  • Regular reviews of the accounts to ensure that they are still required.
  • Regular reviews of permissions.
  • Removing user accounts when an application is decommissioned.
  • Changing the passwords when staff leave, or there is reason to believe that they may have been compromised.

For Microsoft SQL Server, consider the use of Windows or Integrated-Authentication, which uses existing Windows accounts rather than SQL Server accounts. This also removes the requirement to store credentials in the application, as it will connect using the credentials of the Windows user it is running under. The Windows Native Authentication Plugins provides similar functionality for MySQL.

Storing Database Credentials Securely

Database credentials should never be stored in the application source code, especially if they are unencrypted. Instead, they should be stored in a configuration file that:

  • Is outside of the web root.
  • Has appropriate permissions so that it can only be read by the required user(s).
  • Is not checked into source code repositories.

Where possible, these credentials should also be encrypted or otherwise protected using built-in functionality, such as the web.config encryption available in ASP.NET.

Creating Secure Permissions

When developers are assigning permissions to database user accounts, they should employ the principle of least privilege (i.e, the accounts should only have the minimal permissions required for the application to function). This principle can be applied at a number of increasingly granular levels depending on the functionality available in the database. You can do the following in all environments:

  • Do not use the built-in root, sa or SYS accounts.
  • Do not grant the account administrative rights over the database instance.
  • Make sure the account can only connect from allowed hosts. This would often be localhost or the address of the application server.
  • The account should only access the specific databases it needs. Development, UAT and Production environments should all use separate databases and accounts.
  • Only grant the required permissions on the databases. Most applications would only need SELECT, UPDATE and DELETE permissions. The account should not be the owner of the database as this can lead to privilege escalation vulnerabilities.
  • Avoid using database links or linked servers. Where they are required, use an account that has been granted access to only the minimum databases, tables, and system privileges required.

Most security-critical applications, apply permissions at more granular levels, including:

  • Table-level permissions.
  • Column-level permissions.
  • Row-level permissions
  • Blocking access to the underlying tables, and requiring all access through restricted views.

Database Configuration and Hardening

The database server's underlying operating system should be hardened by basing the it on a secure baseline such as the CIS Benchmarks or the Microsoft Security Baselines.

The database application should also be properly configured and hardened. The following principles should apply to any database application and platform:

  • Install any required security updates and patches.
  • Configure the database services to run under a low privileged user account.
  • Remove any default accounts and databases.
  • Store transaction logs on a separate disk to the main database files.
  • Configure a regular backup of the database. Ensure that the backups are protected with appropriate permissions, and ideally encrypted.

The following sections gives some further recommendations for specific database software, in addition to the more general recommendations given above.

Hardening a Microsoft SQL Server

Hardening a MySQL or a MariaDB Server

  • Run the mysql_secure_installation script to remove the default databases and accounts.
  • Disable the FILE privilege for all users to prevent them reading or writing files.
  • See the Oracle MySQL and MariaDB hardening guides.

Hardening a PostgreSQL Server

MongoDB

Redis

boss是什么意思 做高铁不能带什么 果五行属什么 可字五行属什么 乙肝e抗体阳性什么意思
新生儿出院回家有什么讲究 噤若寒蝉是什么意思 龙配什么生肖最好 排异是什么意思 女性胆固醇高吃什么好
abo溶血是什么意思 四肢无力吃什么药 产物是什么意思 什么是蓝颜知己 沃尔玛是干什么的
狗为什么喜欢吃骨头 梦见做棺材是什么意思 蟑螂长什么样 吕洞宾是什么生肖 读书破万卷下一句是什么
喉咙不舒服是什么原因hcv9jop0ns5r.cn 金黄金黄的什么填空hcv9jop3ns8r.cn 蟹粉是什么hcv7jop9ns2r.cn 灰指甲什么症状hcv9jop3ns5r.cn 栀子花叶子发黄是什么原因hcv9jop5ns1r.cn
出虚汗是什么原因引起的怎么调理wuhaiwuya.com 树膏皮是什么皮hcv8jop9ns4r.cn 梦见家里死人了代表什么预兆hcv9jop0ns3r.cn 你是什么hcv9jop4ns7r.cn 白兰地是属于什么酒hebeidezhi.com
balenciaga是什么牌子hcv8jop8ns9r.cn pth是什么huizhijixie.com 覆水难收什么意思aiwuzhiyu.com 耿直什么意思hcv8jop6ns8r.cn 嘴唇麻木什么病兆hcv7jop6ns2r.cn
儿女双全什么意思hcv8jop3ns8r.cn 鼻塞喉咙痛吃什么药hcv7jop9ns6r.cn 爸爸的舅舅叫什么hcv7jop9ns2r.cn 朝乾夕惕什么意思hcv9jop1ns8r.cn 中国的国花是什么花hcv8jop6ns0r.cn
百度