security

Migrating Existing Users and Passwords to new Symfony/sfDoctrineGuard User System

陌路散爱 提交于 2020-01-01 17:42:36
问题 I have an existing, non-framework-based PHP/MySQL website. It has a simple security model, with a users table with usernames and hashed (MD5) passwords. I'm currently working on "version 2" of this site, this time using Symfony, with Doctrine. The new version is working fine, and I'm using the sfDoctrineGuard plugin for my user management. I'd like to migrate my existing users into the new app with the minimum of fuss, retaining their existing usernames and passwords. My main problem, though,

Adding write access for low integrity processes under .Net

余生颓废 提交于 2020-01-01 17:10:33
问题 I'm creating an FileSecurity for file creation that should have an write access also for low integrity processes. FileSecurity fileAcl = new FileSecurity(); // add everyone IdentityReference sid = new SecurityIdentifier(WellKnownSidType.WorldSid, null); FileSystemAccessRule rule = new FileSystemAccessRule(sid, FileSystemRights.FullControl, AccessControlType.Allow); fileAcl.AddAccessRule(rule); // add restricted sid = new SecurityIdentifier(WellKnownSidType.RestrictedCodeSid, null); rule = new

jars no longer seem to be signed. JARSigningException: Found unsigned entry

亡梦爱人 提交于 2020-01-01 15:33:25
问题 NB 7.4RC2, Win 7 In Java Control Panel, the "Keep Temporary Internet Files" checkbox is checked. I am signing my Web Start application with trusted certificates. However, the 3rd party jars in dist/lib seem to be unsigned. C:\Program Files (x86)\Java\jdk1.7.0_40\bin\jarsigner" -verify javafx-dialogs-0.0.3.jar jar is unsigned. (signatures missing or not parsable) So when I run my application in the debugger, it refuses to start complaining of unsigned jars ExitException[ 3]com.sun.deploy.net

Add RSA based encryption to WCF service without certificates

♀尐吖头ヾ 提交于 2020-01-01 14:49:29
问题 I am looking for a way to encrypt messages between client and server using the WCF. WCF offers a lot of built in security mechanisms to enrcypt traffic between client and server, but there seems to be nothing fitting my requirements. I don't want to use certificates since they are too complicated, so don't suggest me to to use certificates please. I don't need confidentiality, so I though I'll go best using plain RSA. I want real security , no hardcoded key or something. I was thinking about

Is self-signed and/or expired HTTPS certificates worse than just using HTTP?

时光总嘲笑我的痴心妄想 提交于 2020-01-01 14:25:16
问题 Despite the fact that you get a big red threatening warning telling you that the certificate has not been verified by one of those certificate authorities or has expired, what is bad with it in comparison to just using HTTP? Is it worse or not? According to Google Chrome (http://www.sslshopper.com/assets/images/chrome-beta-ssl-2.png) « an attacker may be trying to intercept yours communication ». What makes this browser and almost all others raising this warning in the case of a self-signed

Is self-signed and/or expired HTTPS certificates worse than just using HTTP?

老子叫甜甜 提交于 2020-01-01 14:25:10
问题 Despite the fact that you get a big red threatening warning telling you that the certificate has not been verified by one of those certificate authorities or has expired, what is bad with it in comparison to just using HTTP? Is it worse or not? According to Google Chrome (http://www.sslshopper.com/assets/images/chrome-beta-ssl-2.png) « an attacker may be trying to intercept yours communication ». What makes this browser and almost all others raising this warning in the case of a self-signed

Can “Show Insecure Content” Browser Prompt Be Detected?

故事扮演 提交于 2020-01-01 14:06:11
问题 We are all familiar with the problem of mixed scheme (http / https) content on a page. I'm working on a site on which this is unavoidable. I do not want to prevent this . I know there are a ton of questions / answers on that. What I need is simply to detect this (via JavaScript?) so I can tweak the page behavior (show a notice of degraded behavior or something). Any help? 回答1: Using jQuery you can find out if any insecure items are present on a page using the following piece of code: var flag

.NET/Security: Limiting runtime-loaded assemblies from accessing certain APIs

纵饮孤独 提交于 2020-01-01 12:24:12
问题 In a shell application, I need to be able to load and execute other .NET assemblies at runtime, but without giving them full trust. Essentially, I want to limit them (the loaded assemblies) from touching any system resources (threading, networking, etc), with the only exception being isolated storage. However, assemblies which are from "me" need to be executed with full trust. I've been considering Code Access Security, but I'm not quite sure it's what I should use. How would you go about

Are there javax.smartcardio analogues on Android?

一曲冷凌霜 提交于 2020-01-01 12:22:55
问题 Are there javax.smartcardio analogues on Android? but not using Open Mobile API. Thanks! 回答1: I'm using javax.smartcardio.* as a facade to IsoDep on Android in a project called SCUBA. Note that this is for trancieving APDUs to ISO14443 cards in the field of the NFC chip (in NFC capable Android phones), and not for communicating with SIM or SE. (Main motivation was to be able to use the same JMRTD ePassport reading API jar both on J2SE and Android without changes.) EDIT: If you're interested

how to secure and encrypt setting.xml paswords file in maven?

这一生的挚爱 提交于 2020-01-01 12:09:12
问题 How to secure server/proxy settings in settings.xml in maven? I assume this is mostly about login and passwords stored there and I assume that those can't be placed placed there explicitly, should they be stored in env variables/etc? how should example of a secure settings.xml look? 回答1: You have 2 options: 1)If you need only use in settings.xml: Execute: mvn --encrypt-password <password> You will get the encrypted password like this: {COQLCE6DU6GtcS5P=} You can use this password in you