security

Can I use dynamically created form fields with the Security Component in CakePHP 1.3?

Using CakePHP 1.3, I have a (working) form that has dynamically created form fields (via Javascript). Everything works great, multiple models are saved via saveAll(), and it's just beautiful. But, I get black-holed to a 404 whenever I enable the Security component (hoping to get some of the auto-magic CSRF protection). I understand t...

PHP framework or library for DB abstraction, secure login

I am building a site that requires a lot of MySQL inserts and lookups from different tables in a (hopefully) secure part of the site. I want to use an abstraction layer for the whole process. Should I use a PHP framework (like Zend or CakePHP) for this, or just use a simple library (like Crystal or Doctrine)? I would also like to make s...

Linux command line SHA-256 hash different from online tools?

I was looking for a quick way to compute the SHA-256 hash of a password so I could upload some test data into a database that we are using Spring Security to authenticate against. First I found the linux utility sha256sum and ran it again the password "admin" and got this result: fc8252c8dc55839967c58b9ad755a59b61b67c13227ddae4bd3f78a3...

How can I selectively mask arbitrary data being sent over an insecure link?

I'm using an offsite error logging package for my python web application. When I send an error I include the contents of (among other things) the POST variable and some template data. Some of this data must not be sent to the error logging service (passwords, some other template data). How can I take a payload that consists of a mix of ...

How do I verify users of my PHP application?

While installing an application onto a client's server, I would like to make sure that the client (or a future developer for them, etc) does not copy my application and place it on other domains/servers/local servers. How can I verify that my application is running on the server I installed it on? I do not want any substantial lag in th...

Security validation error when try get data from sharepoint using silverlight.

I try to execute this code in Silcerlight 4 contol hosted in webpart: clientCtx = new ClientContext(ApplicationContext.Current.Url); clientCtx.ValidateOnClient = true; clientCtx.Load(clientCtx.Web); clientCtx.ExecuteQueryAsync(updateConnectionStatus, Failed); but it fails and go Failed method and I recive error: "The security validat...

How to ensure a .Net application is genuine?

In a client-server application how can the server know that a request comes from a genuine application and not from a tampered copy of it? I still haven't developed neither the client nor the server application. The solution may be plain socket, wcf, IIS hosted or whatever. ...

Risks of running asp net aplication with an administrator account

Hi, I'd like to know which are the security risks of running an asp net application with an administrator account. I might end up doing this and I'd like to be aware of the known security wholes I would have. I'm connecting to a sql server using sql authentication so excessive privileges to execute queries is out of the list. ...

How do I allow video embed html safely on a site?

Hi, I have a php application in which we allow every user to have a "public page" which shows their linked video. We are having an input textbox where they can specify the embed video's html code. The problem we're running into is that if we take that input and directly display it on the page as it is, all sorts of scripts can be insert...

Windows Security Template to Allow CAN Controller Access

I'd like to see advice on how the security template should be configured to permit CAN controller access from an application. Thank you. ...

How to Post the password using ajax() function of jquery

I am having a Password textbox which will have empty value. when the user clicks on it and enter password, onblur of the textbox, the password will be updated the database. I have done that using ajax but i want to know whether any security hole in this script. am afraid the data we are sending from ajax() function can be changed using...

cant do file io after deploying my app on user machine: system.security.permissions.fileiopermission

Hi, I have built a win application with C# framework 3.5 sp1 When I publish the project and install it on other machine (with framework 3.5 sp1) I get "application attempted to perform an operation not allowed by the security policy..." After learning about this a bit I found two leads: "Administrative tools-->microsoft .net configu...

IPrincipal.IsInRole() only works when I truncate the role names - why?

I have an application that relies heavily on authorization of users. Within it, I am using IPrincipal.IsInRole() to check whether users are in the correct groups: IPrincipal principal = Thread.CurrentPrincipal; bool inRole = principal.IsInRole("mydomainname\some role with a long name"); This works fine for the most part, but fails (re...

Retry login with form based container managed security

I've got a web application, deployed on GlassFish 3.0.1, which is using container managed security. It's a simple, standard form based implementation using j_security_check against a JDBCRealm. Everything to do with securing the application is fine (and I can't believe I've rolled my own security systems in the past). What I can't seem ...

Grails Spring Security Plugin- Want to create Project specific User's roles?

Hi all, I have domain Classes "Project" and "User" and need to implement authentication using Spring Secutity plugin. The default implementation of this plugin provides us to create ROLES that are User specific. But in my project I need to create Project specific ROLES for the USER and need to authenticate them. e.g. User-A can be an...

Is the ASP.NET cryptographic vulnerability work around a BIG LIE?

This question is somewhat of a follow up to How serious is this new ASP.NET security vulnerability and how can I workaround it? So if my question seems to be broken read over this question and its accepted solution first and then take that into the context of my question. Can someone explain why returning the same error page and same st...

MVC - CustomErrors does not work when setting redirectMode=“ResponseRewrite”

Hello, I have an ASP.NET 4.0 MVC web application running on IIS 6.0 with a webconfig custom error section of: <customErrors mode="On" redirectMode="ResponseRewrite" defaultRedirect="/Home/Error"> <error statusCode="403" redirect="/Home/Error"/> <error statusCode="404" redirect="/Home/Error"/> </customErrors> and an error.aspx page...

SSAS Dynamic Dimension Security based on another dimension attribute

Hello guys, In my project I have to apply security based on a dimension attribute. I think the best way to explain my scenario is with an example, if you need more info please request me and I'll love to told you if it will help me find a solution. I have some main dimension, the dimcustomer, dimseller, fact, data and geographic. The f...

WSSecurityTokenSerializer ReadToken method performance

I have a Dispatch MessageInspector which is deserializing a SAML Token contained in the SOAP message header. To do the deserialization I am using a variation of the following code: List<SecurityToken> tokens = new List<SecurityToken>(); tokens.Add(new X509SecurityToken(CertificateUtility.GetCertificate())); SecurityTokenResolver outO...

Best Security Magazines and Websites

Possible Duplicate: How can I stay up-to-date on computer (especially software) security? I want to ask about some good security magazines and websites that keep me in touch with the latest computer security issues which I am interested in as a programmer (news, articles, tools,internet security, Hacking and Defence...etc). ...