instruction
stringlengths
24
29.9k
Let's say I have a website which is written in ASP and I keep my .mdb database in a random directory like /asd8asd/dkdgk32/asdmv/askdasd/kasldk.mdb Can an attacker find database's location without guessing/brute forcing?
I am still trying to hack into my router. I am attaching my Hydra and page elements. I realized that sometimes when I type a password the password name numbers change, for example password_1338101351 changes to password_594593038 or to another random number. Does someone knows what's wrong in my Hydra input? Hydra-outp...
My account at my domain name registrar was hacked and I am trying to understand how the hackers were able to steal my login credentials. Because the root certificate in the trust chain for the ssl certificate for the domain registrar's website is using a 1024-bit public key, could this mean that my login credentials we...
I'm trying to do a simple display integration between two websites. One on: domain.com and another on: subdomain.domain.com All I want to do is show a "Hello John, Return to Client Area" message. I'm looking for some advice on whether you think it's acceptable to store information such as a first name and e-mail addr...
I'd like to send data to a SaaS tool, where the data is stored in the cloud. I'll use Google Analytics as an example, but it applies to any similar service. Google Analytics does not allow you to store personally identifiable information (PII), and there are many examples of online services where you might want to send...
When I'm connected to a OpenVPN server and visit http://ip-api.com/ I get this: OpenVPN UDP bs128 SHA256 Can somebody explain to me how this is possible and how can I stop this information leak?
I have one hash, I know its value, but not its type. Here is it: 6dfb036bf703d75f9bc8219ba1224d876783fa61 I tried something like php -r "echo sha1('abc');", but it gave me another value, so this hash is not SHA1. How to identify this type of hash?
After port scanning my company's network, I found a lot of open ports. What are the risks that will result out of these ports, if I left them open? And is there any way to handle them without closing them?
Which hash algorithm takes longer time to compute if we compare between md5 and sha256? I do not want to use it for security reasons so I do not care about which one is more secure, I just want to know which one takes fewer time than the other.
I'm quite a newbie at security. I'm developing an android app with a token based approach to authentication. I'm not using Oauth as the OAuth 2.0 is not an authentication protocol but rather used to delegate authorisation: http://oauth.net/articles/authentication/. Since I don't really want anyone else to use my API,...
While surfing a news website on my mobile, I receive a virus infection alert warning that triggers my phone to vibrate incessantly. The alert looks like the following: I didn't expect my phone to vibrate and the alert is able to tell me the model of my phone (first panel) and the OS system (second panel). Clicking the...
Static resources and their caching interests me from the security perspective. Let's say we have an .jpg file requisted from the origin -> going through a reverse proxy with caching -> reaching the browser (and is also cached). What attack vectors can be exploited here (assuming all possible misconfigurations of the se...
I need to create keystore and truststore with root signed certificates. I have these files (at this step they are identical for client and for server): client_cert.pem client_prv_key.pem root_cert.pem client_password lets say 12345 I will create the truststore with the client certificate. Now I need to create keystor...
I have developed a many e-commerce stores for clients over the years; almost all of them selling physical products. Recently, one client in particular was repeatedly getting hit with fraudulent chargebacks where someone would purchase an Acme Widget from their site on a stolen/duped card, have the item shipped (with ne...
I'd like to explain my understanding first then ask a question. This question is meant as a simpler overview of other question..and talks about implication and not process as much. My understanding is this: client connects to server server sends its public key client checks with third party to see if it indeed belong...
Suppose I want to talk to example.com over TLS the and server I am redirected to is foo.com. But during the handshake it can prove it holds the private key that matches example.com certificate. Why does that trigger a warning in the browser?
I'm using HTTPS Node.js server on my localhost, and every restart (PC), when I go to 'https://localhost' I get the certificate message (Chrome). I want to ask how to install the certificate?
I am testing for SQL Injection on a website that uses ASP code. I can successfully get all the databases and tables. Current user has DBA privileges. I wonder how can I get a reverse shell by using this SQL Injection. Oracle version is "Oracle Database 11g Enterprise Edition Release 11.1.0.7.0"
One of the universities I know has a rather unique password policy. They issue shell accounts to all computing students with strong passwords that are unchangeable. It is done via the passwd -n flag which sets the minimum number of days between password changes. A high enough number essentially means that the user will...
I had to give my new neighbor my WiFi password. He's now connected to my internet and I worried about some things: The modem is connected to my PC. What can he possibly do while he's on my internet? I can see his MAC Address through the modem's website, what can someone do with a MAC address? 5 minutes after giving hi...
Since listening to a few Defcon talks on SIM cards and, more recently, the NSA Playset, I've become interested in GSM. This page gives a fairly good tutorial on getting Kraken set up, but apparently for a known-plaintext attack, I need to know the plaintext. The aforementioned tutorial isn't very helpful with this, onl...
The Belkin WeMo switch lets you turn on and off electric sockets over WiFi using an app. Apart from the WiFi password, is there another potential vulnerability of this device that could let an attacker control my socket?
When we talk about encryption in relation to the OSI Model we usually hear about encryption at Application (Email - PGP), Transport (SSL), Network (IPSec) and even Data Link Layer (WPA). But I have never heard of something in relation to the Physical Layer. Is it possible to encrypt at the physical? Are there any appl...
First of all i'm not asking what is a hash, or something else. I will try to explain what i'm searching clearly: Let's say I have a dump of a database, all the passwords of this database are hashed, the passwords are 40 bytes long, so the used algorithm is based on sha-1. However, I also know that there is a salt (sha1...
I'm having a discussion with someone who thinks they don't need technical measures of privacy or anonymity. Common arguments against needing to care about privacy or anonymity include: Everything about them can be Googled or searched from public records Their personal information is already out there from companies ...
What are the risks associated with switching Internet Service Providers and/or Telco providers (i.e. Telstra -> Optus), if any? This is in relation to a larger organisation with a wide area network.
I've been recently taking a hard look at the scrypt system for storing users' passwords. However, I'm rather worried about it's security because of things like Litecoin miners. Is scrypt secure enough to store passwords, even with the availability of Scrypt ASIC miners? Can people use scrypt ASIC miners to crack passwo...
I know there are some functions in CGI and Java that can be abused to perform remote code execution attack. For example we can see abuse of "eval" function in Movable Type CMS: sub core_drop_meta_for_table {my $self = shift; my (%param) = @_; my $class = $param{class}; my $sql = $param{sql};eval "require $class...
My self-signed certificates are not working over Internet. What can be the problems? Here are the setup details: I have a Windows Virtual Machine in Azure with IIS, and a self-signed certificate for HTTPS. Things are working fine. Site is opening up without any issues. NOTE: I have setup domain also, so that i can ac...
Looking through error logs I found lots of requests to a web-app where the URL contains: /if(now()=sysdate(),sleep(10),0)/*'XOR(if(now()=sysdate(),sleep(10),0))OR'"XOR(if(now()=sysdate(),sleep(10),0))OR"*/ I read that could be a part of an attack on websites developed in PHP which we don't use. Also we're using an ORM...
I am facing some strange attack while I was checking Apache logs: OST /cgi-bin/php?%2D%64+%61%6C%6C%6F%77%5F%75%72%6C%5F%69%6E%63%6C%75%64%65%3D%6F%6E+%2D%64+%73%61%66%65%5F%6D%6F%64%65%3D%6F%66%66+%2D%64+%73%75%68%6F%73%69%6E%2E%73%69%6D%75%6C%61%74%69%6F%6E%3D%6F%6E+%2D%64+%64%69%73%61%62%6C%65%5F%66%75%6E%63%74%69%6...
Many PDFs are distributed as encrypted PDFs to lock out some of their functionality (eg printing, writing, copying). However, PDF cracking software is available online, which usually cracks the PDF passwords in less than 1 second. It doesn't make sense that the PDF system is so easy to crack if Adobe implemented a pro...
I have a chrome extension which allows users to exclusively login with google and no other provider. In my (node + couchdb) backend I need to construct a user account from the auth Response provided by google's oauth2 api. I was thinking about using a hash of the id_token as a password after verifying the token using ...
I reinstalled one of my machines and gave it new ssh keys, which should yield warnings when I connect to it from a machine I have connected from earlier. First I get the big warning that the remote host identifcation has changed, it shows me the correct new ED25519 fingerprint, tells me the line number of the offending...
According to the Wi‑Fi Sense FAQ When you share network access, your contacts get Internet access only. For example, if you share your home Wi-Fi network, your contacts won't have access to other computers, devices, or files stored on your home network. If you have a small business that has intranet sites, your ...
Several sites offer APK downloads (1, 2, 3). Is there a way to determine if a given website/apk is safe to install?
There is a Cisco WiFi Access Point in the office that is intended for guests. It is an open network in that you can associate without providing a password with the SSID. It supports RFC2617 and so the very first time a client associates and attempts to use the network, they are prompted for credentials. After the corre...
My PC has contracted a virus. I noticed weird behaviour from my PC, and investigated the matter. I still don't know how I got infected, but the result is someone having administrator access on my PC and is controlling it remotely. The virus itself isn't your ordinary trojan, as all commercial and a few non commercial ...
I recently purchased a new OontZ Angle Plus bluetooth speaker and I believe that it has been hacked. I can't connect any of my devices to it, the bluetooth light indicates that it has been paired with a device, and if I turn my bluetooth on with my computer I will receive never ending messages to connect to an apple mo...
A mail made it through the spam filter and i wonder what the purpose is. It is not spam. Tracking? But how? Who? and why? In the source code there are this weird passages like ... =EA=85=9F =EA=8F=92 who benefits how? no links nothing else in this email. Delivered-To: my@email.com Received: by 10.28.158.140 with SMTP...
I know a lot of people are advocating an "encrypt and wipe" procedure for selling used Android phones. But according to the AOSP website, in Android 5.x Lollipop: Created fast encryption, which only encrypts used blocks on the data partition to avoid first boot taking a long time. More specifically, when Lollipop e...
While running Wireshark trying to troubleshoot some other issues, I noticed several SYN connections to ports 80 and 443 on the workstation I was using. The packets were dropped. These were coming from other workstations. There is no webserver running on this workstation, and its IP address has been the same for weeks. ...
I've been using Aviator secure browser for a while which insists that you run private mode by default (cookies and history wiped after every session), which makes me wonder how secure the history is in other browsers? Is it really necessary to wipe your history since nobody except you should have access to it or does y...
I am working on a cloud-based digital signature with a Hardware Security Module (HSM). I know that PKCS#11 AND Microsoft CryptoAPI implementation is required. I want to simulate the total process. For this, is Thales Simulator best for HSM? How can I connect this with PKCS#11 or Microsoft CryptoAPI? Or can anyone offer...
How can users be prevented from installing VPN software on their home computers?
I have a Cisco PIX, and have been using the Cisco VPN client on windows however I would like to enable this to work with the native Windows 8/10 VPN client. It works fine with the native clients for Android (using IPsec Xauth PSK) and iOS (IPsec). However there is no place in the Windows client for me to put the Group ...
For multicast encryption one user creates group keys on his local (Symetric and asymetric). If we encrypt these with other group user's public keys and send over networks . Is this acceptable? Can we say that this is equivalent to send anything with public key over network? Is this a used method for multicast encryptio...
I once heard that if a number that you don't know called you, you can access a website (that I don't remember now) that will call the number and make a recording of what the person said and send it to you. Is it legal? Or can I find a better way to find out the person identity?
Today I have discovered something very strange. It seems like Facebook is playing some kind of unfair game for identifying one's online identity. So, here is what I have done: I have a regular Facebook account, everything is OK. It becomes interesting when I try to create another one using a Proxy running on a virtual ...
Let's say we are setting up some registration form for some website. I know that if input fields aren't sanitized then SQL injection can happen. But let's say all fields are sanitized correctly. Is there any advantage to having alphanumeric-only usernames? Or is it just as good to allow any symbol?
I one of the earliest books I read on security - The Basics of Hacking and Penetration Testing (978-0124116443); the author emphasized that you cannot use these Penetration Test Tools over the internet as some of the ISPs monitor the use of such tools and will block access to your internet if they feel you are using su...
I am reading about a Ubuntu-12.10 security exploit CVE-2013-1763 which describes the vulnerability of stack buffer overflow that can be exploited to escalate privilege of a process and gain root access. The hardcoded exploit is given on the link: https://github.com/spinlockirqsave/examples/blob/master/hacker/ubuntu_cre...
Is it possible to determine the process that performed DLL injection against a victim process?
So I'm working on my first project where user data is stored as encrypted using the user's password as (part of) the key. I have read many similar things about best practices, but the details seems to be glossed over for someone like me who isn't as familiar. I have read that it's best to: Have a strong hash (bcrypt...
I have this Google Chrome Privacy Preserving Extension that I am working on. Where I can spoof the header information e.g user agents and else. When I spoof X-Forwarded-For IP and go to http://whatsmyuseragent.com/ I see a different IP and my physical location. Whereas if I go to http://whatismyipaddress.com/location-...
I came up with a user-details-storing procedure that was, in the beginning, based on actual security-literature – but then I just kept writing without really doing all the cross-checking I should have been doing. Username, password and personal details are entered. A random 128-bit symmetric key is generated. Two rand...
We're currently reviewing our set of "no-cache" security headers: Cache-Control "no-cache, no-store, must-revalidate Pragma "no-cache" Expires 0 Besides the "standard" set above, I found this article, recommending to combine "no-cache" and "no-store" with "private". As far as I understand the specification it should...
We are developing two web applications: Application A : Restful web-services running on a GlassFish Server . Application B : Dynamic web application running on a Tomcat Server . I am accessing Application A only via my Application B, I don't want any other application to access my Application A. For this I have plan...
There are various technologies for anonymity online, most notably TOR, but also I2P and VPNs, as well as simply using one-shot email addresses. What are the specific use cases for anonymity? I'm not concerned about the morality or legality of the use cases, but I do want specific cases. So "selling contraband online" w...
I would like to set up a Rasberry Pi and connect a large USB Harddrive and some webcams to run motion for homesurveillance. If I am understanding everything correctly if I get Ubuntu mate to run with the TRESOR kernel patch the system would be immune to DMA and cold boot attacks.
At the moment I am living in an apartment with some other people. We are students and we will start school in Canada. One guy took internet with Videotron, he manages the internet and we just give him money for the bill. I wanted to know with the box and the configuration panel of the box, if he could see what I am doi...
I'm contemplating using Amazon's Simple Queue System as the basis of an enterprise message bus. According to Amazon, the contents are not encrypted, which means the application(s) will have to handle encryption / decryption. It seems likely that this cryptosystem will need: key distribution among services that access...
Please note: this isn't a duplicate!!! Why? You can use ' but You don't know how :) I have this PHP code: <?php (...) function escape($str) { $ret = ''; for($i=0;@$str[$i];$i++) { if($str[$i]!='\'') if($str[$i]!='\\') if($str[$i]!='"') if($str[$i]!="\r") if($str[$i]!="\n") if($str[$i]!="\x1a") ...
I thought that if TLS is well implemented that is sufficient for security. Today I analyzed PubNub (Global Data Stream Network) and found these steps for security: communication over TLS AES-256 to encrypt & decrypt data and message-signing with HMAC Isn't it redundant and unnecessary to use the second and third step...
Recently I found an old installation CD for Windows 98 Second Edition, and looking for a bit of a nostalgia kick, I installed it inside VirtualBox. Win98SE shipped with IE 5.0, and browsing the web with that browser was as broken an experience as you might imagine. I noticed that, no matter what I tried, I could not ge...
When we store confidential information in our database, we encrypt it using AES. In addition, when customers install our product, they protect their machines using a firewall. Should we use different encryption keys (passphrases) for different customers? What would be the benefits and/or drawbacks? Added We have Web UI...
I rented a VPS server to run my website a few month ago. Today, I looked at the /var/log/apache2/access.log and noticed a strange line : 192.0.2.123 - - [02/Aug/2015:05:21:29 -0400] "GET / HTTP/1.1" 200 4043 "http://buttons-for-website.com" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chr...
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...