instruction
stringlengths
24
27.2k
A little while ago I got the following email from an unknown party (using an @alum.cs.[redacted].edu email address): I'm seeing attack traffic from your Linode. Just a friendly heads up that its likely p0wned. A quick google suggests no one else likes the traffic coming from your Linode either. <https://www.google.com...
Was setting up Wifi at home today (just using the default router Time Warner Cable provides) and was appalled at the minimal security that the web server provides. Default user name/password is Googlable and is admin admin When you do change passwords, your password change is restricted to less than 8 characters and n...
As part of a workstation pen test, I copy a simple metasploit payload onto the workstation, and try to run it. Usually this is blocked by anti-virus software. However, sometimes it isn't (I won't name the offenders). The AV software is running and correctly detects EICAR, but it doesn't detect a simple non-encoded meta...
Can anyone tell me why I can't get this XSS to reflect? Or why is this Filtered or not rendering? The Post sent is: ... Content-Length: 91 add=1&reference=A</><img src=a onalert=alert(1)>EXPXSS&name=example&group=EE%2FBB&x=68&y=19 The response: <td><a class="remove" href="index.xml?action=remove&#38;ref=A&lt;/&gt;&lt...
I'm working on a clients website, and I realize they've been compromised. Early today there was a major problem with a php eval(base64_decode issue. That was cleaned up via Andy Stratton clean.php repair (which searches for infected files and then deletes them.) Website was rebuilt with virgin Wordpress code and a t...
Having rolled out corporate mobile phones and tablets, we have MDM in place enabling us to centrally deploy apps to all our users, and can perform remote wipe in the event of a lost device etc, however in order for the device to be of any real use to users they also need to be able to install apps at their own discreti...
Two situations with a similar goal: 1) You have access to a target network, and you a Windows host. Is it possible to remotely finger print which (operating system security) patches are applied to the system without attempting actual exploits? 2) If you have either partial or full access to a target (unprivileged log...
I'm testing drupal website and I've noticed that search query gets appended to the base URL in the response, like so: query: "hey ho: there" http://www.baseurl.com/search/node/hey ho%3A there query: "dis iz stackexchange!" http://www.baseurl.com/search/node/dis iz stackexchange! query: "@ # $ % ^ & * ( ) < > [ ]" htt...
It is fairly well known that on Windows, when you delete a file (or folder which may contain any number of files and subfolders possibly containing other files and subfolders and so on), Windows just deletes the filesystem pointer to the node corresponding to the file or folder in the corresponding filesystem tree stru...
I see on our RedHat Linux platform that "java" process has dependency over glibc library: [root@hpproliant1 ~]# ldd /usr/bin/java linux-gate.so.1 => (0xffffe000) libpthread.so.0 => /lib/libpthread.so.0 (0xf7f77000) libjli.so => /usr/java/32bit/jre1.6.0_26/bin/../lib/i386/jli/libjli.so (0xf7f6e000) libdl.so.2 => /lib/l...
I don't know if this is the right place to ask this question but I'll give it a shot! I was playing around with Kali and SQLmap. I was just scanning some sites nothing serious. When I was doing this I was logged in on my University's wifi network. Now the problem I have just got an email for a meeting with someone. Now...
I have a pcap file captured from a user PC. I need to analyze whether it has initialized a DOS attack to any server. alert tcp any any -> any 8080 (msg:"DOS flood denial of service attempt"; flow:to_server; detection_filter:track by_dst, count 1000, seconds 60; sid:25101; rev:1;) This will give any incoming attacks. ...
It seems to me that because Users can post questions and comments in them with HTML markup (possibly <script> tags), Stack Exchange sites would be very exposed to XSS attacks. How do they protect from this?
I am in the process of setting up DNSSEC for my domains. Initially I was going to go with algorithm 13 (ECDSA-P256-SHA256), but it seems that dyn.com doesn't allow me to add a DS record with an algorithm value of 13. (Would love some insight as to why they prevent this) I figured, hey, no matter, there are two keys, ri...
The ghost vulnerability has the potential to be vulnerable to many many pieces of software that call the gethostbyname() and gethostbyname2() functions. Is there an easy way to scan an executable to determine if it makes use of either of these two vulnerable functions? While this wouldn't tell you if a program was vu...
My wife had a popup on her old Windows Vista laptop (which I've been threatening to switch to Ubuntu Linux). It appeared to come from our ISP, and informed her that she was hacked, and to call a number. An Indian guy answered, told her to go to a site (lmi1.com), gave her a code, and told her to input it to download a ...
I've been reading up on promiscuous mode and monitor mode as they relate to 802.11 networks. I understand the difference, which is explained here: What is the difference between Promiscuous and Monitor Mode in Wireless Networks? The definition is pretty simple. One you are associated with an AP, the other you are not....
On a penetration test going in blind for an organization, meaning no knowledge of network topology of design, no idea what the domain(s) might be, and domain controller is not apparent in DNS...how can it be determined what the Domain Controller is? Assuming a dedicated DNS server instead of the DC handling DNS Is ther...
Assume the following scenario: NTLMv2 only Only Vista machines or higher Remote desktop disabled throughout network No open shares psexec needs administrative level access. Without any shares or way to remotly login, are any credentials captured useless in such a network? If not, how could they be leveraged to gai...
I'm learning ethical hacking and now I'm on sql injection topic. I'm also new to SQL and php. Ok, so I have local damn vulnerable website with back-end Linux, MySQL and Apache and now trying to use sql injection to login. The login form is php script, the login page consists of 2 boxes: username and password. I tried a...
I use chrome (but also have firefox) on ubuntu 14.04 32-bit. Recently I started getting popups from 'softwareupdaterlp.com'. I had the sense to realize it was not legitimate and I didn't click install or anything, but I'm worried it might cause problems on my system. In an attempt to fix the problem I reset all setting...
I wanted to convert a youtube video to mp3, but the website gaved me an EXE? http://convertonmp3.com/download/412414/The_Supermen_Lovers_feat_Mani_Hoffman_Starlight_Official_Video.mp3?h=hx7ZBZi7rHuU69RJhqwVuA&e=1422700955 https://www.virustotal.com/en/file/30875cf1a3fc1f699ad74aa47cb01fcfde70d7924d97cf54c2a247d23d627bb...
I was wandering at superuser and I found this question: Compress and then encrypt, or vice-versa? Nearly all files have a Magic Number at a certain position in them. So, I wonder if I can attack (to break encryption or reduce possiblities...) by guessing several popular file formats? I am aware that my question is very...
For years, I'm now using OpenVZ on my server, but support discontinued for Debian and Ubuntu, current releases seem to focus on LXC now, which is not a bad idea from the point of comfort. But what about security? I remember I read once that LXC doesn't provide the same level of process and container separation than Ope...
Today my sendmail service started sending e-mail to various addresses. /var/spool/mail: From MAILER-DAEMON@noxcommunity.com Fri Jan 30 22:15:30 2015 Return-Path: <MAILER-DAEMON@noxcommunity.com> Received: from localhost (localhost) by noxcommunity.com (8.13.8/8.13.8) id t0ULFUje031918; Fri, 30 Jan 2015 22:15:3...
On Steam, the gaming client, I have this habit of creating multiple "smurf" accounts. I have a randomly-generated, unique password, and I decided to use the same password for all of my multiple accounts. On my fifth account or so, Steam has started preventing me from using the same password again. How does Steam know w...
There was this question in last year's exam. The teacher claims that answer b) (in boldface below) is correct. Attacks are constantly being performed on digital signatures which use weak hash functions (e.g. MD5). When an exploit of a hash algorithm is found,...: a) all the signed documents are equally exposed. b) th...
Consider two implementations of SSL on a HTTP server and on an FTP server. With the same cipher suites used and the exact same protocols used. Is one more secure than the other. I have heard that it is difficult to get FTP to downgrade protocols. So is the implementation of SSL onto FTP more secure than through FTP?
The business I work for uses an Equinox Optimum T4220 (hardware number 060001) in dial-out mode. I see two search results1 for "T4220" listed on the PCI SSC's website under Approved PIN Transaction Security (PTS) Devices2. These listings look similar to what we have, but I do not know if these results indicate our devi...
I just created a new PGP key because I want to start using PGP to encrypt my emails. Lo and behold, this is apparently not my first attempt to use PGP. Five years ago, I created another PGP key using an ancient encryption algorithm (DSA 1024-bit). This would be very easy to crack. Needless to say, I don't have a revoke...
What is the current standard of authentification? I thought it is server and client authentification. But I typed for e.g. https://www.google.com/ and checked the packages in wireshark. And there is only a server authentification. I am wondering why the server is never sending me the TLS CertificateRequest-message (Is...
I was working on implementing an OTP strategy in our login process of a web application when I was asking myself: Should I ask for the OTP token before or after asking for the username/password? What I generally see with services I use is, I have to provide the OTP token after they've verified my username/password. I ...
We have an enterprise system that utilizes many in house jars, java applications, to run on a centos 7 linux system. How do I go about achieving the following in order of importance: Only signed jars can run. If its not signed, I dont want it to run at all. My jars only run on these systems and no other systems. I do...
I've made a payment to an online store and they're claiming there's no order with the number that appeared in my screen, therefore they're refusing to send me the product. I still have the page opened and I would like to save the entire content of the page in a way that the certificate goes together, so I can prove all...
I have a text which is hashed using several layers of hashing. The final hash looks like 2E55A1DD65AB839E62362DEF86D329D7. What type of hashing can it be? How can I find out what kind of hash sum I do have in a general way?
Just for the test I did the following: Downloaded a page from Wikipedia via wget on remote server and named the file test.dat. Then I executed md5sum. I download the file via HTTP and check it back on my home computer. The checksum does not match. When I download the same file via SCP the checksum matches. When I co...
TLS gives you the confidence you're talking to the servers you trust, right? Yet, why should I give confidence to a page (likely to be a application today) that I've never read the source code, neither someone else has studied it? Yes, you can read the source code, but it's very likely that you will have to deal with t...
I use Ubuntu and last firefox version. I opened an image with firefox, and a crash occurred. Let's assume it's a crafted jpg to run an exploit, and execute arbitrary code. To sum up: (1) Firefox opens a crafted JPG ->(2) Firefox crashes ->(3) Arbitrary code try to run -- Step 3: According to Are exploits platform depen...
In the context of an IT event, my team would organize a CTF (Capture The Flag). About the challenges (we’re working on them). I want to have some references on the types and levels of difficulty that we find on CTF generally. (The target audience varies from students (beginner) to security experts and regulars particip...
In computer security, what does provable security mean? I read the Provable Security article on Wikipedia, and I was able to grasp the basics. I would like to see this described in more detail, using, for example, the provability of RSA encryption. Some queries: Is RSA provable? For small p andq, it is not secure. Can...
Summary I'm a LastPass user, but I have concerns about storing high-value passwords, like my bank password, online. I've read some posts on this topic but still have questions. How safe are password managers like LastPass? Does the average user really need a password manager? Is saving passwords in Chrome as safe as ...
can someone give me an example of mySQL injection payload, which will bypass the real_escape_string() sanitize filter in regards to the below php example. function sanitizeStrXSS51($var) { global $connection; return $connection->real_escape_string($var); } $result = queryMysql("SELECT * FROM profiles WHERE user='$user...
I work on a U.S. government crisis/suicide hotline as a rescue coordinator. We receive phone calls, (mostly cell) text and chat from all over the world. Most times the caller/chatter will not disclose their idenity. When the crisis responder feels that a person is a danger to themself or others, I take over to try to i...
many Android mobile applications (e.g., Whatsapp, Telegram), when used for the first time on a device, "authenticate" users by sending them a secret code in a SMS message. The same mechanism is used to allow users to re-login in their accounts if they change device or reinstall the app (as far as they are still using ...
This TechCrunch article discusses how Dropbox uses hashing to check whether you're sharing copyrighted material "without actually looking at your stuff." Specifically, they offer the following (unsourced) "official comment" from Dropbox: There have been some questions around how we handle copyright notices. We somet...
I am dealing with a situation where a cipher option, such as ECDHE-ECDSA-AES128-SHA, is chosen for establishing a TLS connection. In this case, a server, when sending the ServerKeyExchange message to the client, is required to sign the ephemeral (EC) diffie hellman key using its ECDSA private key (associated with the p...
Can someone give me an example of sql injection with UNION operator, that returns users and passwords, with regards to the bellow php example. I've managed to inject simple 1 or 1=1... in the pass parameter, but so far failed to inject using UNION operator. function sanitizeStr($var) { global $connection; $var = strip_...
When working on a website application, me and a friend asked a security expert (works at IBM) how to handle storing passwords. After hours of google searches (resulting in hours of security.stackexchange.com exploration), I determined that having a user database with the salt in the DB is secure, as long as it's a per-...
In my college, a security challenge event is going on for one whole month, Participants are expected to 'hack' into a website. The site has a login form, which accepts username and password and POSTs the data to 'connect.php. We don't have the source code available. How can I proceed to audit for SQL Injection vulnerab...
We do our final year project related to sql injection. For implementing sql injection attack which IDE or tool we used? bcoz netbeans and other type of IDE are more secured?
This question is about how to minimize the risk posed by Intel AMT/ME's ring -3 exploits? I'm looking for advice on common strategies and practices. Here is my current situation. I am parking my encrypted Intel iCore5 mobile device often in S3 hibernation mode, while the laptop is plugged in. I run a GNU/Linux and I do...
After reading different articles, most notably/concerningly: If the NSA has been hacking everything, how has nobody seen them coming? Ken Thompson's Hack (more the concept than specifics) I am wondering: How can I be sure that my toolchains and application software are not compromised? The obvious but elongated answe...
As an exercise, I'm developing a desktop application with which users need to log in to a web service. A logical use-case for OAuth2 one would say, but I'm beginning to doubt its usefulness. I am looking for two-legged authentication, which leaves the client credentials, implicit and resource owner password flows avail...
On an intranet a login is generally disabled after a very small number of failed logins. But a public email service like Gmail can't do the same, otherwise pranksters would just be continuously locking people out. Unlike brute forcing a password file that you have locally, hitting a specific account on a remote service...
I have recently started to study the smart ticketing systems. Most of the modern systems support the use of EMVCo standards for buying tickets in the bus. Also, in each bus usually there are more than one devices from which a passenger can buy a ticket. In my opinion these devices exchange data related to the bank car...
I am currently trying to understand the IKEv2 protocol which is used for IPsec and am wondering why/how the authentication process works. From my understanding, in the prior IKE_SA_INIT exchange, the Initiator and Responder agree on a crypto suite, send each other their DH values and a nonce. The following IKE_AUTH exc...
Let's say I have a site where users can log in with Google+ or Twitter. Now imagine a user called Bob going through the following steps: Sign in to my site using their twitter account. I request their email address from Twitter, and get bob@megadodo.ursa. After performing some actions, Bob logsout. Some time later, Bo...
I found myself suddenly unable to access websites that use HTTPS, so I contacted my service provider, and they asked me to install a certificate in the Trusted Root Certificate Authorities store. But something isn't right: installing a certificate on every device connected to the same network just to be able to access ...
Which of these DBMS offers lowest security for SQLI? Oracle, MYSQL, SQL Server, ProstgreSQL or DB2? Why? Could you explain to me, why some are more vunerable to SQLI?
first of all, sorry if my question is not clear, because English is not my first language. Anyway, let-me explain the concept I'm struggling to solve as the best solution. I have some guys, and they want privacy for their cloud (hosting their files). Ok, cryptography is the way to go I believe. So I did some quick rese...
I'm interested in setting up a web server on an old laptop L1. My plan is to connect that laptop to an Ethernet port on my router. I also have another laptop L2 accessing the router via wi-fi. L2 is running Windows 7; I haven't chosen an OS yet for L1 but it will probably be a Linux distro. If someone attacks my we...
I'm considering using SCRYPT for password storage. (I'm open to PBKDF2 as well, or bcrypt by itself). The issue is that I don't want this to become a potential point for a DDOS attack, given the overhead of the actual computation. I was thinking something VERY weak with a lot of collisions as a sanity check first (like...
I am working on a small M2M project (a few hundred nodes connected to a single cloud server), and want to use client certificate authentication, with each client getting its own unique cert at manufacture time. During development we have been using a self-signed .crt and .key to generate the client certificates, and al...
my small web design company currently uses a cloud storage service to collaborate with our clients and I would like an easier (and more secure) way for files to be transferred-in and stored. The only reason we use cloud storage is because most of those services have cross-platform mobile applications so we tell our cl...
To me it seems that the only thing Tor is doing for anonymity (not security!) is the fact that it does not record the traffic in and out, because obviously if every router was recording the traffic going through it (let alone publish that information), every pathway would be clearly visible and then anyone could backtr...
To verify, that the files I have downloaded using it are not corrupted.
I'm wondering if a chrome app I upload to the Chrome Webstore could potentially be manipulated (even by Google itself) without users downloading the app noticing it. I just downloaded a packaged app to check if I can inspect its source code but it didn't allow me to. Is this true for all apps? If the source is hidden, ...
Most of the examples of XSS, I have seen examples of websites that get its parameter tampered through url query parameter. For example: http://example.com/param1=123&param2=name&param3=<script type='text/javascript'>alert('pwnd');</script> But if the application receives its payload not through url query parameter but...
This is the definition of an equivalence relation according to Wikipedia: In mathematics, an equivalence relation is the relation that holds between two elements if and only if they are members of the same cell within a set that has been partitioned into cells such that every element of the set is a member of one and o...
I am doing some research and I need a very quick way to scan for open ports on a single machine. To provide some context, I know that my machine will have a port open waiting for UDP packets for about 3 seconds. That is all I have. I also know that it is in the range of port 50000 to 62000. Long story short, how can I ...
If POST requests are being made to a website via a browser using an HTTP proxy from sslproxies.org, is it possible to trace the origin of those AJAX requests without having access to the proxy being used? Assume the role of the webmaster here, and assume the proxy used is either 'Anonymous or Elite Proxy' as marked on ...
I want to give a newsletter subscriber the possibility to change his information. Since we're using an external company for sending our newsletter I can't put a key right into the newsletter (or not without much effort). I created a form where you can enter your email and after checking if it's a subscriber, it sends a...
From a cold boot, the only password needed to unlock the primary encrypted volume on my MacBook's SSD is just that of my main admin user. This was not always the case; it used to be that I could specify a fairly long and thorough passphrase to be used in key derivation whenever I had to access the volume in its locked ...
I would like to know, if renewing a SSL certificate will change my thumbprint? The certificate has expired. If it can be same then under what conditions can it remain same. Many thanks in advance.
There have been several critical 0-day exploits in the past days/weeks in Flash alone. Nobody knows how long the 0-days have been exploited, and it is reasonable to expect that there are 0-days being exploited at this moment, but we don't know. The practice of patching/updating flash plugin after 0-day has been discov...
When my users are authenticated they receive an authentication token, I need to use this authentication token to authorize some asp.net WebAPI calls. To do this I need to add the token to the head of that call, so I need the token accessible from the users browser. I think that storing the token in a cookie isn't the s...
What do you think about this signature scheme using RSA with 4096 bit keys? Being R pseudorandom padding, fixed length (4096 - 512 bits): RSApriv(R || SHA512(M)) I know that it's not as secure as RSASSA-PSS, but it looks better than RSASSA-PKCS1 to me (because of the random padding). Am I missing anything important? ...
im using HMACSHA256 to generate the hash of password and store it. the objective here is to just authenticate users, i.e - save their hashed passwords, and validate users whenever needed using the hashed passwords // salt is a guid we store seperately, its the id of the user byte[] GetHash(byte[] password, byte[] salt)...
I'm interesting in exploring possibility to authenticate user using their Digital Certificate. The methodology is to first register the DSC from the user and keep their Public key along with Serial No. and Name etc. Later when user selects the same DSC at login page then encrypt some data from their private key and tr...
I have access to a server that I use for backups. I use rsync with the --delete flag to make an exact copy of my backup directory. I have no need for incremental backups. The backup directory on the server is encrypted with ecryptfs (although not the whole home folder). I have written a script which is stored locally a...
I am working on website,where I want include csrf checks by using referrer checks,will this be sufficient way to protect the form from csrf attack? if not what an attacker can do to bypass it?
Take for example 1Password, that now can store your password and one time password secret in a single place (your 1Password vault). I know it isn't truly two-factor anymore, but how much better is it compared to single factor authentication? To be more clear, say I have a Dropbox account with two factor authentication ...
If I need a bodyguard I'll have to hire someone whose muscles are much tougher than mine. If a server can't handle a DoS/DDoS attack because it consumes it's resources does this mean the firewall has to have better resources than the server it protects? ie bigger RAM, better processor and of course this means the firew...
I have done some searching, and cannot seem to find this. Does anyone know of a "security fail forum" that lists embarrassing and / or damaging results from lack of security practices? I would like it to serve to educate everyone on how important computer security really is, kind of like the drunk driving horrors vid...
I'm a little rusty on cryptography, but I have successfully acquired a 256 bit key that is used for encryption and I want to know if it is possible to reverse it into its corresponding plain text password. If yes, how do I do that?
I have a mobile application (ioS) which only certain users are allowed to use, and its coded in such a way that they could only login using secured VPN (with tokens) in order to access our internal network servers for data retrieval. My auditor request that, according to good practices, all mobile apps development sho...
If I understand the topic of digital signatures correctly, you sign a message via hashing+encrypting it using your private key. Then, if a private key is compromised by an attacker, she could sign stuff pretending she's you. This way, any organization that has the (even legal) power of asking you to decrypt your messag...
There are many questions surrounding the differences between symmetric and asymmetric encryption keys. I think I've read them all at this point. But I'm still left wondering: Why does a "secure" symmetric key only have to be (roughly) 256 bits, while asymmetric keys must be at least 2048 bits long to be considered "s...
I have a hardware device that can compute ECDSA signatures and generate ECDSA keys without exporting the private key (only public key is exported). I'm looking for a way to tie this into SSH. Is there a way to do so without patching OpenSSH?
I am a app developer and working with another software group at my MEGACOMPANY. Said group wants to put confidential information on the internet and they are very happy with their authentication system which just blocks that content from our normal customers based on IP address. I have already cracked their system yet...
I'd like to block all users from inside Company X from visiting my website. However I don't work at Company X. Is there an efficient way to learn what the IP is when people inside Company X access the outside world? For instance, are there logs around the Internet that might be searchable? Note that I don't care if the...
I mean a javascript api for capturing a renderered html page, or current viewport, and dump content onto an image. While there are obvious attacks, such as taking screenshot of sensitive information, I don't really believe a screenshot api is more evil than, say, being able to log your key strokes with javascript (whic...
I have a general encryption question. I have read through many of the encryption related questions here and I can't find any specifically addressing my concern. This is the hypothetical scenario: I am storing credit card numbers in a database The numbers are either encrypted or hashed A public facing application check...
We have a database of sort codes (6 digit numbers) and account numbers (8 digit numbers) that we use to reconcile monthly accounts with the table of supporters. There is nothing in the data received from the bank that uniquely identifies the supporter, other than the sort code and account number. ... I know, it's annoy...
This blog post describes a method for preventing session fixation attacks (in ASP.Net in particular). The idea is that the session id should be tied to the user's identity in a verifiable way, which means that a given session id can't be valid for both the attacker and the victim. Their construction uses: select rand...
Some computers on my university block the keepass application which I use as a password manager. I'm thinking of building a small web application + Android app which lets me securely copy a string from my phone to my computer. Since more people will have this problem, I'd like both the web application as the app to be ...
In elliptic curve cryptography what should be the length of session key? Is there a specific metric to choose one, or are they randomly generated? I was studying one paper about defence against a Sybil attack. In the initial deployment stage of a vehicular ad-hoc network based on roadside unit support they used 16 byte...
I'd like to mitigate DDOS attacks, for an Azure vm server (just TCP ports 80 and 443). Azure appears to be a great solution. I can't find any Azure documentation, as to if there is an Azure firewall, which I can configure, in front of my Azure vm server. For example, if there is a 10 Gigabit/second UDP attack, I don'...
As far as I understood rpcbind is used for listing active services, and telling the requesting client where to send the RPC request. If a host listens on port 111, one can use rpcinfo to get program numbers and ports and services running; For example look at below: root@bt:~# rpcinfo -p x.x.x.x program vers proto...
I've just taken over as IT Manager in an environment where most of the end-users are using HP-based Win7 thin clients (approx 50 seats) to access a remote desktop server. All the servers & fat clients on site are protected with ESET Endpoint Antivirus, however I notice none of the thin clients have any type of AV enabl...