instruction
stringlengths
24
27.2k
I was somewhat suprised that the sysadmin approved a one-letter username like "m" and my username is also short ("nik"). I think that if usernames are brute force attacked then the username should also be longer than just a few characters. Do you agree?
The hacker has complete control of my computer; opening and shutting programs at will. Deleting files that display the remote user ip address. We have changed the password several times; but no luck. Originally there was a remote sharing program that Geek Squad removed; however, the situation still continues. Is th...
I started to study pentesting for two months with the book named Penetration Testing - A Hands on Introduction to Hacking by Georgia Weidmann, and now I am really hungry to learn more :) . I think I found the right area to study for years (IT&Network&System Security). When finished my book I think that I must have a pl...
On Linux (Debian x64) I recently installed some software with: apt-get install the_package_name APT told me some packages couldn't be authenticated but I ignored the warning and installed anyway. Now I want to check if the installed packages are valid. Is it possible to check authenticity of 'installed' packages?
I need to set users up for subversion access, and we're currently stuck using htpasswd for our credential storage. If a user sends me an htpasswd record via email (or GChat / off the record?), what's the level of risk we're incurring? Hashing would be done using the default htpasswd algorithm: htpasswd -n someuser And ...
Could anyone help to solve the following practice problem related to buffer overflow? On this problem, I am confused about how the variables and addresses should be stored within the stack. Here is my best guess, but I'm not confident that it is correct: On this problem, I would think you would just need to fill ...
Can I do something like: gpg --public-key my.pub -e file.txt If I can, any reason that I should not do that? P/s: I think I don't need to know about the recipient because my machine only has one public key at a time. But that key will change soon (and I can delete all the old encrypted files, so no need to keep the...
I'm having a little bit of trouble understanding why the HTTPS protocol includes the host name in plain text. I have read that the host name and IP addresses of an HTTPS packet are not encrypted. Why the host name cannot be encrypted? Can't we just leave the destination IP in plain text (so the packet is routable), the...
I am attempting to implement certificate pinning across a suite of mobile apps. I have been reading a lot about the different strategies (pinning to the CA/intermediate, pinning to a leaf cert, providing multiple cert options on the client due to expiry). In order to fully understand our best approach for the front an...
We are writing a custom socket server which runs on a high port. Until recently, it has been running behind a corporate firewall. Now, it has been decided that the server should be taken outside the firewall, and serve internet traffic. As written today, the server directly mmap's /dev/mem, which requires root. This fe...
I know viruses uses exploits to gain admin rights to install software. My question is here at work, we have people end up with the Bing Bar installed from time to time on their machines. It is listed in the Programs and Features as an installed programs - which requires admin rights to install. My question is, all of t...
I am using chrome, and when I perform a google search I get the green icon in my browser. When I click on the icon to see the certificate information, in the 'Connection' tab is says: "The identity of this website has been verified by proxy.example.com..." proxy.example.com - replace example with a company name When v...
I guess this is way to settle an internal debate I am having with myself. In my provisioning process, I am wanting to share a common public and private ssh keys for each machine in a clusters, (because these are behind a loadbalancer, and I don't want to get key mismatch errors) And an internal twitch, is telling me th...
Looking to implement some additional mod_sec rulesets on our server. OWASP and Atomic keep coming up as the best of the best. Would it be wise to implement both? Or, would one or the other be sufficient for PCI compliance?
I know that Same Origin Policy (SOP) prevents a page/script from one origin to read response from another origin, but it does not prevents the page/script from making a XMLHttpRequest (XHR) request to a different origin. From Mozilla's Developer site: Cross-origin writes are typically allowed. Examples are links, re...
Is there an exploit for this vulnerability? EDIT Python DoS via hash algorithm collision - oCERT advisory 2011-003. Affected numerous languages. No CVE for Python but CVEs for other languages.
I received an email for my WordPress site, where the comment section is disabled. This was the email: "Author: google (IP: 210.56.50.40, 210.56.50.40) Email: guest@gmail.com URL: http://spider.google.com Who is?: http://whois.arin.net/rest/ip/210.56.50.40 Comment: Welcome to WordPress. This is your first post. [<a ...
Printers, nowadays, almost always include some form of non-volatile storage that keep tracks of pretty much everything that went through the device. In the case of larger, "departmental" system that often combine print/scan/fax functionality, that storage can be pretty massive and often contains traces of confidential ...
Let's say we're running a service that's bound to localhost (127.0.0.1), and the goal is to only allow local clients (i.e. from the same machine only) What techniques might be used to break this security, are there additional measures that could be used to enforce it?
I'm building a web service (a control panel for clients) (PHP on linux apache) and trying from the design to make it the most secure as I can, Can anyone provide me with some kind of a check-list of things I need to be focusing on? I already implemented: SQLi protection, per session CSRF token, secure password hashi...
Will I need to add any attribute to restrict drag and drop of any file?
I'm evaluating a cloud storage product. The marketing literature states it uses Cryptree. I pulled the paper and performed a quick read, but I don't see where Cryptree lends itself to confidentiality and integrity from semi-honest employees and legal attacks like National Security Letters. In fact, I'm not sure what th...
I bought a Fire TV stick and inserted it into the HDMI-port of my TV. I was presented with a dialog to select my wireless router so it can connect online. Just after I did that, it asked me if I am who I am. So they were able to deduce my account just from my Wifi? I didn't go to amazon from my "IP of the day" that d...
I was browsing this forum http://openelec.tv/forum/64-installation/40869-putting-openelec-onto-sd-card-using-usb-reader-from-a-mac-for-raspberry-pi ,and realised that they show my hostname and my (computer's login-)user-name. How does my computer communicate these things to the website? NOTE: Mystery solved. The perso...
I have Nokia lumia 625. And a guy hacked it using sniffer. That's how much I know about it. He has access to all my online texts(eg. Whatsapp, messenger etc) . and also to offline carrier text messages. What do I do to resolve this problem? I have tried factory resetting but it does not work. What is a sniffer and how ...
Many (I would even say most) projects that have Debian repo give instructions like this (https://www.dotdeb.org/instructions/): 3. Fetch and install the GnuPG key wget http://www.dotdeb.org/dotdeb.gpg sudo apt-key add dotdeb.gpg Isn't this insecure? My reasoning is: the key is not downloaded over HTTPS so it can be a...
I'm building out a new services layer for an existing mobile application. The mobile application authenticates with the existing services layer by providing the user name and password as url params in a get request to the authentication end point. This all happens over ssl. Initially I thought this was insecure, but th...
I am new here and not an cryptography expert; but I have been using encryption library for a while. My company is working on a small hardware device. It is powered by a microcontroller so memory is an issue we have to deal with. So we decided to come up with our encryption scheme when sending messages to the devices. T...
Recently I received an email from a friend with "My" email to them attached. The email "I" sent them was obviously spam, one of those "You have to see this..." emails. The email had been sent to several people form my contacts list, but the email address sending the email was not my own, or one that I had ever owned....
I've got a yearly subscription to a VPN service which is real quick and from the research I did at the time seems to be pretty legitimate, but are there any disadvantages or scenarios where you perhaps shouldn't use a VPN? I'm from the UK and I usually just have the VPN setup to automatically route everything through a...
For training purposes, I want to make a demo website vulnerable to SQL injection. I went to the .htaccess file in the server and added these 2 lines: php_flag magic_quotes_gpc Off php_flag register_globals on SQL injection that performed by manipulating the input fields worked well. However, there is a type of SQL inj...
In the context of managed/cloud hosting, what level of information does a provider typically share (under NDA) with its customers for compliance audit/3rd party risk assessment purposes? What are documents that are generally made available, and what are some that aren't? For example, does a provider share policies and...
A ZKP allows proof of knowing the answer to a secret, without actually disclosing what that answer is. Is there any analogy that can help people put this concept into everyday practice? A "lie to children" example is sufficient. For example, Diffie–Hellman has the color mixing analogy, and the padlock metaphor. Is the...
I have this scenario: Webserver domain A. Generates sensitive information when a request from a browser is received but this information is not disclosed to the browser. Webserver domain B. Processes the information generated by webserver A on receiving a petition from the very same browser which contacted webserver A...
With the Snowden leaks, Google has been implicated in the activities of the NSA. There really is no way for ordinary citizens to know with certainty what the exact reality of this involvement is. In my mind, that lack of certainty makes all Google tech suspect: anything "Google" could be tainted with unknown elements...
In a situation where a web page is not using SSL and someone wants to attack to gain the username and password. How it can be done? Given the situations: Passwords are not stored in plain text. Client side used languages : JavaScript, HTML, CSS Server languages: any One can try server side/client side attack.
I recently removed and fixed a lot of backdoor trojans in some files in one of my servers, and I copied those files to my local computer. But the issue is that now that I run the virus scanner on my computer, it says they are dangerous and need to be deleted. So far as I know, you can't execute php files if they are n...
Is there a virus that attempted to foil generic decryption techniques? How did it do so? I need to know the virus name, because I tried searching and I am unable to locate any virus that did that, and the mechanism of the virus is not defined either.
I developed an android application that request to a REST service for do actions! My questions are: If anyone trace the requests and responses, Can he get the token from headers? Where should I store token in android client? If I store token in somewhere like SharedPreferences and user access that He can send fake req...
I'm monitoring a VM functioning as our production server. I noticed it has at many times, quite low entropy (/proc/sys/kernel/random/entropy_avail). On average our server(which among other stuff does SSL, session-key generation etc) runs with about 100-200 bits of available entropy. Is this anything to be concerned wit...
My bank employs a step in its authentication process besides [the card itself and] the regular password, where the user has a secondary password (3 small sequences of letters, such as Hy X Ba) previously given to him (not chosen at will). When authenticating, he is presented with 8 options such as: 1) Vi - A - Ha - Re...
In this question I am referring to DLLs listed in URLs such as this one: http://survey1.sendyouropinions.com/mrIWeb/mrIWeb.dll When this kind of URL is navigated to, is the code in the DLL executed on the remote machine (like e.g. a PHP page) or on the users own machine?
<script> Something.execute("injectionpoint"); }, true); </script> I am trying to bypass an XSS filter but its not working since since " is filtered as \" or ;\" depending on where " is placed./ is filtered as \/.Any // present in payload is stripped out Other characters such as ( ) , < , > , -- are not filtered Here...
I made a CMS (using PHP) that is basically drag and drop to be live (under linux/apache hosts), now I need the communications between the administrative/login pages of said CMS and the client (recent firefox/chrome) to be safe. I wanted to use a basic auth system working under TLS. That would be great but the certific...
I'm developing a system that has to store Finnish national identification numbers as securely as possible while allowing "does this identification number exist in the system?"-type queries over a web API. At first glance, the answer might seem obvious: store a salted hash of the number, so that when you're given an API...
So for example this site, security.stackexchange.com, when I look in my browser it doesn't say that it uses https and it does say that my connection is not encrypted. The same goes for, say, twitch.tv. When you log in to this site, security.stackexchange, it does say that it uses https, but when I'm just browsing the s...
There have been many reports of hackers compromising credit card information in the databases of online shopping websites. Will deleting my credit card information from my account after every transaction be effective in securing it from this kind of theft?
When I check my Macbook's network settings, I see some unfamiliar wifi networks from distant places like famous hotels. It's impossible to connect to those networks because I've never been to those places before. Is it evidence that shows that I'm hacked?
I was wondering if it is possible through some means to isolate processes (or preferably guest VMs) to physical sticks of RAM. This would be to prevent row hammer like attacks from using physical layer vulnerabilities for breaking out of isolation across security domains (with each security domain being isolated to phy...
We've been hacked for the 2nd time without knowing how/who did it. Luckily we were able to shutdown everything! We're trying to deploy Honeypot to be in control of what is going on from our local and global connections. but I've few concerns. How could the honeypot be risk when its virtual system ? How it can be use...
Is there a reliable (in terms of security), open-source application for handling (send/receive + en-/decrypt) encrypted emails on Android? Something like TextSecure for emails. I just found a command line implementation of GPG on f-droid but this is really impractical in everyday use.
While most documentation I've read states that there is no requirement to have the AIA extension in a self-signed Root certificate (logical enough), I can't find anything that tells me not to do so in the certificates issued by the Root. In fact, most examples I've found has the Root CA issuing certificates with an AI...
I have a web api that connects to my SQL Server using a read-only connection and want to allow tech savvy users of my api to enter an SQL where clause on the querystring. I basically just want to tack what they enter onto the select statement. Does a least-privilege (select ability on one table only), read-only connec...
Passwords are hashed so that if someone gains access to a database of passwords then they won't know what the actual passwords are and so they can't log in. If I can get a valid password reset token however (the kind which would be emailed to a user when they've forgotten their password) then isn't this as good as a pa...
I am running Windows 8.1 Pro, Ideally I would like to have the top 5 Anti Virus installed but I am aware it is not advised as they can clash with each other. I was wondering if there is a favoured way to do go about this, the first thing that comes to mind is have only 1 of the 5 anti virus running at any time to avoid...
I was thinking of the following question for a long time and did not find a lot of material* in the web and nothing at all on Security.SE. I think its a very interesting question as it covers different anonymization measures (or counter measures to possible deanonymization measures of soft- & hardware) and within the m...
I'm using a debian7 VPS for hosting my websites. I have only installed webmin, apache, mysql, SSH and a wordpress website. I always update my packages and wordpress version. What is the best (free) user friendly tool to test my server for any possible security weaknesses? Also feel free to give me any tips that i would...
Is it possible for an attacker to restore passwords or encryption keys that one has used in a virtual machine the same way like restoring keys that have been used in a standard system applying a boot attack? I guess there should be no difference since the virtual machine is using the same hardware RAM like the guest o...
The Bell-LaPadula model is useful for access control. Can I use this model for access control in composite services? The security level of each service is exported from WS_SecurityPolicy file.
I have a website issue that I am addressing by storing an encryption key in a cookie. I want to describe my issue and my solution, and see if someone smarter about such things than I thinks this is a reasonable solution to my problem and/or if there is a better way to do it. My website allows a subscriber's customers ...
I have a new smart card with an on board PKCS#11 module and operate in a Win 8 environment. Like many cards, it can generate its own key pairs for enhanced security (only the public key can leave the card). The keys generated are not OTP keys, they are stored directly into one of the available PKCS#11 slots. In part...
Currently I am trying to recreate the Freak attack on a virtual machine. For this purpose I set up a Linux Mint 17.1 system with Apache 2.4.7 (with a self signed certificate) and OpenSSL 1.0.1f. I also modified the ssl.conf to get the following cipher suite: SSLCipherSuite ALL:+EXP:+HIGH:+MEDIUM:+LOW:+SSLv2:+eNULL SSLH...
I was connecting a bluetooth device to my tablet and noticed that when scanning for the devices one "device" was actually a Mac address. We (me and my husband) have been under a hacker attack already a month and I'm concerned about this Mac address. Those hackers messed up my husbands phone, it has been acting up ever ...
I have been trying to test a sniff on facebook POST request forms using wireshark (filtered HTTP). At login form, I would try login, and then check wireshark and see that no packet was captured. Strange enough, even the GET request of www.facebook.com wasn't always captured. Why is this? if wireshark can't capture a PO...
While decrypting a file by CBC mode of AES algorithm, the output length is 16 bytes lesser than that of the input length. For example if you pass a buffer of 512 bytes it decrypts 496 bytes. It happens only in CBC mode for the first call of EVP_DecryptUpdate(). Why is it so? while((bytes = fread (buffer, 1, 32, fp)) !=...
I am doing a project with an architecture of single server and multiple database. Every client request will contain a header containing database name that this request should connect. Is this a good idea for disclosing the database name ? Is this a security issue ?
EDIT: This is for the UK/Europe region. I've been scratching my head reading other posts similar to this one about safely storing bank routing and account numbers. I know that routing numbers can be plaintext in a database, as they are publicly available. I'm concerned about storing the account number however. I also k...
I would like to implement the following use case: User lands on the login page User submits login credentials Credentials are validated and they are redirected to another page for inputting the multi-factor authentication token User submits multi-factor authentication token Token is validated and user is redirected in...
The BIOS operates at a lower level than the OS, so antivirus software cannot scan it. Is there any other security software that we should use to protect the BIOS?
I have two servers in the datacenter. FreeBSD <--> Windows Server FreeBSD configured as a gateway for Windows Server. What is the best: FreeBSD has only firewall. All services are on the Win Server machine (e.g. firewall on FreeBSD, mail, web server on Windows Server) Services are on the both servers (e.g. mail/firewa...
DNSSEC is a suite of security extensions to enhance DNS security. (e.g.: avoid cache poisoning) However I was wondering how does the resolver know that the next NS will use DNSSEC? E.g.: Someone wants to resolve www.example.com.. Let's assume that the authoritative NS example.com. has DNSSEC enabled and properly config...
I'm currently setting up a new SQL database with DotEasy as my Hosting/Database provider. I've heard a lot about Diceware being one of the best methods of creating a really strong password, so I figured I'd use it to create a password for my database. DotEasy's form says that password strength must be over 55/100. So ...
I have an ssh server. earlier toady, I was about to login to my server, when I got a message that said something along the lines of "Someone may be trying to do something nasty" and indicating a man in the middle attack. I did not proceed to login. Instead, I shifted to a different network, and logged in. From the alt...
I'm new to SSH after a decade of dabbling with Ubuntu and other Linux builds. Today I successfully setup SSH, but I had a few hangups and headaches along the way. Although the system is now running properly, I'm not entirely sure how it's working, and that's driving me mad. The main headache I was running into for awhi...
Is it possible to XSS using a BitTorrent tracker. I have been hearing that you can use a torrent to perform XSS. Is it possible ? If so whats the general idea ?
.NET AppDomains provide several levels of isolation for untrusted or partially trusted code. The AppDomain sandbox is widely deployed in ASP.NET and Silverlight, although only the latter of these is designed to isolate completely untrusted code from the rest of the OS. Have there been any known escapes of AppDomain-bas...
Let's say I am hosting several services on my server, for instance, email and a web page. I am concerned that the web server software may have unknown vulnerabilities in it, which will allow an attacker to take over my machine. The attacker will then have access not only to my website, but also my emails! I could solve...
We're building a Wifi enabled device. The device will be installed locally on each client's office and people in the the small office will connect to this Wifi enabled device, They will send/receive sensitive data. As we cannot use signed/trusted certificate per client, how can we guarantee that two users who are conn...
I just got married, and my wife and I are in the midst of combining finances, etc. We set up a joint bank account and the first thing I do during the account setup phase is generate a 16-character password with LastPass. No, don't do that! How can I access it if you use LastPass? Just make it something simple to remem...
I have an ASUS RT-AC66U router, and I'm not the most tech-savvy individual. Earlier today, the router login prompt appeared in my browser, even though I hadn't gone to 192.168.1.1. I was nervous about it, so I installed the latest firmware update from the router web app (not ASUS's website), then decided to reset to fa...
I'm designing an application in which clients generate their own TLS certificates ad-hoc (there's no central authority). When two clients interact for a first time, I need for them to mutually check their peers' certificate. I know that fingerprints are generally used for this, but I need to keep this more newbie-frien...
How can I make nmap run the HTTP-scripts on ports that are unusual for HTTP, say TCP port 123? On something like nmap -n --script="http* ..." -p123 target nmap does nothing except to check that port 123 is open and runs no scripts against the port. (I verified that with nmap's tracing options.) Is it HTTP? The version ...
I received notifications that the CPU was maxed out. Using Process Manager in WHM, I could see that commands named "fuckyou" was running some kind of cron sript on our server. The file it was calling was found in a folder I haven't uploaded my self: /home/user/.lesshts/run.sh This is the content of that file: #!/bin/sh...
I have installed a SSL certificate on a server. Now, I want to check if it is correctly installed and is working. I have heard from my friend that when you are installing your own certificates in keystore the alias should be same as it is in the application code which communicates using port 443 with its partners havin...
I use a vpn server (supporting pptp and openvpn) built in to my router at home to make a secure connection back to my home network. I currently use OpenVPN with certificate authentication, but since my router only distributes the keys in the form of a .ovpn file and not with individual files, it is difficult to use wit...
Is it legal for me to write a small exploit (possibly to a closed issue) and put it up on the internet for everyone to see (as a tutorial)? I have been researching the legality of exploiting vulnerabilities and I came across CFAA (Computer Fraud and Abuse Act.) Looks like there is nothing in CFAA that explicitly preven...
I am trying to whitelist URLs for my PC but I want to eventually roll out the rules to my small company's firewall. But I'm having trouble with CDNs since a page may load content from many distinct URLs. Do CDNs do any content filter to allow me to trust general CDN URLs? (example *.cloudfront.net) or should this be ge...
I mean: does encrypting data multiple times have an effect on diffusion and confusion? Does it increase security, or does it have no effect? Is it useless? Does it make it harder to break the secret, or not?
I'm working on updating a web application. It currently creates a password for a user during sign up. Is asking the user to create the password themselves safer than relying on a generated password?
I would like to store user credentials in an OpenLDAP or similar directory server. A lot of online commentary about storing passwords in modern contexts recommends using password derivation schemes like PBKDF2, bcrypt and scrypt. It looks like OpenLDAP offers salted SHA1 as it's "most secure" storage option. Two quest...
Twitter released(some time ago) a new kit named Digits which allows the client to login with a phone number and an authorization code (received through sms). I find it great for the user experience and I was thinking to implement it on our app/website too but isn't this "very" insecure? I can imagine several issues: ...
I'm doing some research on DDoS attacks, and I seem to only be finding information on layer 3,4 and 7 attacks. When I saw 3/4 and 7 DDoS attacks, I figured they were the most popular, but there were also layers 1,2,5 and 6 layers as well. Are there more?
My company is receiving this message causing us to fail our TrustKeeper PCI compliance scan: Note to scan customer: This vulnerability is not recognized in the National Vulnerability Database. TLS v1.0 violates PCI DSS and is considered an automatic failing condition. According to: http://en.wikipedia.org/wiki/Transpor...
I've read this article about NSA allegedly stealing SIM cards from Gemalto which states: After a SIM card is manufactured, the encryption key, known as a “Ki,” is burned directly onto the chip. A copy of the key is also given to the cellular provider, allowing its network to recognize an individual’s phone. Is it rea...
Let's say I encrypt a message using AES/CBC twice, with the same key but two different IVs. Is this safe? Or can the resulting ciphertexts be used against each other to obtain information about the plaintext? Clarification: I understand that the point of using proper IV values is to prevent equivalent plaintexts from p...
I use to copy and paste my sudo password from a KeePass file so I guess the plain text user password will be saved in RAM at some point when I use it, for example, to accept an update. Is that right? Would it be theoretically possible for an attacker to extract this password string or a part of it by connecting the RAM...
When I browse the Internet (in any browser), there are extra ads. I thought it could be on my computer, tried Ubuntu live disk, and even there were these ads. Same ads are on my iOS and Android devices too. I did a hard reset on my mobile devices, but that didn't help either. I think these ads come from either my ISP ...
My computer got one of those Recycle bin viruses, e621ca05.exe. It's an old installation of Windows XP and I can't even enter safe mode because it was in a shaky state already. So I can't follow the steps describe everywhere to get rid of it. But anyway I should be able to find a registry entry or the process or servic...
Assume that attacker only could obtain ciphertext, but knows that method is symmetric. Is there a way to find which algorithm was used for the encrytion? And in general, if attacker knows the encryption method, is it helpful for the process of breaking or decryption? What types of breaking process is there in this si...
I have downloaded an entire copy of a website that has been used as a spam relay. I think I have tracked down the problem to a loophole in a contact form (now closed, but was not used, but still accessible hence why it was missed), however I would like to check the website files for injected code. Will a standard anti ...