security

Authentication failed on a specific machine via HTTPS with git bash - follow up question

可紊 提交于 2020-04-17 21:48:07
问题 With this previous answer I was able to use git clone, etc using SSH on the problematic machine. But - only on such machine - I'm still getting an error from git bash for https : $ git clone https://giuliohome:mypassword@github.com/giuliohome/MyPrivateRepo.git Cloning into 'MyPrivateRepo'... remote: Repository not found. fatal: Authentication failed for 'https://github.com/giuliohome/MyPrivateRepo.git/' I've tried to create a personal access token via github web settings and use it instead of

Information Security Encryption & Decryption Key Management - PCIDSS / PADSS Compliance

╄→尐↘猪︶ㄣ 提交于 2020-04-17 21:11:12
问题 We are going to get a Payment Gateway developed from a 3rd party and require this payment gateway to be PA-DSS and the environment to be PCI-DSS compliant. Payment Gateway will be encrypting sensitive information like (passwords, pins, credit and debit card information) and will save it into database. We require that the Key to encrypt and decrypt this information must be changed on regular basis (say quarterly). The requirement is also not to hard code this key into the code. What would be

“Zero out” sensitive String data in Swift

早过忘川 提交于 2020-04-13 18:03:16
问题 A user enters their password into a textField. I set an instance variable to this value: let password = passwordTextField.text! I want to ensure this data is not preserved anywhere, and so I want to "zero out" this data. Is this as simple as setting it to nil when I am done? Or setting it to an empty string and then nil? 回答1: These are general UI security tips (From ios 7 programming cookbook written by Vandad Nahavandipoor) • Ensure that all passwords and secure fields are entered, by the

iOS Refused to connect because it appears in neither the connect-src directive nor the default-src directive of the Content Security Policy

本小妞迷上赌 提交于 2020-04-12 09:31:49
问题 So I made a phonegap app which uses socket.io to do stuff. I have the following Content-Security-Policy (CSP) <meta http-equiv="Content-Security-Policy" content=" default-src * data: blob: ws: wss:; style-src * 'unsafe-inline'; script-src * 'unsafe-inline' 'unsafe-eval'; connect-src * ws: wss:;"> When I start the app on safari / iOS I get the following error: Refused to connect to ws://10.0.1.63:3000/socket.io/?EIO=3&transport=websocket&sid=xTaMJwP3rVy3UnIBAAAi because it appears in neither

iOS Refused to connect because it appears in neither the connect-src directive nor the default-src directive of the Content Security Policy

北战南征 提交于 2020-04-12 09:31:48
问题 So I made a phonegap app which uses socket.io to do stuff. I have the following Content-Security-Policy (CSP) <meta http-equiv="Content-Security-Policy" content=" default-src * data: blob: ws: wss:; style-src * 'unsafe-inline'; script-src * 'unsafe-inline' 'unsafe-eval'; connect-src * ws: wss:;"> When I start the app on safari / iOS I get the following error: Refused to connect to ws://10.0.1.63:3000/socket.io/?EIO=3&transport=websocket&sid=xTaMJwP3rVy3UnIBAAAi because it appears in neither

In ColdFusion How to Eliminate Vulnerable for Cross-Site Script

血红的双手。 提交于 2020-04-11 17:17:16
问题 What is the best way to stop Cross-Site Scripting for ColdFusion? Is there a setting to set in the CF Admin or is their code in you can put in Application.cfc? Example Code: http://test.com/file.cfm?center=fisCenter')" onmouseover="alert('Insert Hax Here.')" style="display:block;position:absolute;top:0;left:0;width:10000px;height:10000px;z-index:100"> 回答1: First things first: https://www.owasp.org/index.php/XSS_(Cross_Site_Scripting)_Prevention_Cheat_Sheet. OWASP has tons of resources to help

In ColdFusion How to Eliminate Vulnerable for Cross-Site Script

点点圈 提交于 2020-04-11 17:16:45
问题 What is the best way to stop Cross-Site Scripting for ColdFusion? Is there a setting to set in the CF Admin or is their code in you can put in Application.cfc? Example Code: http://test.com/file.cfm?center=fisCenter')" onmouseover="alert('Insert Hax Here.')" style="display:block;position:absolute;top:0;left:0;width:10000px;height:10000px;z-index:100"> 回答1: First things first: https://www.owasp.org/index.php/XSS_(Cross_Site_Scripting)_Prevention_Cheat_Sheet. OWASP has tons of resources to help

In ColdFusion How to Eliminate Vulnerable for Cross-Site Script

爱⌒轻易说出口 提交于 2020-04-11 17:16:07
问题 What is the best way to stop Cross-Site Scripting for ColdFusion? Is there a setting to set in the CF Admin or is their code in you can put in Application.cfc? Example Code: http://test.com/file.cfm?center=fisCenter')" onmouseover="alert('Insert Hax Here.')" style="display:block;position:absolute;top:0;left:0;width:10000px;height:10000px;z-index:100"> 回答1: First things first: https://www.owasp.org/index.php/XSS_(Cross_Site_Scripting)_Prevention_Cheat_Sheet. OWASP has tons of resources to help

Taking directory ownership on Windows with Python results in “Access denied” error

强颜欢笑 提交于 2020-04-11 08:22:20
问题 I'm trying to take ownership of a directory with the following code: sd = win32security.SECURITY_DESCRIPTOR() sd.SetSecurityDescriptorOwner(curUser, False) win32security.SetFileSecurity("C:/ProgramData/Test", win32security.OWNER_SECURITY_INFORMATION, sd) The SetFileSecurity call fails with an "Access denied" error. The access rights for the current user have been removed from this directory. In Explorer I can see it, but when I try to open it, I first have to take ownership as an

Django, Security and Settings

谁说胖子不能爱 提交于 2020-04-10 08:07:37
问题 From here, we add all database info as text: DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql', 'NAME': 'mydatabase', 'USER': 'mydatabaseuser', 'PASSWORD': 'mypassword', 'HOST': '127.0.0.1', 'PORT': '5432', } } Is it a secure way? Is there any way to save this data as Encrypted data? 回答1: It isn't secure, anyone with access to your source control now has access to your database. The two main methods of storing sensitive data are either with environment variables or via a