security

CSRF - Can forged POSTs contain arbitrary data?

蹲街弑〆低调 提交于 2020-01-01 11:33:47
问题 Forged POST requests can be constructed by untrusted websites by creating a form and posting it to the target site. However, the raw contents of this POST will be encoded by the browser to be in the format: param1=value1&param2=value2 Is it possible for untrusted websites to construct forged POSTs which contain arbitrary raw content -- such as stringified JSON? {param1: value1, param2: value2} Put another way: Can websites cause the browser to POST arbitrary content to third-party domains?

What harm can a C/asm program do to Linux when run by an unprivileged user?

拟墨画扇 提交于 2020-01-01 10:57:12
问题 I have been thinking about a scenario where one lets users (can be anyone, possibly with bad intentions) submit code which is run on a Linux PC (let's call it the benchmark node). The goal is to make a kind of automated benchmarking environment for single-threaded routines. Let's say that a website posts some code to a proxy. This proxy hands this code to the benchmark node, and the benchmark node only has an ethernet connection to the proxy, not internet itself. If one lets whatever user

Securing sensitive information in Azure Cloud Service Configuration

筅森魡賤 提交于 2020-01-01 10:49:10
问题 We are using Cloud Service configuration to store app settings. But we would like to secure few appsettings like User Credentials,database connection string etc. What is the recommended way to do that? We are reading this configuration from both web and worker role. Hence using aspnet_regiis utility is not an option as this is not available in worker role since iis is not installed in worker role. We also considered using Key vault, but we end up in the same situation of securing the key

How much security is really needed on a “private” website? [closed]

删除回忆录丶 提交于 2020-01-01 10:47:11
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . I'm asking this as I maintain a small website for a fairly isolated group of people (no more than 80). It currently has a simple log

Add Signing Time to PKCS7 Signed CMS?

 ̄綄美尐妖づ 提交于 2020-01-01 10:14:32
问题 I'm trying to add the signing time attribute to a file that I am signing using SignedCMS. private byte[] signFile(byte[] fileContent, X509Certificate2 verificationCert) { ContentInfo contentInfo = new ContentInfo(fileContent); SignedCms signedCMS = new SignedCms(contentInfo); CmsSigner cmsSigner = new CmsSigner(SubjectIdentifierType.IssuerAndSerialNumber, verificationCert); Oid signedDate = new Oid("1.2.840.113549.1.9.5"); //oid for PKCS #9 signing time signedDate.Value = DateTime.Now

Add Signing Time to PKCS7 Signed CMS?

人盡茶涼 提交于 2020-01-01 10:14:09
问题 I'm trying to add the signing time attribute to a file that I am signing using SignedCMS. private byte[] signFile(byte[] fileContent, X509Certificate2 verificationCert) { ContentInfo contentInfo = new ContentInfo(fileContent); SignedCms signedCMS = new SignedCms(contentInfo); CmsSigner cmsSigner = new CmsSigner(SubjectIdentifierType.IssuerAndSerialNumber, verificationCert); Oid signedDate = new Oid("1.2.840.113549.1.9.5"); //oid for PKCS #9 signing time signedDate.Value = DateTime.Now

SecurityComponent black-holing my controller test case

放肆的年华 提交于 2020-01-01 10:13:46
问题 Here's my UsersController test case: <?php App::uses('UsersController', 'Controller'); class TestUsersController extends UsersController { public $autoRender = false; public function redirect($url, $status = null, $exit = true) { $this->redirectUrl = $url; } public function render($action = null, $layout = null, $file = null) { $this->renderedAction = $action; } public function _stop($status = 0) { $this->stopped = $status; } } class UsersControllerTestCase extends ControllerTestCase { public

Where is private key when using SSL stored?

天涯浪子 提交于 2020-01-01 10:11:30
问题 Before using a ssl sertificate between a service that I will be hosting on my local network I will like to understand a little more about it. From reading on the internet this is how I understand how an SSL works. client connects to the WCF service the WCF service replies with it's public key and it's certificate the client then verifies the certificate and encrypts his credentials with the public key wcf service then decrypts that message with it's private key and validates the info etc...

How to block IP address or IP classes in ASP.NET

限于喜欢 提交于 2020-01-01 10:06:53
问题 I need to block one IP address or class in asp.net Can anyone help me with the code? And how to implement? Thanks 回答1: You can get the IP address of the client using the HttpRequest.UserHostAddress property (an instance can be accessed using this.Request from any page or using static property HttpContext.Current ). As far as I know, there is no standard method that would compare the IP address with a specified range, so you'll need to implement this bit yourself. You'll probably want to check

How to block IP address or IP classes in ASP.NET

不打扰是莪最后的温柔 提交于 2020-01-01 10:06:08
问题 I need to block one IP address or class in asp.net Can anyone help me with the code? And how to implement? Thanks 回答1: You can get the IP address of the client using the HttpRequest.UserHostAddress property (an instance can be accessed using this.Request from any page or using static property HttpContext.Current ). As far as I know, there is no standard method that would compare the IP address with a specified range, so you'll need to implement this bit yourself. You'll probably want to check