security

How to test asp.net location folder authorization programmatically

谁说胖子不能爱 提交于 2020-02-02 13:56:13
问题 I have an location element in my web.config like so: <location path="Admin"> <system.web> <authorization> <allow roles="Domain\Development"/> <deny users="*" /> </authorization> </system.web> </location> This works to only allow members of the development group access to this folder. I was wondering if there is a way to simply test if a user has access to this folder? One scenario is creating menu items. I'd simply like to hide or not render links to pages in this folder if the user does not

How to test asp.net location folder authorization programmatically

两盒软妹~` 提交于 2020-02-02 13:54:12
问题 I have an location element in my web.config like so: <location path="Admin"> <system.web> <authorization> <allow roles="Domain\Development"/> <deny users="*" /> </authorization> </system.web> </location> This works to only allow members of the development group access to this folder. I was wondering if there is a way to simply test if a user has access to this folder? One scenario is creating menu items. I'd simply like to hide or not render links to pages in this folder if the user does not

Can I restrict web folder access to only logged in users of my website?

依然范特西╮ 提交于 2020-02-02 13:05:11
问题 My website users login using accounts they setup in my website. I of course store their login info in a db table and this table is accessed when they fill out the login form. This is just a proprietary system I created. When users are logged in , they can see a list of documents that are stored in a folder on my website. If they are not logged in, they don't have access to this list. However, if someone knows the direct URL of one of the documents, they can download it without logging in. I

Cannot load group for JDBC realm

孤街醉人 提交于 2020-02-02 11:20:45
问题 Im being a few days struggling to create my first Security realm in glassfish V3. My problem is that it looks like for some reason, the application does not see the one of the coulmns in the database, and my console keeps telling me that there is a syntax error. I think the table that is making me trouble is the join column(Below you will see my DB implementation). Here i will copy the hold stack trace so you will see what is going on: FINE: [Web-Security] Setting Policy Context ID: old =

Prevent application with SYSTEM_ALERT_WINDOW from obscuring my application

[亡魂溺海] 提交于 2020-02-02 06:28:56
问题 Is there any way to assure that my application's window is not obscured by any other application's view using with SYSTEM_ALERT_WINDOW permission? If not, then is there any better way to assure that my app is not obscured by such window apart from obtaining the same permission and refreshing/showing/whatever my own view (of course shown in alert window) every 100ms or so to keep it visible? Eventual flickering, in case my application is obscured, is actually a good thing and an indicator to

Prevent application with SYSTEM_ALERT_WINDOW from obscuring my application

半世苍凉 提交于 2020-02-02 06:28:04
问题 Is there any way to assure that my application's window is not obscured by any other application's view using with SYSTEM_ALERT_WINDOW permission? If not, then is there any better way to assure that my app is not obscured by such window apart from obtaining the same permission and refreshing/showing/whatever my own view (of course shown in alert window) every 100ms or so to keep it visible? Eventual flickering, in case my application is obscured, is actually a good thing and an indicator to

Replacement for Jenkins Scriptler plugin?

被刻印的时光 ゝ 提交于 2020-02-02 05:17:21
问题 It looks like the Jenkins Scriptler plugin is no longer available, due to security reasons: https://wiki.jenkins-ci.org/display/JENKINS/Scriptler+Plugin "Distribution of This Plugin Has Been Suspended" Is there a similar plugin that I could use to run saved Groovy scripts? 回答1: Hi you can store your groovy scripts in Managed Files and pass the parameters to groovy script through Extended Choice Parameters Plugin. Or else you can download Scriptler plugin source code and add it to your /var

Merge trunk into branch with SVN: “Secure Connection Truncated”

心已入冬 提交于 2020-02-01 19:00:30
问题 after trying to merge changes to an svn trunk back to the branch with the following command: ../branches/myBranch$ svn merge -r 94:171 https://.../trunk --dry-run I get the following error from SVN: svn: REPORT of '/svnroot/simspark/!svn/vcc/default': Could not read chunk size: Secure connection truncated (https://simspark.svn.sourceforge.net) We already tried to google this for quite a while and concluded that this is kinda pointless. I won't stop you from trying yourself of course, but you

Merge trunk into branch with SVN: “Secure Connection Truncated”

人盡茶涼 提交于 2020-02-01 18:58:43
问题 after trying to merge changes to an svn trunk back to the branch with the following command: ../branches/myBranch$ svn merge -r 94:171 https://.../trunk --dry-run I get the following error from SVN: svn: REPORT of '/svnroot/simspark/!svn/vcc/default': Could not read chunk size: Secure connection truncated (https://simspark.svn.sourceforge.net) We already tried to google this for quite a while and concluded that this is kinda pointless. I won't stop you from trying yourself of course, but you

Fetching a file on a server, resizing with PHP GD2, security considerations

谁说胖子不能爱 提交于 2020-02-01 08:42:16
问题 What are the security considerations when a server fetches a file from an untrusted domain? What are the security considerations when resizing an image that you don't trust with PHPs GD2 library? The file will be stored on the server machine, and will be offered for download. I know I can't trust the MIME-Type header. Is there anything else I should be aware of? I have a webservice that looks like this: input An http-URL (or a String that is expected to be a URL) output A meta description of