instruction
stringlengths
24
27.2k
Is it possible to perform a reflected XSS attack via the $_FILES variable? The vulnerable code I am imagining might look like this: echo $_FILES["file"]["name"]; I read that it's not possible to programmatically upload a file from a persons computer without their actual interaction (which makes sense, as that would be...
Looking at the strace output of GPG on my box seems to show that it uses /dev/urandom when encrypting a message without any access to /dev/random even when --no-random-seed-file is specified. Are messages at risk of being encrypted with a low entropy session key? If so then how does one instruct GPG to not behave like ...
I got the idea from someone saying the best way is to hide the needle in a stack of needles, not in a haystack. I am considering writing a little app to accompany my Keepass installation. The app would create X (1024?) .kdbx files with random encrypted data of various sizes. They would have random 3 character names. I ...
Assuming shared parameters: prime p base g Alice's private key is a and her public key is A, which is g ^ a mod p Calcuating A requires g * g * g... a times. Modulus is applied whenever necessary. If an attacker knows A, p, and g, why is it hard to calculate a? Would he not just keep multiplying on g and seeing if he'...
Suppose the target of a Denial of Service attack is a PC on LAN with IP 192.168.1.10. Then, I can continue to ping the target by running the ping command in an infinite loop in CMD, that is, by executing the command ping 192.168.1.10 -t. How long would such a ping flood take to successfully crash the target PC, assumi...
The CISSP CBK definition says that a hybrid could is a mix of public and private. But what exactly does it mean? Is it more a conceptual idea:If you use both a public and a private your company is a hybrid user or You have a single cloud with different logical access and permissions for public usage and private (wit...
I am playing with XSSF with Metasploit and attacking Mutilldae(security 0). I was able to get the generic XSS inject working. The inject was added to the Mutilldae blog. However, when I try to get the cookie stealer to work the program just sits there with no success. I have tried it on 3 devices with Chrome and Firef...
I am working on a new software application that will have access to millions of patient medical records. I want this to be secure. The initial thought process was to simply use a standard username and password scheme. The problem I see with this is that all of our users will simply use the same username/password comb...
If you use a service like FreeDNS for a DNS, does this introduce any additional security risk as opposed to simply paying a registrar? Obviously the owner of FreeDNS could hijack your domain. But beyond that, is there any extra risk? For instance, if you SSH into the server using the domain, will FreeDNS have an opport...
When I log in into Facebook, using Wireshark in the same machine, I can read the request data in plain-text. That doesn't happen when I'm sniffing my LAN: I can read the SSL packets but they are already encrypted. The only way to read these packets in a LAN environment is intercepting the POST request before it goes to...
I'm trying to debug a TLS handshake between a client and a server Client sends Hello Server sends Hello, Certificate, Certificate request, Server hello done. client sends Encrypted alert - content tpe Alert(21) client sends Client key exchange client sends Change cipher spec server sends Change cipher spec client s...
I'm exploring various ways to implement cryptographic read receipts, that would be used to tell the content producer that the content was viewed. In addition to feedback reporting, a response might also provide a decryption key useful for the client to decrypt additional content. Both the advertisement and featured co...
In PKCS7 / CMS, for the signed-data content type, there's a CertifcateChoices field in the certicates field in SignedData that is a SET of CertificateChoices. CertificateChoices is defined thusly: CertificateChoices ::= CHOICE { certificate Certificate, extendedCertificate [0] IMPLICIT ExtendedCertificate,...
I am wondering if I can get the SSL Key given the following conditions: Encrypted Text is known Decrypted Text is known Any ideas on how I can create a program that does this?
I'm not an admin, I just created a website, and there's also a mail server on the server I payed for from my hosting provider. Most for what I learnt about mail servers is from an internet tutorials. I'm using Open Panel (with Postfix), because I failed with configuring Exim properly. But my problems haven't come to an...
Over the past year I have created multiple SSL certificates that are all valid for a year. In a week or so, the first will expire. I thought it would be practical if all my certificates would have the same expiration date. That way, I know of one day I have to renew all certificates; it's easier to not make a mistake t...
I am aware of some malware that spreads when two devices are paired using Bluetooth; but can malware spread when sending a clean file to someone or receiving it via bluetooth ? If so, does it need some action from the user to start the malicious code ?
I have a script in C, which is able to determine the password of certain data. It uses HMAC and RC4 algorithms to encrypt the given password and then compares that later to the given data. If they are the same, the given password was the original one. Now I want to implement this method into a John Module to use their...
Say, there's an upload function where users are supposed to upload images only. However, it's possible to upload arbitrary files bypassing the restriction. Say, I uploaded a shell (aspx) and requested the corresponding resource. As I've read, it's possible to execute such shell code in some scenarios. The server, howev...
I'm creating HTTP REST service which will be available over tls only. For authentication purposes I plan to generate JWT token for every user using HMAC HS256. I need a secret key for HMAC. What are the requirements for secret key? Do I need a long string of random characters? Or fixed-length string? Or what?
In-band signalling or the mixing of control and metadata on the same channel is what allowed the early phone phreakers to obtain free calls on telecommunications systems. By sending control tones through telephone receivers where only user data was expected they were able to connect free of charge etc. I was wondering ...
With regards to the report and video link below: How do I guard against this sort of snooping? Is it only possible if unwittingly install some kind of trojan? BBC Click Report: Surveillance software which can snoop on mobiles, tablets and PCs was stolen from the vendors, Hacking Team, last month. The attackers publ...
Unlike the United Kingdom, U.S. citizens don't have an explicit right to privacy in the Constitution. Although there are implied privacy rights within "penumbras" of the Bill of Rights this has evolved into various laws that have changed depending on the situation... it's hard to sus though and figure out. Generally sp...
Suppose my web browser or any other web-connected app has a minor security hole that won't allow an attacker to run code but will allow them to write a piece of text into a text file I own. On a typical Linux distro however, certain text files, such as .bashrc, are bound to get executed (for all intents and purposes), ...
One of our users just sent us a screenshot of them browsing our site using Chrome for OS X, version 44.0.2403.130. This came as a surprise because I thought that our certificates were up to date (via RapidSSL). I'm not 100% sure I understand the issue and am trying to figure out what we can do to fix it. Thank you in a...
The email message looks like this. This person used a church member's name and used a totally different email address. It went like this: Hi! How are you? (then gives a bad web address) Gary Mecham Then, below that in the bottom left corner it says "Sent from my iPhone, with a fraudulent web address" The email domain...
Yesterday I found out there is this http://pastebin.com/MRRny4Ht PHP file in my friends server. I want to know how was the hacker able to upload it there? I read the similar questions but couldn't find a correct answer. EDIT:- Today I got to know that the WordPress site has been breached by brute-forcing the password (...
Businesses have to collect information about their clients, and clients often want assurance that their information is secure. What is the accepted way to concisely and clearly communicate how secure the systems are that are transmitting and storing the client's data? From what I can tell, it sounds like citing complia...
What makes Linux so different than Windows in terms of anti-virus needs? My question is not if I should get an anti-virus for my Linux. I perfectly understand why an AV is important. I would like to understand if there are conceptual (technical) differences which make Linux less vulnerable than Windows (comparing for ...
CNN article link. The article claims that a household appliance can be hacked by reprogramming the circuits inside of it to release electromagnetic waves that could release system information, but exactly how credible is the threat, or is it as bad as it sounds?
It seems Google activated central place for storing app/website passwords which is accessible at https://passwords.google.com/ and all the remembered Chrome passwords are synched there. In what format (encryption type) or how all the passwords are stored, how it's protected from hackers and how safe/risky is to keep t...
Please note that this is not about how SSL communication happens between browser (I researched and understood it) and client but other aspects. Using Digicert's SSL mechanism explanation I have understood how the data is encrypted between browsers and servers. Below is my understanding. Browser will send a request...
Are there ways to passively fingerprint (infer) the operating system or mail client that an email sender is using, based upon the headers of an email from that sender? I'm familiar with passive network fingerprinting tools like p0f: given a trace of some packets sent from a particular machine, they try to infer the ope...
I see a lot of talk online about whipping up a VPN connection using PPP over SSH. This term confuses me, as SSH is an app tier protocol and PPP operates on the data-link layer. So, my question is: Shouldn't it technically be SSH over PPP, and not PPP over SSH?
We are developing an iOS app that allows users to store/modify Protected Health Information (PHI) and the app needs to allow users to do so without an internet connection for large parts of the process. We will need to encrypt the data but are having a difficult time coming up with a solution on how to properly do so a...
I've recently noticed that my terminal starts with something like "android... " even though I don't have any android device. Furthermore I noticed that my macbook only starts with "android..." when it's connected to the internet. If I turn my wireless off, then my macbook starts with "USER-macbook-air" like usually. Se...
On this site there are comments such as: ÃÊÁ ¹67 Èìåíè Âîðîõîáîâà â Ìîñêâå (Ãîðîäñêîé äåïàðòàìåíò çäðàâîîõðàíåíèÿ) ïî ïðàâó íà -ñåãîäíÿøíèé äåíü ñ÷èòàåòñÿ êðóïíåéøèì âðà÷åáíûì çàâåäåíèåì ãîðîäà Ìîñêâû. Ïîìîùü â äèàãíîñòèêå, ëå÷åíèè (ïëàíîâîì ëèáî àâàðèéíîì) îêàçûâàåòñÿ àáñîëþòíî âñåì áåç èñêëþ÷åí They are obviously spa...
I want to verifiably demonstrate that there are no hidden partitions, or hidden messages in a given message. In this scenario, assume the subject is being monitored (consensually) and agrees to align with whatever audits or restrictions need to be in place. OR the receiver agrees to have messages filtered as to reduce...
I can see that my application, which is on several virtual instances, is being scanned; I guess the attackers are in "recon mode." What I know: I understand that we can block dirbuster, and other scanners in .htaccess, (However, you could just change the name of the user agent and then this would not be suitable solut...
I've noticed that from a (personal) UX point of view, 4 numbers which my online banking uses seems to be a sweet spot in terms of holding it in my head from looking at my phone to typing it it. But Google codes are 6 digits, and my.gov.au (crappy website for lodging tax returns etc) is something ridiculous like 8 lette...
If I am implementing WEP into my office infrastructure, which application should I be less concerned about? File Share Traffic Printer Traffic Exchange Mail Server Traffic SSL Traffic Answer would be appreciated with appropriate reasoning. Note: I came across this question from a cryptography trivia. By posting this ...
My bank does not have an API so I want my server to log in and check incoming payments to notify me if a client has paid or not. I would like the server to log in and scrape using Beautifulsoup and then logout automatically once a day. If I store my username and password on the server and not in a file and only allo...
I've been spending my spare time coming up with the basis for an encryption algorithm. I am completely unfamiliar with computer programming, but my time as a Network Technician left me incredibly familiar with binary. I was playing around with numbers on a paper at work one day (being a Network Tech is pretty boring ...
I've seen it said that when using the built-in Windows Administrator account, the best practice is to enable it (net user administrator /active:yes), use it, and then disable it. I do realize it's a security measure against malware not to use it when not needed (and in fact, not use a regular admin account either), But...
I am running a web server in AWS and recently purchased an SSL cert to encrypt traffic, let's say for example.com. Since example.com is running in production, how would I actually test the cert is working properly? I cannot test it with staging.example.com because it's not a wildcard cert. I don't want to just install ...
My network is segmented into internal (which holds private cardholder data), DMZ and VPN. There is a gateway in between which restricts access, for example: VPN: 10.0.0.0/24 DMZ: 10.1.0.0/24 INT: 10.2.0.0/24 GW / firewall has ip .1 in all three networks. Access from DMZ to cardholder (INT) is limited via FW and access ...
As a security researcher, I have become familiar with different related tools and software packages. The other day, I opened up one of those software packages and was attempting to attack a personal wifi network with a WPS attack to asses the usefulness of the software. I clicked the Start option and then let it run. L...
I recently reported a security vulnerability and it was patched. The patch (and associated issue) are both out in the open in a Github repo (aka public). I contacted cve-assign@mitre.org to get a CVE Identifier issued for the vulnerability. I have been issued a CVE Identifier. Do I need to do anything else (e.g. suppl...
According to my experience surfing the web, many websites foo.com don't support https. When I go to https://foo.com, it just changes to foo.com Can attackers forge the fact that foo.com doesn't support https and use http instead?
Imagine the following scenario: Users connect to an open WiFi network (no password, no encryption) All users stick to secure transmission protocols for all confidential data (HTTPS, SSH, VPN, etc.) Users devices do not accept any inbound connections Would this scenario provide a reasonable level of security for the u...
As you know, there are attacks on the firmware of BIOS and HDD. What if I used some kind of VMS, maybe VirtualBox? Will this protect me from an already infected BIOS (and by that, I mean, no one can steal my RSA private keys)? What if I can use the VM from Tails OS that does not touch the HDD? Will that protect me from...
I tested my server against cryptographic attacks and I have a few major and minor issues. However I would like to know how can I mitigate and protect against such vulnerability warning: Secure Client-Initiated Renegotiation - DoS DANGER
As you may or may not be aware, even when browsing "incognito", you can theoretically be tracked. Browsers have unique fingerprints, just like people do. Check this link to learn more. While I can easily see and understand the theory behind it, I searched and found no recorded evidence of browser fingerprints being...
So I've been reading a bit about the Code Red worm, and I get the gist but the overflow string doesn't make sense to me. From this site, it says that the overflow string the worm used was /default.ida?NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN NNNN...
I'm trying to secure access to my web server. I have been implementing a JSON web token authentication where I randomly generate a secretkey and associate it with that user. The secretkey will then be used to encode the JSON web token. Then the user will use the JSON web token to access my web server. I was also thinki...
Reading other questions such as this or this or this, it seems if I'm the only one using the wifi connection at home I can be sure no man in the middle attack is happening, because there is no way to stand in the middle due to lack of physical access to network infrastructure. Am I right? or there is a way to arbitrari...
Today I learned that Django's CSRF protection uses refer(r)er header checking in addition to checking a hidden form field against a cookie. It seems to be important, judging from docs and issue below. It only checks this over HTTPS though. I've also noticed that almost no other website checks referer [since I turned of...
I'm trying to figure out how to use JWTs that are transmitted in cookies for an SPA It needs to be in cookies because we want non-ajax requests to also send the jwt, and it should "just work" for all subdomains. I have the cookie with the token being generated and updated fine on the server side. What I'm trying to fig...
As a follow-on to these questions: What unique fingerprinting information can an iOS7 app collect? What unique device fingerprinting information can an iOS8 app collect? Apple has apparently removed the ability to see other running processes in iOS 9, and throttled (and otherwise limited) the ability to test URL scheme...
Are the spelling and grammar mistakes in phishing emails done on purpose? Is there some wisdom behind it? Or they are simply indicative of the fact that they've been written by someone who does not natively speak English?
we all know that some countries do their best to spy on their citizens and the citizen of other countries and that countries maybe have specialized spying agencies wither they are known or not, and, from my basic understanding that the most effective ways is to infect the HDD or BIOS firmware. Now the infected HDD can ...
I'm at a service provider organization that supports shibboleth-style and CAS third party authentication. I'm looking at the requirements to meet the low baseline of FedRamp (see FedRAMP Security Controls excel workbook and NIST SP 800-53r4) and note the requirement that "IA-2 (12) Identification and Authentication (O...
I just read that "ransom" attacks are on the rise - where the attacker uses a vulnerability to enable them to encrypt files and demand money for the key. Why is this any different to a disk failure, where the solution is "get the backup"?
As per section 5.3 of RFC 4492, I'm confused with the following table: Key Exchange Algorithm Server Certificate Type ---------------------- ----------------------- ECDH_ECDSA Certificate MUST contain an ECDH-capable public key. It ...
When viewing a key record in a public key server, such as this one, there are lots of keywords used: sig, sig3, exp3, Policy, sbind…). I understand that "sig" probably means a signature, but what's the difference between a "sig" and a "sig3" and a "sbind"? And what exactly is a "Policy" record?
Please read as I did many searches and believe this is NOT a duplicate question. For your reference, I've read these articles and other questions already: How do you overcome the problem of the salt being public and known by the attacker does it matter how random a salt is Crackstats: Hashing Security Storing part of ...
How dangerous for the user such 3rd party search/ad Internet Explorer toolbars are? Are they able to transmit information regarding my Internet surfing behaviour back to their developers even when I don't interact with them? Are they able to modify my page results and maliciously implement Cross-Site Scripting stealin...
Preferably an alternative that is Free Liberating Open-Source Software/ FLOSS. I would have used Truecrypt, but it has been discontinued.
I am using Thunderbird with Enigmail and OpenPGP to encrypt and/or sign E-Mails. On many occasions Enigmail complains that I have too long lines in the mail and asks how it should wrap them. However this doesn't seem to follow any logical trends. Sometimes it complains, sometimes it doesn't. My question however: What d...
If I encrypt all my files can I get "attacked" by ransom attacks? Because my files are already encrypted, they cannot access them, so I should be safe or am I wrong? Also, if someone could tell me how this encryption works, I would be really thankful. I already read some articles on Wikipedia and it states there th...
MSDN: The string result from the HtmlAttributeEncode method should be used only for double-quoted attributes. Security issues might arise when using the HtmlAttributeEncode method with single-quoted attributes. Anything I found in my searches was saying that HttpUtility.HtmlAttributeEncode does not encode apostrophe...
Whenever you go to Google's Play Store and install an app, a list of all the necessary access is shown and a confirmation to proceed with the installation is required. Let's imagine I would like to install Angry Birds: In-app purchases Identity Photos/Media/Files Wifi connection information Device ID & call informati...
I think we all know that running a CA is really hard to get right. Now there's a "new" system that uses digital signatures to associate data with names: DNSSEC. DNSSEC signs the DNS records and therefore binds their values (f.ex. TLSA / A records) to the specific domain name. For the question let's consider two scenari...
Does encrypting a large file and subsequently having to decrypt a large file make it more secure than a small one when attempting to brute force it? If you have to brute force a 25GB file and a 250MB file do you have to try to decrypt the whole thing in order to check a given password or is there some short cut allowin...
Assume that you want to login your Gmail account on your friend's laptop and you are doubt if he installed a keylogger on his computer. How you can be sure if there is any key logger installed or not?
I know that normally it's the public key to be shared and the private key to be kept secret (hence the names) in asymmetric encryption. I have a special case that I want to encrypt some files and let users decrypt them. Symmetric encryption cannot be used according to the design. Digital signature cannot be used becaus...
I was recently asked to look at a Windows computer behaving strangely, and I found a "Your files have been encrypted" ransom note that had been left in several directories. I wasn't able to identify any actual encrypted files, except for one copy of the ransom note that had been encrypted by a different ransomware that...
I read about application threat modeling which makes a software products secure from its initial stages (SDLC). But if we do something wrong in the deployment phase still that will be an issue. For example, a sysadmin opens a port in the firewall that isn't required by the product. So is there a methodology that we ca...
New to network security here. Is exploiting known/zero day vulnerabilities on "listening" services after scanning for open ports the only way or at least the most common way to compromise a system? Of course we're not talking about completely different things like DDOS, malware and whatnot. Just wondering if opening up...
What is the most secure way for two people to communicate digitally when one person is in the U.S. and the other is in China (likely being monitored)? Updated: Here's some additional info: The data are traveling both ways. The amounts of data are small: less than 10MB usually. GPG may satisfy the requirements. I post...
There are several uses for a cookie, and I would like to offer some kind of guarantee that a cookie is being used for a specific, limited purpose and scope. In my case, I want to prove that a cookie is only used for authentication. Question Is there any prior research that describes how a cookie, or cookie alternative...
Just about every article I read about Cryptowall, Cryptolocker, and its ilk seems to assume that the reader is running some flavor of Windows. When I Google "ransomware OSX", I get a long list of articles about the FBI Javascript "ransomware". However, this is not really ransomware in the same sense as Cryptowall and ...
I recently have used Bootcamp to set up a new partition and run Windows 7. About half of my HDD is designated to my OS X partition and the other half is allocated to the new Windows 7 partition. If something were to happen to my Windows 7 partition with Bootcamp, is the OS X partition still safe? Or is it at risk due t...
What is a convenient write once media to use with a Computer, preferably via the USB interface. I often see this use-case in several ways: I have a server whose logs need to be on a medium that cannot later be erased or changed by an adversary to hide his tracks There's photos or other media that need to be dumped fo...
A support team is answering calls and providing well support. It would be conceivable for someone to impersonate or ask for something which should be authenticated first. Which are the best methods to authenticate who they are over the phone? [Clarification] To narrow it down, I have a website with a specific service. ...
If I have a database where I store users' sensitive information, and encrypt that information, do I need to do something like PBKDF2(password,salt,10^5) for the encryption key as well as the hash?
Security policies sometimes demand that root be the first entry in the /etc/passwd file. Is there a valid reason for requiring this, or is it just conventional to do so since the root account is the first one created? I understand that some places used to use multiple accounts with the same numeric UID, which is bad pr...
I remember the times when Javascript usage was so innocent; a small pop-up here, a dialog message there. Nowadays Javascript "steals" data by exploiting vulnerabilities on "mature" browsers such as Firefox (prior to 39.0.3.), and making the world under alert. The vulnerability comes from the interaction of the mechan...
I'm studying network security on my own and I have a few basic theoretical questions here. Would dropping every incoming packet at the network layer be enough to prevent active OS fingerprinting? I guess this could be done with iptables, is that right? I also guess that, if done this way, opening any port would be enou...
I get that websites that contain confidential personal information (e.g. banking system) have short sessions and expiration time for cookies for obviously reason. But what are the causes for sites, say Wikipedia, to require logging on every 30 days (used to be 14), while supposedly more sensitive sites like Gmail don'...
As far as I know, many exploits rely on overwriting return address of the function they try to exploit. They do it by buffer overruns. But what if the compiler set up two separate stacks far from each other in the address space, and used one of them (maybe the system one, like esp/rsp-driven one on x86* systems) for re...
The Black Hat conference (I wasn't there) had a session on "ratters" (RAT for Remote Access Trojan) who take illicit footage of users (usually female) by hijacking their systems. The question I have is if this happens on a system or web-cam device that has an "in use" LED on it, is it possible for them to do this witho...
I was recently browsing online when I came across this page: When I chose to close the tab, I received this message: And after choosing "Leave this page" twice, I receive this message: Choosing OK reverts back to the first message. It appears the only way I can close this tab is to force close Internet Explorer. I a...
I have read that GnuPG limits the size of RSA keys to 4096-bits because this could lead to problems with running out of secure memory. But in which operation is this the case? Generating the keys? Encryption? Decryption? Signing? Verifying? All of them? I have now modified the source code of GnuPG to allow me to gene...
I am analyzing my incoming connection log from my Linksys E1000 wireless router. [Bonus points if anyone can tell me how long these routers store logs because I can't figure it out anywhere, so I can't really correlate well.] I have three entries. One is a known entry as it shows my friend's ISP and says the port that ...
Isnt Secure Remote Password Protocol (SRP) pretty much client side hashing? Argon2 the winner of the PHC also allows for client side hashing. How do these systems avoid the plaintext equivalence problem? Several questions/answers poo poo this Client side password hashing Should I obfuscate passwords before hashing? S...
Typically, ransomware will encrypt the victim's files and ask for money in exchange for the decryption key. If you do pay the ransom, does it actually deliver on this promise? It seems to me that having employed the ransomware in the first place, the operator has already proven himself unreliable and willing to act in ...
I'm trying to create a stateless application server architecture and I would like to store session data in cookies. All pages using the session would be served over HTTPS. I was planning on using AES256 to ensure the client can't change the value of the cookie. So the flow would look like this: Server receives request...
As I went through Fido specifications: the server (providing web app/services) need to trust user agent for local fido authentication and if needed can enforce certain policies" I am not sure what that translates into. How is the trust established? Aren't there any side effects that now authentication is performed ...
If I were to not update Adobe Flash and instead used the old version (from before the Hacking Team 0-day exploit was published in the internet), in that case, would Microsoft EMET protect me from the latest Hacking Team Adobe Flash 0-day exploit? I mean, was the Microsoft EMET effective in protecting user from Hacki...