security

Safe way to store mysql server credentials in flask?

被刻印的时光 ゝ 提交于 2021-02-07 19:58:05
问题 I was wondering about the safety of some thing in my app.py flask app. First the database, I'm using mysql and currently I am connecting to it in the following way: # Config MySQL app.config['MYSQL_HOST'] = 'localhost' app.config['MYSQL_USER'] = 'root' app.config['MYSQL_PASSWORD'] = 'password' app.config['MYSQL_DB'] = 'databasename' app.config['MYSQL_CURSORCLASS'] = 'DictCursor' And to me this feels very weird, just putting in your password in plain text etc. I've been searching online but

Safe way to store mysql server credentials in flask?

夙愿已清 提交于 2021-02-07 19:55:22
问题 I was wondering about the safety of some thing in my app.py flask app. First the database, I'm using mysql and currently I am connecting to it in the following way: # Config MySQL app.config['MYSQL_HOST'] = 'localhost' app.config['MYSQL_USER'] = 'root' app.config['MYSQL_PASSWORD'] = 'password' app.config['MYSQL_DB'] = 'databasename' app.config['MYSQL_CURSORCLASS'] = 'DictCursor' And to me this feels very weird, just putting in your password in plain text etc. I've been searching online but

Docker Trust Initialization

筅森魡賤 提交于 2021-02-07 19:16:26
问题 When the initial trust on docker content trust with notary on tuf is initialized I understand how TUF, Notary and Content Trust works. But what is not clear to me is, how the initial trust is setup. How do I know, that the first pull is not a compromised one and the initial root.json is trustworthy? So for example if I do docker pull with content-trust enabled, I will only get signed images. But how do I verify, that this image is signed by the right person? 回答1: Notary creator and maintainer

Why shouldn't Strong Naming be used for Security?

爷,独闯天下 提交于 2021-02-07 18:22:13
问题 I've read this claim in many places and had people tell me this directly, but I haven't been able to find a conclusive answer about the full list of reasons why a Strong Name can't be used for security. I understand the intention of the Strong Name feature is identification rather than security but I'm looking for an explanation of any security problems that can be caused by using Strong Naming for security. I'd like to know: What the CLR does out-of-the-box with respect to verifying Strong

php_admin_value disable_functions not working

故事扮演 提交于 2021-02-07 18:11:49
问题 I'm trying to disable functions, in my apache2 config file, but it's not working for some reason. I've verified that other php_admin_value settings ARE working, but it's just ignoring disable_functions Here's what I have: <Directory "/var/www/testdir/*"> php_admin_value open_basedir "/var/www/testdir" php_admin_value disable_functions "exec,shell_exec" </Directory> The open_basedir admin value is working as expected (cannot include '../something'), but yet, it will still exec ls -a .. or let

Is Path Traversal Vulnerabilities possible in my below code?

笑着哭i 提交于 2021-02-07 14:52:49
问题 Can anyone please confirm, is Path Traversal Vulnerabilities is possible in my below code snippet? if yes then what changes I should make. [RedirectingAction] public ActionResult Download(string fileName) { byte[] fileBytes = System.IO.File.ReadAllBytes(Server.MapPath("~/ClientDocument/") + fileName); return File(fileBytes, System.Net.Mime.MediaTypeNames.Application.Octet, fileName); } 回答1: Yes, it is vulnerable. Just to prove it, I set up a new MVC project called WebApplication1.sln The

Powershell Set-MpPreference -DisableRealtimeMonitoring $true not working correctly

微笑、不失礼 提交于 2021-02-07 14:38:39
问题 I must warn you I don't use powershell much. I am trying to turn off windows defender real time protection via powershell I found the command Set-MpPreference -DisableRealtimeMonitoring $true and tried it in admin privileges only to get this Set-MpPreference : Operation failed with the following error: 0x800106ba. Operation: Set-MpPreference. Target: DisableRealtimeMonitoring. At line:1 char:1 + Set-MpPreference -DisableRealtimeMonitoring $true + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Powershell Set-MpPreference -DisableRealtimeMonitoring $true not working correctly

て烟熏妆下的殇ゞ 提交于 2021-02-07 14:37:46
问题 I must warn you I don't use powershell much. I am trying to turn off windows defender real time protection via powershell I found the command Set-MpPreference -DisableRealtimeMonitoring $true and tried it in admin privileges only to get this Set-MpPreference : Operation failed with the following error: 0x800106ba. Operation: Set-MpPreference. Target: DisableRealtimeMonitoring. At line:1 char:1 + Set-MpPreference -DisableRealtimeMonitoring $true + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Wildcard searching of encrypted data in a MySQL database?

放肆的年华 提交于 2021-02-07 12:54:17
问题 I am in the process of building a small web application which will hold around 10 pieces of information for every person inserted. Due to data protection the majority of this information must be encrypted. Using the CodeIgniter framework and the CodeIgniter encryption class I can encode the information on the application side before storing it in the database. The CodeIgniter encryption class uses PHP's mcrypt function along with the AES_256 cipher. The problem I have is that I need to allow

Docker Host Security - Can container run dangerous code or change host from inside of a container?

落爺英雄遲暮 提交于 2021-02-07 12:14:18
问题 Lets say I pull a new image from a hub repository and run it without looking at the contents of the dockerfile. Can the container or image affect my host in any way possible? Please let me know because I will be running a list of images from a user inputted image names on my server. I am worried if it will affect the server/host. 回答1: With a default execution of an image, the answer is a conditional no. The kernel capabilities are limited, the filesystem is restricted, the process space is