instruction
stringlengths
24
27.2k
There is a website I use at work, external to our own. They have just presented with every employee with their plain text password and username via our internal website which requires our own logins. I was wondering if this should be viable for a professional company (Either the external website company or my internal ...
I'm looking for ways to check for the presence of credit-card data and other personally identifiable information in files on a network I'm testing. Currently i'm doing this manually with the usual tools like grep and some terrible reg-ex but a nice stand-alone application would be ideal. Especially something i can use...
I'm using android play store to download and update software for my phone. And some times its automatically updated as by settings.The play store is linked to one of my Gmail account. Here my question is that how can trust that I'm securely communicating to download and upgrade the software of my phone and also assure...
Let's say I would like to protect my PHP files that are on the public server and are used as a part of the website. Does anyone can easily access these files just like HTML/JS/CSS files through developers tool in the browsers or extensions such as FireBug? I am guessing that it is not possible through these tools, but ...
I'm following The Security Tube’s video here. He overviews buffer overflows, and mentions how memory is executed from highest to lowest in the stack (at least with his implementation I assume). So we pass the memory address of a function that's not called in the program, into a 3 word buffer. We overflow that buffer wi...
Applications (e.g. Firefox) often include a root ca bundle file containing trusted certificates. How can I protect those files from malicious agents trying to modify them? I think signing is not an option because they could also replace the public key used for verification. Is access control the only protection against...
Is it possible to dump the ram and get an exe and use that ram dump to distribute an app? If so, is this something that is a practical concern and if so how best should a developer protect against it? I ask because I'm considering encyrypting my app by nesting keys within nested features/widgets. When a feature/widget ...
I (think I) understand the concept of certificate pinning. However, I'm wondering if, in the worst-case scenario: is certificate pinning any more secure than the hierarchical trust model it is built upon? An example scenario: I develop a mobile app, which uses secure connections To encrypt these secure connections, I ...
I currently have a Macbook Pro running OSX Mavericks, being the skeptic that I am I always wait a bit before upgrading to 'new' OS versions when they are released to see how they fare both stability and usability wise. A number of privacy issues have been found in OSX Yosemite including but maybe not limited to: Spotl...
I'm building a webmail, which must be able to display html emails. But how to prevent xss and similiar attacks, while not loosing html formatting? In gmail, when I receive some emails from, lets say, twitter, they are nicely formatted. I'm after something like this. Html5 supports sandbox attribute for iframes, which s...
I was thinking about this for a while. Say we have an app for which there is an admin console, and we need to provide access to the admin console over the browser (yes, HTTPS). For authentication, instead of asking for a password, would the following be more secure? Prepare a set of very uncommon questions of very ver...
I'm helping my school network administrator to try to find a way to mitigate a current ARP spoofing attack on our wifi network. We detected an unknown host (MAC address seem to change, he is probably using mac-changer or something similar) sending forged ARP into the network. After some discussion, we agree to use a fr...
Google gets to know a user's IP when someone enters a captcha even if they are using tor (see http://www.wired.com/2014/12/google-one-click-recaptcha/). So, If I go to a non-google website, such as cnn.com, and it asks me for a captcha for submitting a particular form, will it hand over my IP to cnn? NOTE:I have only u...
I can't think of a reason as to why you'd want to create a hidden volume in VeraCrypt. It says because "you may be asked to hand the information," but why would I need to hand it over? Nobody has any proof of what may or may not be in that volume, so they can't claim that I'm doing something unlawful (assuming I was),...
I am developing a P2P application that will make use of UDP hole punch to connect two peers behind NAT. When dealing with connections between a cone and a symmetric, unpredictable NATs, however, hole punching is not as trivial as it could be with connections between cone NATs. The only way I found to do that is to just...
In a Nessus output file, does the Risk Level (e.g. Critical, High, Medium, Low, None) depend on the CVSS score? What relationship, if any, do the Risk Level and CVSS have? Thank yo
While writing server code for resend confirmation page something came to my mind: an attacker could make several requests to /resendemail?user=blah (example URL) and flood such user with registration emails (of course, as long as the user exists and hasn't confirmed their email). My first idea was to limit request per-...
I just turned my server off yesterday, after it began to distribute comment spam across the internet, at an astounding rate over 70 "spams"/min, bottom of the line 1/2 gig ram VPS. I'm still trying to figure out how there are doing this, but one possibility is an injected file, injected by MySQL. The reason I'm suspici...
Over the past years, my team has been asked to conduct audits/reviews for other teams. Most of these audits have been compliance-driven and almost all of them have followed the same format: some group of users have been granted a specific entitlement that some authorizer/supervisor now needs to confirm or revoke. For e...
I'm building a system that for reasons I'll outline below, can't used hashed passwords, but I'd still like to encrypt them so that it's as hard as possible to crack them, in the (unlikely) event the DB does get compromised. Basically, the reason I can't store them hashed is because they aren't authentication details fo...
(I was told that this was the place to ask this by someone from Webmasters, if I've got it wrong again please give me a chance!) I'm running a personal proxy service for the use of myself and some of my friends. Currently, in order to circumvent filtering restrictions I've signed up with a free web host to use their su...
I read that Tor proxy maintains a session key with tor nodes and uses it while encrypting data but why do Tor nodes maintain keys with other tor nodes?
I am working in a Virtual Machine that is on a ESXi server on a remote machine. I am not the only one who has access to the ESXi and others could take memory snapshots of my running VM. Is there a way to detect someone trying to take a snapshot, or reading the entire memory?
I am currently doing some pentesting for my work (not my job role but i always wanted to learn). I am trying to modify post and get data as it is sent (intercept, tamper), the web app I am trying to modify appears to be some kind of MVC which means I cannot see some of the data unless I am monitoring the traffic (canno...
I've stumbled upon an exploit method which I haven't really had time to investigate before. XML eXternal Entity is said to be susceptible of a server-side type of injection. I can specify a Document Type Declaration (DOCTYPE) to define the structure of XML. Inside the DOCTYPE I can define entities and assign particular...
I am currently working on penetration test of a web site that uses an Apache HTTP server. To test a vulnerability which is related to mod_cgi module, I need to know whether this web site uses mod_cgi module of Apache or not? How can I determine this?
I am currently working on an application with regard to applying a security policy to the application. We are locking the account after X failed login attempts in Y minute. The account will be locked for Z minutes. I want to know whether the account should be locked if there are successive failed login attempts or that...
Suppose I want to send a command to a print server on a netwerk that has been secured with Kerberos. To do so, I authenticate myself to the KDC and get a TGT, and then another ticket from the TGS for the print server. I then authenticate myself to the print server and I can then send it a print command, signed with the...
I have to set up a server that will allow remote logins. Obviously security is an issue. In this first pass we are discussing:- Locking a person for 15 minutes if they fail to login correctly three times in succession over a five minute period. Locking them out totally and making them reset their password if they fail...
I am dealing with user uploads via a PHP application. I want to secure the server so no exploits are available to the user, such as uploading a php shell and executing it. I have set it so all uploads are moved outside the webroot into a separate folder. As an extra security, I have removed all rights except "read" fr...
I have seen this question asked about a user from Samara,Russia, and when I sifted through all the other occurances,everything everyone else is experiencing matched my experience, except for one thing. The number of visits. In one week the visits to my site from this one user are around 174, all from Samara, or another...
My business sometimes receives emails from our clients that are sent through a "secure" third-party inbox. The client send the message through this third-party service. The third party creates an inbox for me and stores the message there. The third party then sends me an email at my normal address with a link to access...
I want to send out SMIME certificates with my emails, and want to deploy the following PKI Root01 (All EKU, All Constrants, No Restrictions) PolicyInt01 (Internal applications, not trusted by 3rd parties...) PolicyExt01 (Name constraints = domain.com, EKU=Message signing) IssueExt01 (Issues certificates for PolicyE...
Is there any instance of NIST or other encryption standards using AES-CCM to encrypt/authenticate key data? I would like to use CCM over a keywrap function, but cannot find any precedent for this in cryptography standards. If by design I guarantee that: (1) Nonce data will not be reused (2) The encrypting "transport" ...
Would preventing buffer overflow attacks prevent Return Oriented Programming (ROP) attacks?
I have a VM box configured using NAT to my host OS. It seems I can ping to the machines in my LAN. If my VM box got infected somehow my malware while surfing, would the malware be able to infect machines in my LAN? thanks.
Do all non-CA certs have to be End Entity certs?
I've learned that SSL certificates can be chained, and the browser will use the issuer's public key to verify the issuer's signature. I have read this article, which has a very helpful diagram, but it doesn't answer my specific question. SSL Certificate framework 101: How does the browser actually verify the validity o...
Fred Cohen in 1986 has proved in his Ph.D. thesis the undecidability of viral detection (no perfect virus checker can ever exist). Does this imply that there exists a totally undetectable virus? Else is it possible for a malware to stay a very long time (lets say many years or forever) undetected for the antivirus indu...
I hope someone can help me understand some fundamentals on SSL certificates that I've had trouble picking up from docs, Wikipedia, and just about everywhere else on the internet. I'm working on an application that communicates with another on a separate network. Each application acts as both a client and a server in bi...
Suppose I have the public key of a recipient I'd like to send an email to, and I've never sent this person an email before. Does it make sense to encrypt my first email to this recipient and also attach my public key? Can they decrypt my email? (This is somewhat an "etiquette" sort of question.) thanks
I am currently using KeePassX on Linux to allow me to have a different strong password for each website. With this program there comes two major inconveniences: I lose access to everything in the case of a hard drive failure, and it is difficult to correctly synchronize all of my passwords across all devices (desktop, ...
Is there a credible scenario in which the OTP (One Time Password) for online credit card transactions ( specifically for Verified by Visa) can be bypassed? Context: A guy I know was cheated via the usual social engineering routes (dumb I know!) into revealing his Credit Card details & a fraudulent transaction was made...
After upgrading to Android L on my Nexus 5, I was pleased to find that I can enable encryption using a pattern as the passphrase. However, it soon got me thinking. I'm guessing the encryption key is ultimately derived from the pattern which is very low entropy. I did a back-of-the-envelope calculation and I found that ...
According to the OWASP Application Security Verification Standard: V11.3 Verify that every HTTP response contains a content type header specifying a safe character set (e.g., UTF-8). According to the RFC for the application/json Media Type: JSON text SHALL be encoded in Unicode. The default encoding is UTF-8. Sinc...
Wanted to know what DDoS detection devices are currently available in the market.My organisation has its dedicated firewalls and routers.But we wanted to know if there are any devices in the market which can prevent DDoS.We are already in talks with the ISP to see if they can help us on this.But also wanted to know if ...
I have looked around but couldn't find anyone else with this issue. On my console (standard asus i7 laptop) running Ubuntu 14.04 LTS - I noticed in tcptrack that there are a lot of connections being made to an ip address belonging to Amazon EC2 services. I don't have any connection to amazon at all, and these connectio...
There are VPN services that are totally free and high speed vpn which makes me think, how can they offer such a service for free without ads nor donations? Is using this VPN safe? Regarding my accounts emails/FACEBOOK and regarding my laptop and IPAD info?
I'm trying to use a deugger (namely OllyDbg) to analyze some exe files. However, all the versions I downloaded from the Internet are considered as Trojans by some anti-virus software. (I use www.virustotal.com to scan the binary I downloaded) Are OllyDbg's main behaviors belong to a kind of Trojan? Currently, I want to...
First of all, I'd like to know what exactly a DDoS attack is- my understanding is that it's a collection of infected or "zombie" computers, all controlled by a central computer, with the intent of overloading the website, and making it inaccessible and / or slowing the service down to 90's dial up levels (a.k.a. unusab...
If I want to use a GUI application with another user (example: webbrowser), I can copy the .Xauthority file to that given user's home then I can "su - user" and start the GUI app. Question: but what security problems does this bring?
So my problem, in its general form, is encrypting test questions such that a client-side testing application can access the questions while students cannot. The naive approach, in my opinion, is to use a symmetric key algorithm, with the key hard-coded within the application, to encrypt and decrypt the questions. The p...
I need to create my own web application security assessment methodology. Within fingerprinting section I have one test case such as "Checking for load balancing". One part of that test case is to inspect various cookies in order to analyze the load balancing mechanism. As per my knowledge, I am a aware about few of the...
When it comes to evaluating a text steganographic approach, I think we have to consider these things: How unlikely it is for someone to guess that there is a hidden message in the message being sent? How large a hidden text can be stored in a cover text of fixed size (larger the better)? How hard is it for someone to ...
I am trying to create a lab environment where I can analyze common IDS solutions (starting with Snort specifically) and their ability to reassemble fragmented IP trains. I have a collection of malicious pcaps, which when ran with tcpreplay, create events and fire alerts, as expected. I am trying to find a way to frag...
I just purchased the book "rootkits: subverting the windows kernel" by Greg Hoglund and James Butler for a research project at work. However, this book constantly refers to the source code that can be downloaded at rootkit.com, a site that has been taken down apparently after a compromise a few years back. Anyone any i...
Is this scenario legal, A school has a few public computers that can be used. The only browsers that are installed are chrome and internet explorer, and the entire network is man-in-the-middled. Keylogging records are kept by the school as well. This school gets the account details of the student in question, and lo...
I wonder how hard it it to infect a laptop or netbook in 60 minutes or less in a way the victim cannot easily clean their machine by wiping hard disk drives. Let's assume the following: The attacker has physical access to the machine. I.e. they wait until their victim leaves their desk. They know how long their victim...
Like little red riding hood, you don't know who is knocking on the door... Why even bother accepting a client_id in case of a API <-> Javascript-website or API <-> Android App password grant authentication flow?
Ars Technica is reporting on a new attack against HTTPS. Called FREAK, the devices reported as vulnerable include iPhones, Android devices, and Macs running OS X. The attack (as has been clarified below - thank you @bonsaiviking) is that an active MITM can alter the TLS negotiations between the client and the server to...
Going through Pen Test and it was asked of us to disable auto complete in our CC payment fields. We tried adding autocomplete=off and also tried false on the input filed. A ny suggestions to override this 'feature' in IE11 and other browser specific extensions?
I have a small personal website hosted through go-daddy. I also have an old machine sitting in my garage collecting dust. I know enough to make my old dumpy machine a Linux server for my tiny website and save a few bucks on hosting. But what are the biggest risks attached to hosting my own site? What should I know/do b...
I've just found out that all of my websites on one of my server has been hacked. Some seemingly malicious code was injected into all index.php files: /*EngineWork*/ if(!defined("FDSJERIUI234FSDF")){ @ob_start(); @define("FDSJERIUI234FSDF",1); @ini_set("display_errors",0); @error_reporting(0); echo b...
ATTACK VECTOR Monthly hits via a globally DDoS attack. Resolved with Cloudflare. Attacker can now somehow unmount network drive links and reset MySQL user permissions for applications. Attack is resolved by simply by issuing these commands: GRANT ALL PRIVILEGES ON application.* TO application_user; FLUSH PRIVILEGES;...
Specific example of mine concerns the probability of collision, where I have two plain texts A and B that I want to hash using MD5. Given the cryptographic hash function H and the following: A' = H(A) B' = H(B) A'' = H(H(A)) B'' = H(H(B)) is the probability of A'' and B'' colliding higher than that of A' and B'?
I am a final year student currently doing my project, the title is "Mitigating man in the middle attacks using ssl+symmetric key algorithm". I would like to create my own encryption algorithm. I need to know that could I write it in C, and how to generate an ssl key and to write an encryption algorithm and then to comb...
On a server running Ubuntu 14.04.2 I was doing some basic security auditing when I ran the command nmap -p -d 1-65535 as a non-root user. Interestingly it reported a few (1-5 at a time, average, changes each scan) high ports open as "unknown". Taken aback I checked netstat and all the usual things, nothing seemed amiss...
Somebody on Stackoverflow posted some code from https://www.opensource.apple.com/ When I click this link in Firefox (36.0) it says "This Connection is Untrusted". But other people on that thread on Stackoverflow say they don't have a problem with the link. But, apparently, some people, besides me, do have a problem wit...
I was surprised to find out today that condominium, garage etc. access cards can be duplicated and used without being registered with the reader system. Are these RFID cards? Does it mean that store-value cards for transportation can also be duplicated?! My understanding was that each RFID card has a GUID that is "burn...
Let's take this CVE for example: http://www.cvedetails.com/cve/CVE-2014-9283/ obtain administrative access via unspecified vectors. What unspecified vectors means ? I saw this term in a a lot of CVE. Does this mean via unspecified factors ? (In the sense that they don't wanna give too much details about it so people...
I used a web vulnerability scanner to scan my web site. It indicates several links with "Cross domain Java script source file inclusion." May I know how would an attacker exploit this type of vulnerability, exactly? For example, the JS in question comes from addthis.com (share buttons etc). For this exploit to work, a...
I am currently testing a RoR web application, but I am honestly at a bit of a loss, I have never gone up against a RoR application before and I was wondering if there were any specific tools I could use to attack this RoR site (I have full permission, all legal). any tools or tutorials for basic RoR pen testing?
I have the task to crack a bunch of passwords like: $1$V5l3qvml$Q.fDn30gGhjcEIZH8utah/ $1$DcuX.dRK$bR4utyGQ4ET4sobpMMtfo0 $1$WbXWIqFu$Qu1fT/MmTIvSUz4xw4mlI0 $1$8Y7TfkZ5$LnuF99mgFbV1wvQ61dMZB1 I was only told that these were Linux-like encrypted (I have removed the username: from the front, e.g. sBerhhard: and ::1:0:1...
We have a vendor configured Cisco ASA 5505 running on our network to provide VPN connectivity into their networks. The ASA 5505 was purchased by us but configured by the vendor and we have no administrative access. During a pen-test, we because aware that this device has port 500 open to the outside world on it. Runnin...
I'm working on making a silent installer of WinpkFilter driver. In my silent installation, I'm always getting a (not so silent) prompt that says "Windows can't verify the publisher of this driver software". Rightfully so. The cert expired in 2013 and it's cert path is just itself, which isn't a CA. So how does the real...
I am using custom hardware on which i'm using the random noise from an ADC converter and a few other seeds. I combine these in an algorithm and have tested it against FIPS PUB 140-2 for a random number generator. It has passed the test but I'm reading up on RNG attacks and do not fully understand these attacks. If peop...
While we wait for patches to address the TLS FREAK vulnerability, is there anything relatively straight forward on the client-side that can be done to mitigate the risk in the meantime?
Okay, so here it goes. I am the Red Team Lead, and as described earlier; not far (like about a week), I posted this. At the time, I was looking for a beautiful technical title which could match down my findings. I mentioned it as 'Weak Password Policy'. Since most of the penetration testers failed, I had to take the as...
Since a virus infected PC has to download (encrypt) reupload the entire file (to a file server), and repeat the process for every network drive, is is possible to detect this unusually high bandwidth event? Is there a way to respond to it (via QOS or something?) I'm looking for a way to detect and/or limit Cryptolocke...
To encrypt web communication, I use SSL with a RSA key with a length of 2048 bit, AES key's with a length of 256 bit and the ECDH-algorithm for the negotiation of the AES key's (or to exchange the DH-parameters to compute the AES key's). As far as I understand, the RSA key pair's are only used the sign the messages for...
I try to learn a bit about the TPM and have a few questions I could not solve by myself. There are some privacy concerns about using the EK for identifying a TPM. I do not get these privacy concerns. Can anyone provide me a small example how one could identify the certain TPM when using an EK for attestation purposes?...
I want to build a client that connects to my server and uses server API. You can consider this as a banking application because data security is the most important thing. Since the users or hackers going to try breach software security to get into flow and see what is going on, we need to protect everything from user t...
I have been asked to connect to a government agency secure site that uses client certificates to authenticate its clients. I received by email an encrypted client certificate as a PKCS#12 file and by other means the password for the file. The interesting fact is that the PKCS12 file also contains a root certificate aut...
In the documentary film Citizenfour, Edward Snowden says about documents: I'm comfortable in my technical ability to protect [documents]. I mean you could literally shoot me or torture me and I could not disclose the password, even if I wanted to. I have the sophistication to do that. What technology/methods ex...
My goal is to sniff the HTTPS traffic of some digital devices (AppleTV, game consoles, etc.), and decrypt the HTTPS packets in my local network. I cannot figure out a way by using some HTTPS debugging proxy tools like Charles or Fiddler, because they need to have a certificate installed on the device. I don't have acc...
I am trying to inject a RoR application... I have found a nice command which will allow me to delete things unchecked...but the problem is that its not a problem its a very minor point, to make it a problem is there anyway I can inject a command to join to another table? for example I have: pointless = uselessTable.fin...
I typically recommend that users enable a real-time email scanner (aka a mail shield) in order to detect a possible vector used by malware. Even if they don't use an email application, the rationale is that if their system is infected with malware, the malware might try to use email to perform an undesired function, a...
After doing a lot of research I come to this forum hopefully i can get some help. I am building a Ruby on Rails application (version 4.2) My app allow users to create "one page" portfolio : user 1 can have his portfolio page in a subdomain : user1portfolio.myapp.com user 2 can have his portfolio page in a subdomain : ...
Assume there is an incident that requires immediate response, such as a virus outbreak over email, Cryptolocker actively encrypting files, or a DOS attack. How should I approach this in a way that would not only be valued in terms of our customers (SLA, etc), but also be positively viewed by all levels of management ...
Expert says that PDO is one of secure scripting from mysql injection. I have read the manual about it and do some little research. And here, I'm trying to get ID value from URL paramater, as in: <?php include("pdo_con.php"); if (isset($_GET['id'])){ $id=$_GET['id']; $id=strip_tags($id); } $sth = $mydb-...
In the medical/pharmaceutical space as part of legal operating requirements, everyone has to comply with HIPAA standards ( http://health.state.tn.us/hipaa/ ) for moving personal medical information around. This means that, for example, you'd have to encrypt any email communication sent out with identifiable personal in...
I'd like to use my laptop as a recording device when I leave home, but there would still be the possibility for a cold boot attack or with DDR3 RAM even warm boot attack is possible as I have read. Could one overwrite RAM before leaving the laptop locked and make cold boot impossible that way? I found this: http://m...
I am working on how to secure login page from tautology attack. Can anybody help me on how to create blackist of SQL keywords in php ?
I'm designing a very simple data collection device for a research project. Because we are logging, among other stuff, the GPS position of actual vehicles, we need to protect the data. Since we manually deploy every logging device, there is no need for registrations or logins. I have set up a web server (Node.js), a dat...
I've recently changed SpiderOak password on computer A. Because I have SpiderOak installed on computer B as well, I thought I will have to update the password on it so the application can connect to the server. I was quite surprised when I found out the password updated itself automagically. So I sent a question to Spi...
Lets say that I have an nginx reverse proxy that proxies the traffic to a Tomcat on the same server. I think the most common way to configure this setup is to enable SSL on nginx and then proxy the unencrypted traffic to Tomcat. So far so good. The traffic starts to grow and I decide to move the tomcat to a different s...
Axolotl Ratchet is used by the Signal messenger (formerly known as TextSecure) and an enhanced version of OTR in a way to make it suitable for mobile applications, which has the probability to encrypt messages without both parties to have to be online at the same time as described here. The key exchange is happening as...
Is it sufficient to have single database inside the DMZ which the webservers in the DMZ receives their data from. Or if setup with two databases is a better solution, that would be to have a database in the internal network which the database in the DMZ receives from?
As far as I know, when I am creating a new file or directory in a directory that can be written by multiple users (and thus an adversary can have made a symlink there), the only way to protect myself from symlink race is creating a file with enough random name. Well, some app might have checked if such file already exi...
In December there was a new attack surface of POODLE against TLS 1.0 (think this also covers 1.1 and 1.2?). Anyway, as a system administrator for Windows Server 2008/2012 what can we do do prevent this? Lots of articles I read stated that due to CBC block cipher used in SSL this causes issues and I saw a great article...