instruction
stringlengths
24
27.2k
If my website is targeted for a DDoS attack after I have been paid for completing the website, and I get an angry phone call from the client regarding outage of service, what do I do? It hasn't actually happened yet, but the idea haunts me.
I was watching a DefCon talk and the speaker was saying he was able to infect JavaScript cache files, once the user visited his website/server. From there he was able to load scripts from other sites and infect them for when the user visits later on. Does anyone know how this works? Talk PDF: http://www.slideshare.net/...
My PC is infected with malware, whenever I open a webpage and click on it a new tab opens on "ad.adsmatte.com". I scanned my PC with Malwarebytes but was unable to resolve the problem. So I reinstalled my Windows with factory settings but still "ad.adsmatte" keeps coming. I don't know what to do. Is my router infected?...
I have seen this question asked before; I want to know if I can use a VPN to disguise my internet traffic so my employer can't see what websites I'm visiting while at work. However, unlike most people, I do all of my work on my personal computer, which has no sort of monitoring software or anything on it from the compa...
I do have multiple applications in .NET. Now I want that each user can talk within its application with other users of the same application. Therefore I programmed a node.js/socket.io-server. Everything runs fine in development! Now I consider some security issues as my applications run on wildcard ssl (*.mydomain.com)...
I have recently set up my first email server, and I look at the logs in /var/logs/mail.log to see what is happening, I notice this one IP does this multiple times every day for the last so many weeks : May 15 19:44:36 rpi postfix/smtpd[14538]: NOQUEUE: reject: RCPT from unknown[91.236.75.224]: 504 5.5.2 <#MYIP#>: Helo ...
Suppose a Wi-Fi network is present with a given SSID. Now I create a hotspot with the same SSID as that of the original network. If a user tries to connect to the Wi-Fi, which one will he connect to? Also suppose the original Wi-Fi asked for a password, while my hotspot doesn't. Does this mean that the user "prefrably"...
Before I begin, I say 'illegal' because I guess the law is somewhat sketchy around the topic and that topic is XSS research. Apparently people have been taken to court over it and UK law does have a section that covers it but still. So, I have an interview coming up for my placement year as a penetration tester. This...
Summary: For most non technical people, who hear about computer security either in the news because of some giant breach or in the movies, there are two kind of hackers: The professional people hired by often large company to ensure network security. These are the good guys. The delinquents, who act on their own outsi...
If I want to publish a software that needs to interact directly with a remote database, I will have to put on the software all the required credentials and logic to have the access from the program itself. (No user identification required as it would be a public app and no intermediate servers) With that software aroun...
We have just had some pen testing completed against a web application and the one area identified as High Impact and Medium Probability was: Cross-Site scripting (reflected) The example given was the ability to manipulate a URL such as: www.domain.com/application/index.php/<IFRAME SRC=source.com onload="alert(document...
Security-related documentation (and casual conversation) often describes threats that require a lot of resources as "state sponsored" Given that large mega-national corporations have more income than some countries' GDP, I want to include these corporations in threats that normally referred to as "state sponsored". I ...
I heard there is a "new" TLS vulnerability named Logjam, what does it do and how do I prevent it?
I might be wrong, but I believe the request to close the browser window after logging out is common, though it's completely unclear what the risks might be of failing to close a browser window (assuming the browser is completely up-to-date) and why more importantly browsers are not able to mitigate the threat without c...
My Chrome just complained from PayPal's security, similarly to this issue: Google Chrome "Your connection to website is encrypted with obsolete cryptography" The identity is verified, but it complains the cryptography is obsolete. Says it uses RC4_128 with SHA1. Should I be worried? Should PayPal be ashamed? Should Chr...
I'm a little confused about terminology in the Host Identity Protocol (HIP) The two distinct terms Host Identity and Host Identifier are described in https://www.rfc-editor.org/rfc/rfc4423#section-3 (section 3.2) as Host Identity | An abstract concept assigned to a 'computing platform' and Host Identifier ...
Is there a generic term to designate both public and private keys, certificates and maybe even passwords?
We have a new client with a webserver that's getting too much proxy abuse. The access_log is filled with these kind of lines: 64.187.XXX.XXX - - [12/May/2015:10:32:10 -0300] "GET https://ads.exoclick.com:443/ads.js HTTP/1.0" 404 204 "http://www.salefutures.com/?p=1349" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) A...
One of the ways that RSA keys get consistently owned is when they're generated without enough entropy. Dan Kaminsky refers to a study which found that 1 in 200 RSA keys were badly generated and these were the ones that were found, not to mention the millions of others that were not found. Thus, a good, properly seeded ...
How do real HTTPS servers validate client certificates? My context is business-to-business rather than regular human clients. I understand basic chain validation to a trusted root CA cert. But do servers typically have some sort of configuration to specify the subject names of certs they want to trust, or fingerprint v...
I was wondering which is the best way to secure data at rest (encrypt / decrypt) in a php application ( eq: stored in a database ) using AES ? Where is the best way to store the keys ?
Does My Passport WD keep a history of downloads, transfers etc? In other words can user A detect user B's activity? Or can it just see the content of the storage unit?
I am building a REST API that will receive requests like: GET /api/entities GET /api/entities?filter=X&sort=Y This seems straight forward: have the client HMAC(path + query, key), send me a key identifier and HMAC in a header or something, and then I do the same on the server to see if they match. Here's my concern: P...
When I use a tool like pdf2john.py from John The Ripper on an encrypted PDF, it gives me an output like: testing1.pdf:$pdf$2*3*128*-1028*1*16*3ba51ab2b4f9210274ccb07b8da9ec59*32*aba227f510daac66c2d0c7d40684ed8000000000000000000000000000000000*32*f576b0bc14308d979692e71693089bc3f3295620a5b8af07e2e4d1145ec7d77b:::::./tes...
Is there any method to know whether a website is https only or uses http webpages as well?Can it be done without using browsers cache?
I'm sure most of you are familiar with the JavaScript-based game Candy Box. As you probably know, one can cheat this game's candy system by sending commands to the console. For instance, if you click the link, you will see that your candy count increases slowly. Somebody using Google Chrome (I refer to Chrome specifica...
With Bug #1025703 in the latest Firefox 38, Mozilla has finally decided to stand up for its users instead of catering to the banks that don't want the passwords remembered. However, I've noticed about a year ago or so, that the remember-password bookmarklet has long as stopped working on oh-so-many sites, especially th...
I am actually testing a brute force attack with hydra on a kali linux machine (for educational purposes). I want to find the administrator password of a Joomla website. The Web server is on a dmz and my attacks are sent from the wan (there is a firewall between the subnets) with the command: hydra 10.12.14.3 -L login_...
According to the Diffie-Hellman key exchange get affected by logjam, and openID uses this to establish an association. So how this going to affect OpenID?
Can anyone verify this fix secures against the Logjam vulnerability for Apache Tomcat? I'm sceptical about it's effectiveness, since it doesn't mention how to implement the user defined 2048 bit DH parameter file in Tomcat, but its cipher list does use "DHE" ciphers. Yesterday there was a mention about a "SSLDHParamete...
I'm looking for a way locate a set of keys in memory on command. Use case would be cold boot attack prevention: a trigger on rack open, scramble the keys in memory followed by shutdown in full disk encryption system. Let's assume that dirty shutdown (since we lost encryption keys) is preferable to physical access to h...
In response to Logjam I want to prove I've hardened my services. I know that the DH param has to be 2048 bits at least and self generated. But I am unable to find a way to actually check this for something other than an HTTPS site. (thats I can do here) I would like to check my other SSL protected services for this a...
Suppose I connect to the Wi-Fi of a company I trust enough to give them my credit card number (say, my local airport). When I connect to their Wi-Fi network, my web browser gets redirected from any page to their captive payment page. With luck, they'd be using a company-owned domain and HTTPS. If I'm really lucky, it m...
So I am buying a brand new machine and a HDD separate, when I buy this new HDD should I wipe it before I install it ? What necessary steps should I take to make sure it's pretty much clean of any thirdparty stuff if any ? Is there anything I should do to the actual machine ? BIOS etc ? Thanks O
Having generated 2048-bit DH params, do I need to regenerate them regularly? If so, how frequently should I do this?
In another interesting post, one of the developers/security researchers behind Phuctor suggests that using different exponents with RSA keys will "[increase] the costs of attacking your setup astronomically." While the author does state that "it is not said nor implied here that there's any sort of theoretical vulnera...
When investigating malware alerts I would like to collect some information from the system before the decision gets made to take the system off of the network and re-imaged, or if further forensics is necessary. I am envisioning a batch script that collected all the basic information about the system (e.g. open networ...
We have a website, https://uk.care.com, that has a GeoTrust multi-SAN cert on it. The cert is up-to-date, using SHA-256, TLS 1.2, etc. When we view the site in Chrome on various desktop systems it shows the green lock in the status bar as expected, and as seen in this screenshot: However when we view the mobile versi...
I have two images I'm analyzing using volatility. I've found two instances where malfind found injected code in processes in which the code had well defined function prologues and returns. One was in an executable called mom.exe (from Windows), the other was in com.apple.WebKit (from OSX). Can y'all think of ANY leg...
I know that a filtered response on NMap means that the firewall dropped the packets or that NMap just didn't receive a response, but is there any way to circumvent this? Is it possible that the firewall is just dropping NMap's type of ping packets but would respond to a normal connection in telnet or a web browser? I'v...
Since the Linux RNG which provides /dev/random (and by extension /dev/urandom) is seeded by "mouse and keyboard activity, disk I/O operations, and specific interrupts" (source, PDF) and since virtual machines often don't have any of these attributes, it's likely that most Linux VMs RNGs aren't properly seeded. If this ...
I have someone I hired on a Freelancing website working for me - so far he has worked for me for about two weeks and is doing a good job. In order for him to complete his work he will need access to one of my accounts which has my credit card details in profile and other private details about myself. To complete his wo...
I am having a debate with several people regarding how much protection full disk encryption provides. dm-crypt is being used to encrypt data which is required by my company to be encrypted at rest. The Linux servers hosting the data reside in a secure data center with very little risk of unauthorized physical access,...
I don't know for you but I always felt like Android especially is not safe. Is somebody - the government or other - able to listen to my microphone, or access my hard drive remotely ? I'm wondering if secured apps like Textsecure and Redphone really help or are just an illusion. Indeed it is pointless to secure the tra...
Recently, one of my website was hacked by someone who uploaded an image (shell.gif) to my server. I have put server side validation to check file extension + mime type of the image. However, they are still able to upload shell script using gif extension again. Is there any better way to validate image file programmatic...
The TLS_FALLBACK_SCSV flag was touted as a way to prevent POODLE, which abused the potential to downgrade to SSLv3 from TLS. Does the implementation of this flag prevent similar downgrade attacks (e.g. FREAK, Logjam) against TLS? From what I can tell, TLSv1.2 doesn't have export ciphers, so a failure to achieve a downg...
I want to encrypt the files stored in SD card and I am using the CTR mode of AES to encrypt it. The key and IV are fixed. So each time I encrypt/decrypt I use the same key and nonce. Most of the people suggest not to use same nonce repeatedly. In my case since it is not the communication between two parties I think it ...
I am using CTR mode to encrypt/decrypt files. Theoretically CTR mode is faster than CFB or CBC because of its individual operations on blocks. In my case CTR mode takes almost as long as CFB. How can I attain/implement parallelization in CTR mode? Is it internally handled by the system?
An introductory C++ course is offered every year in our university. In order for students to code in C++ and submit their assignments, we give them shell access to a Linux server. They use ssh to log in to the server with their accounts, do the coding and keep the compiled code in their home directories. However, givin...
I am trying to understand why, in a Merkle Tree, the concatanation between hashes is used - and not for example the XOR operation. Can they be considered the same for the purpose of a Merkle tree? I read what is written in this link: Hash Function Xor but it didn't resolve my doubts.
Is it possible to detect a SSL strip attack by checking whether the page delivered is HTTPS or HTTP using JavaScript? I am assuming that the response page is HTTPS page instead of HTTP?
Is there any Windows/Linux host officially available on the Internet for practicing penetration testing? I am having continuous trouble with Virtual-Box. It is horribly slow to load and giving me lots of configuration troubles. Just eating up my time. This is my machine:
It is said they are uncrackable for now, but my question is how much uncrackable are they? Of course, it requires a situation to answer this, so here comes an assumed situation(the worst possible situation for a wifi/anything in security):- There is a device that is very portable wifi hotspot preloaded with all protoco...
Background: I'm creating a secure web app with the purpose to act as a no-knowledge storage for small data (we're talking a few bytes). Since all the encryption and decryption happens client-side, for the user to be able to manage their secrets, the data has to be decrypted to be searchable and so on. The server knows ...
Let's assume we have a computer that sends packets to the internet using dial-up connection, and we have access to the analog data on the phone line(we have access to the phone line), how can we make a proper sniff for the data that is being transmitted through?
I came across this textarea on the website of a Medical Center. Clients enter sensitive medical data here. What users see: HTML: <textarea name="message">&lt;?php echo $_POST['message']?&gt;</textarea> Could it be malicious/exploitable? What's the worst case scenario here?
Is it possible to decrypt a message which is encrypted with a revoked PGP key? I still have the private key, but Enigmail doesn't show me revoked keys neither does automatic decryption. Edit: I created a new key pair, but some people still use my old one. I want to be able to decrypt these messages of course.
For future refence: In light of answers and critique, my question should have been: 1. How does one make sure a physical attacker with access to a powered, but locked FDE PC fails his/hers attempt to clone the harddrives by somehow trigging a computer shutdown. But, in light of answers, it became clearer that "tripwire...
I have a link to a file which is stored in cloud: https://docs.google.com/file/d/0B8Tf19cw9c8SNnFPamhRWGFwaTq (I have edited a character from the original for privacy) So if the garbage string at the end is altered, what is the chance that a file stored in someone else's cloud gets accessed? Is this possible?
Inspired by this answer, I would like to know what are some common threats and mitigation techniques used to prevent one VM from leaking data to another via the shared storage infrastructure. Possible vulnerable scenarios include EMC SANs that promote/demote data from SATA to FLASH based on IOPS A server that attempts...
I know that the formula for the entropy of a message is: (I believe b can be set to 2) but when calculating the entropy of a password websites usually only compute log2(p-1), ignoring the first term. Is there a difference in these types of entropy? Note: The website I am referring to in this instance is http://passwor...
As I understand the process of verifying a remote computer's SSL certificate, the remote system sends its 'leaf' certificate and any intermediate certificates, but not the root certificate. Executing this openssl command shows that the root certificate is not sent by the remote server: openssl s_client -showcerts -con...
Definition of SQL Injection SQL injection is a code injection technique, used to attack data-driven applications, in which malicious SQL statements are inserted into an entry field for execution (e.g. to dump the database contents to the attacker). How SQL Injection impacts the Android O.S The SQLite used in android ap...
Definition of XSS If you search the web, there are many different ways to define a cross site scripting attack. Simply put, XSS vulnerabilities occur when a malicious attacker is permitted to inject a client-side script into a web site that is viewed by other people who become the victims of the attack. An example of a...
Definition of Directory Traversal Directory traversal is a form of HTTP exploit in which a hacker uses the software on a Web server to access data in a directory other than the server's root directory. If the attempt is successful, the hacker can view restricted files or even execute commands on the server. How Directo...
I need to block access to certain pages on a website using regular expression and/or wildcard. The site uses https and therefore cannot be blocked using regular parental control filters (this is because you can either block all https traffic or allow them but you cannot allow only certain URLs on a specific domain beca...
I'm creating a password storage system for a web server I'm building for fun. Would it be more secure for me to use both SHA2 and SHA3 for hashing, and then store them in a database? If I use both algos, then I would be able to detect whether or not someone tried to send a SHA2 collision (however unlikely that may be),...
I am currently developing a REST API with Java EE and MySQL, it will feed Data to a Android App. The Data comes from an AngularJS Frontend. So my questions are, when: When do I escape the data? Before it is filled in the prepared statements? When I deliver the JSON? Both? And how: How should I escape the data? I curren...
I can understand what a buffer overflow is and that it allows you to write in places of the memory that you shouldn't be able to. I can also grasp the concept that there may be other software vulnerabilities out there that work in some different way that allow you to place things you want in memory. I've also gained ac...
According to techtarget.com Cross-Site Request Forgery is: a method of attacking a Web site in which an intruder masquerades as a legitimate and trusted user. An XSRF attack can be used to modify firewall settings, post unauthorized data on a forum or conduct fraudulent financial transactions. A compromised us...
I have researched several DoS attacks within Android e.g.: CVE-2015-1474 CVE-2013-5933 CVE-2013-4710 CVE-2012-6301 etc. And although I found DoS attacks within Android difficult to understand at first. Even though I understand what Memory Corruption is e.g: a programatic situation wherein, contents of memory locatio...
I'm putting my server to use as a file server and a firewall. I'm looking at KVM or Xen VM setup, where file server and firewall get their own VMs and host is just supplying the hardware (so Xen way, I guess). I'll pick up 2+ port NIC for the firewall and I'll PCI-passthru to it. WAN traffic goes in to the firewall's N...
I'm just starting out in Android and I've gotten my head around general programming within Android, but I've recently started trying to research security within Android. What coding practices would you suggest I should avoid or programmatic situations to watch out for, in an effort to avoid overflow vulnerabilities?
In the wake of the POODLE attack, many web sites have dropped support for SSLv3. But some clients still in relatively common use as of May 2015 still initiate the handshake with an SSLv2 ClientHello message. For example, openssl 0.9.8 which ships with Mac OS X 10.10, and Java 6 which is also still in common use at le...
In the light of Snowden revelations I become very paranoid. Yesterday I did a netstat -t -p and from my browser there were several connections pointing to my isp. I had only 2 pages open. Trying to find source of the connection, pinged all urls that the browser connected to. gstatic.com was pointing to one of my isp ...
Assume I am building a local web application (e.g. browser extension) in HTML5 to encrypt a database locally. Access to the database is controlled by a password and a cryptographic master key is derived from the password using a PBKDF. I want to store the derived master key in memory only while the application is in us...
I'm not asking if Tor is secure, I'm asking if an observer can know you are using Tor? For example if a persons ISP or company network monitors traffic would they be able to determine with certainty that a person is using Tor or not? For example, the exit nodes certainly are known, though I'm uncertain if the first nod...
I use my trusted VPN primarily for the sake of anonymity (to avoid data being collected about my Internet browsing), although I am aware of its security benefit -- traffic encryption. My question, however, stems from an unsubstantiated fear I have of using the VPN when accessing sensitive sites (banking, primary email,...
If I have the MAC address and S/N of a Lenovo 3000 Laptop, is there some way for me to find exact street location of this laptop ? This machine was stolen from me last year and was my back up machine . Contained all my personal info prior to 2009, some of which I now desperately need. I believe I have the 2 exact stree...
I see vague notes on forensic HPA interest, but it's never specific. What kind of information can be extracted from a PC's HPA? From http://robert.penz.name/68/do-you-know-what-a-host-protected-area-hpa-is/ For law enforcement agencies and forensic experts it is important to detect HPAs and recovery data from it. For ...
Gmail has been hiding originating IP addresses for quite some time now. Hotmail and Yahoo have started doing this too. Apart from obvious privacy implications of revealing the sender's IP address, is there another security aspect of hiding (and in many cases, hashing the originating IP address)?
I have a fixed number of web servers. Each web server represents a company and the users of the company talk to their assigned web server. I have this setup to decentralise the databases. So if one web server got hacked, the hacker only acquires a small amount of the total data. My clients are not willing to upload th...
I know they're deprecated, but does anyone still use 1024 bit RSA encryption or certificates? Do you know of any examples of systems that use it today? What would be the implication if someone factored RSA-1024?
I have a personal website/email server, basically for my own self learning use. I am using CACert (http://www.cacert.org/) for my SSL certificate as advised in a tutorial. I have no clue about security, so please pardon this simple question. Ok, so my question is, would directly using my own generated certificate witho...
I was reading Mozilla's security blog Phasing out Certificates with 1024-bit RSA Keys. Effectively, some browsers are deprecating 1024-bit RSA for CAs and Subordinate CAs because the certificate must withstand attack for 10 to 30 years. As far as I know, 1024-bit RSA provides about 80-bits of security due to advances i...
When I read this question about what gets signed with the private key by the client I wondered: What stops the following scenario from happening: A client connects to an SSH server. The SSH server knows that the client also has an account on a second SSH server. It connects to that second SSH server, providing the aut...
A naive developers might store a password in the database directly, which would then be compared directly with the password sent from a client. A more security conscious developer might instead store only the hash of the password in the database, and then compare the hash of the password from the client. But most peop...
As far as I know, in order to securely delete the hard drive's contents, one should fill it with zeroes or, for added security and harder recoverability, random data first and then all zeroes. In order to get rid of all the data wouldn't be simpler to fill it with all ones, thus minimizing the wear of repeated writes a...
I need help. I actually encrypted two mouths ago my external HDD with LUKS but know i have lost my password. I am so depressed because, all of my life is on this HDD. Is there any possibility to get back my files: i think i almost know the password. Please help me. EDIT: 24.05.15 6:27 pm Manumit: thank you. But the pro...
Edit: Let's assume Windows 7 and potentially Windows Server 2003/2008. IMHO, any machine that has malware should be reimaged/reformatted/OS reinstalled before it is deployed back into the environment. However, this isn't always practical. If the malware-type can be identified and potentially removed, sometimes the busi...
I am looking at using a third party key distribution protocol. I do not have much details of the internals itself. However I am required to configure the time for regeneration of the (128 bit symmetric keys used for encryption. Are there any standard mechanism to determine that. I understand that regeneration will be d...
To employ end-to-end encryption, I am using a small tool that encrypts contents that is then posted and stored on our servers. While there are several concerns on client based encryption, I think it is better then no encryption at all. The tool is not delivered by the web pages itself, but stored on a trusted server a...
Can someone explain how torrent poisoning attacks work? I am looking for some tutorials on how to do it. What are the countermeasures that someone can use to defend themselves against it?
Many applications are still using TLS v1 for video conferencing and VOIP calls. Is TLS v1 really secure for video and voice & video calling? or can some one can easily snoop your sessions with Wireshark or any snooping software? Can someone easily decrypt TLS v1 sessions with these tools? How much time would a sniffer ...
Torrent clients offer encryption of traffic using RC4, and people consider this very safe to hide traffic information from ISP. Now since I have a website with SSL encryption, I know that RC4 has a vulnerability. But does this apply to torrents encryption? How safe is it to encrypt torrent traffic with RC4?
I am using a Windows 7 and I want to Disable some Services, How can I do this? For my machine only? For some machines inside the Active Directory I can control? For all machines inside the Active Directory I can control? Some of the services I would like to disable are: Microsoft Lync snare
I am refreshing my understanding of IPSEC. IPSec is an IETF defined set of security services that use open standards to provide data confidentiality, integrity, and authentication between peers. IPsec involves two security services: Authentication Header (AH): This authenticates the sender and it discovers any changes...
Are both GET and POST request vulnerable to CSRF? Should we use PUT instead?
I have a server with a .img file this is encrypted with luks(aes-256,plain64,xts,sha512) Is it safe to mount this image over cifs(samba), or does doing so risk exposing the volume password or master key?
I am working on a PHP website and my researches showed that it is entirely possible that the server can get hacked and the PHP files may get exposed. I store the MySQL DB Username and Password within the PHP files in the form of constants, which is then used while forming the connection string. define("HOSTNAME","hostn...