instruction
stringlengths
24
27.2k
A web server inside the office network which is accessed by staff internally and the internal DNS resolves web.company.com to the server's LAN IP. Publicly, company.com nameservers belong to their party hosting company where the main company website is hosted and it does not have web.company.com record. Now if the web....
As far as I know, a determined attacker would have no major issues in hacking the IP address of the packets contained by his (web) request. Therefore, I cannot see how an Access Control List (such as the ones listed below) might improve the security of a server, as determined "users" can simply bypass the restriction. ...
A PHP application that I am currently testing returned and error page when the value of session cookie is set as a huge string. It leads to information disclosure also. What can I recommend the developer to prevent the generation of error page when the cookie value is overflown?
Excuse me if I posted this here wrongly, I know the question is partly about haproxy itself. I am setting up haproxy as an SSL terminator/load balancer in front of an API that we need to expose over the internet to a customer. The plan was to use mutual (2-way) SSL/HTTPS to verify that both parties are who they are sin...
How the security certification works if the software uses third party libraries or services? E.g., if someone would like to certify a software product following Common Criteria standard (let's say, CC EAL1). And the software uses: 1) authentication service provided by third party. 2) different libraries, e.g. for data...
I'm developing an application. The user must enter his credentials which will be sent to the server. If the user opens the application a second time he shouldn't need to enter them again - credentials should be stored on user's machine. Also this data can be passed around. My app is cross-platform so I'm searching for ...
I am trying to understand the includeSubDomains directive in the HTTP Strict Transport Security standard. In particular section 14.4 of RFC 6797 confuse me. Point 2. says The HTTP request sent to uxdhbpahpdsf.example.com will include the Secure-flagged domain cookie. This seems to imply that if a domain cookie has be...
Can I determine the actual sender of a spoofed text message? I received a text message yesterday that appeared to come from one of my contacts, but he did not send it. I contacted my carrier (Verizon) and they said that because the sender used third party software, they couldn't tell me where it originated. But they di...
What information do you have to keep about a user to be an OpenID consumer? I want to use OpenID to let users register and authenticate on my system. So while I'm at it I want to not duplicate effort, and eliminate unnecessary passwords, etc from being stored. I assume that besides the user's Profile details, you woul...
I was studying different WAFs, from open-source (such as ModSecurity and NAXSI) to commercial solutions (Imperva, Citrix, Fortinet, etc.). Many people state that having a whitelist-based WAF is far more efficient than blacklist. I basically understand why a blacklist can be obsolete (even if in the case of bots it can ...
So, i understand that we should always use padding on RSA so that if we send the same message with different keys, the Chinese Remainder theorem can not be used to decrypt it. When looking at the padding schemes (OAEP) I do not get however why to use complicated hash functions when we have randomness introduced anyway....
In SQL injection an attacker can craft a string that if left unchecked and executed it can complete and execute arbitrary SQL commands. Is there an equivalent to these kinds of attacks in JSP pages? Specifically, is an error handler, which only prints URL-passed parameters on screen, capable of executing arbitrary code...
If a system becomes infected and does not have any other storage units besides the one hard drive. Is it there any other way for a rootkit to stay on the system besides infecting the BIOS OR the MBR of said drive after a 'nuke from high orbit'?
I'm a developer working on a website for the first time and have a question about new user activation. The way our site is setup now a user creates a new account and they get emailed a temporary password. The temp password gets hashed then saved in our database. The user logs in and they are told to reset their passwor...
So I've been reading my spam lately, and today I received this: To: my actual email, but with a name found here: tel2name.com (only hit on Google) Subject: one seemingly random excerpt of a web page found here: (only hit on Google) http://firstcommercialcreditcorp.com/commercial-property-values-increase/ citing "RCA...
I just found this vulnerability on http://www.securityfocus.com/bid/36363/references, which affects several samba server 3.0.xx. Can anyone explain more about this vulnerability? How this bypass happens if I do not allow anyone to access to shares without password, and possible counter-measures to this issue besides up...
Does replacing the values of the nonces in messages 3 and 4 with the cookie values in the headers of these messages, give an attacker any advantage? The nonce should be randomly chosen while the cookie is generated in a way that the attacker cannot predict. From the attacker's point of view, they might be interchangeab...
Sorry for this probably noobish question. So far, I've read password comparison/verification is implicitly understood to be made on the application layer and not in the database. For example in PHP, it would be done using the password_verify() function and not via a query like SELECT * WHERE username = foo AND password...
I am frequently seeing websites that allows a user to log-in to their site using other websites log-on credentials. If there is a page that allows me to log-in using my google account or facebook account, will the former site could get my google/facebook login details?
I would like to know the feasibility of certain kinds of attacks. To be clear, assume the target is a high-level priority of the NSA. Is an OS such as tails useless against root-kits/keyloggers, etc? As far as leaving no trace on computer? Could such malware/root-kit be transferred to a computer which has never been c...
I was reading about PwdHash and it inspired me to create a little project where you input a master password and an easy to remember alias into a password hash, like bcrypt, and then you get an hash. So far so good ; that hash should be pretty secure and no one should be able to guess my master password from it. The pro...
I have an server which contains around 4 instances hosted on it. I am aware that if a DoS attack happens on one of the instances it will take down all the other instances too. How to prevent such a failure and harden my server?
I read many questions and answers on this forum stating that oAuth is for authorization, OpenID is for authentication and more than a few of them goes on to say that OpenID Connect provides authentication by abusing oAuth authorization. Why the derogative tone? There is a very strong implication that this is bad, but ...
My Gmail told me someone tried to login with the correct password. But Gmail blocked it because the IP address used is different from my IP address. When I looked up the IP address that tried to login to my Gmail, it was the IP address of my shared hosting. How is this possible? I don't remember connecting to my shared...
I am developing a webserver and provide an API to be used by mobile clients. Some of my calls are without any authorization, for example, to start the authentication process. Is there a good way/best practice to verify that these calls are made only from the device? For example, my authentication process used a 3rd par...
I work as a programmer ,i want to make sure that no remote access tools RATS are on my pc before i work on my new project. it happened before that after finishing a hard project, a hacker went on my pc and stole my code and started black-mailing to give it back.
I have a back-end (API) and a front-end, eg a web server, and I have users and ID-providers. The web server is provided by a third aprty and it may just as well be a mobile app, but whatever the case is, the user uses it to access their data. Generally the users will need the Application (Web of Mobile) to be able to d...
Please some on help me to understand this "Are you ready for this? With the two-factor encryption model your data is protected two-fold. First, a unique key is generated, encrypted, and turned into a token, which is then stored. This token can only be accessed by the administrator or end user providing his credentials...
How do companies know when there has been a data breach? For example, do they monitor event logs for login audits or do they wait until a paste is made of their data in a pastebin type site? Is it possible that many smaller companies never know that their data has been stolen?
I have seen this question asked in different places, but have never seen a satisfactory answer: On different computer builds, ASUS/GIGABYTE/MSI, I constantly have outgoing connections to XXX-XXX-XXX.deploy.static.akamaitechnologies.com over HTTP Port 80, and if the connection attempts are denied, the network card (or a...
I recently came across an article on the The Verge, which centers around the concept of commercial malware production and how it's used around the world. The article introduced me to a number of interesting (and worrisome) concepts such as "process hollowing", remote access to hardware that's hidden from the system/use...
I have a public pgp key, so that users can send me an encrypted message. Ofcourse, any user that wants to send me a message, wants to verify that the public key (s)he has, really belongs to me. From what I have read, one can publish his public key to a trusted third party (for example: the MIT PGP Public Key Server). ...
As part of an increase in the security measures for our company, we're moving to making sure all password logins (databases, servers, etc), are done through a password prompt and never using stored passwords. The hope here is that if a company laptop were to go missing, we wouldn't need to change all our passwords. Is...
When performing a format string exploit, how do you inject an address that contains 0x00? #include<stdio.h> int main(int argc,char *argv[]) { char buf[80]; snprintf(buf, 79, argv[1]); printf(buf); } How would you get a ret to libc if, say, the address of system is 00112233 (Little endian) Where the addres...
We have AAA services enabled in our organization (about 1000 clients). We want also to add otp (one time password) service. What are the main security concerns about integrating them. Is there any available solution (preferably based on Windows Operating System) available.
I have a pcap file and I am trying to analyze it using Snort and Wireshark. When I tried the command, which I had showed below, in Ubuntu I was provided with various output such as the date, time, source host, destination host, protocol and there are some others like TTL, TOS, ID, IpLen, DgmLen, Ack, Seq. Snort -r myfi...
Are there any risks to using Google Analytics on my checkout page? The page is on SSL and I will obviously be serving the analytics script from their secured URL. Thanks.
I'm working on an application that makes use of the Symantec Protection Engine to scan uploaded files. I'm having issues with my files after they have been scanned. One possible solution I've seen is to store the uploaded file in a temporary folder, then stream it to the protection engine. If the engine determines t...
I've been working on the design of a longitudinal study and one requirement is: all participants will have a unique identifier that is not reversible from the data storage/analyst side of the study is defined by something easily remembered by a participant that is relatively static over several years, ex. a participa...
I am wondering what other people do for storing passwords. Our current model at my employer is fundamentally flawed in my opinion, so I am trying to see what other people do so I can select the best method. Right now all of the passwords for everything are stored in an excel file that is in a password protected Dropbox...
According to wikipedia or https://www.us-cert.gov/ncas/alerts/TA14-290A this is an issue with the SSL v3.0 non deterministic padding used in CBC. Is AES in CBC mode itself is un-secure or it is an issue only when used in SSLv3.0/TLS ? Can you please clarify ? I use openssl (an old version before the poodle attack fix)...
I have a website that allows the user to upload files. The front-end (web tier) checks the file extension and first few bytes of the file for the magic number of an acceptable file, but then downstream a more thorough backend process scans the full contents of the file using a server-side virus scanner and file content...
http://forum.example.com/users/username-3723484 vs http://forum.example.com/users/username where username is specific to each user, as is its salt. My hypothesis is that it makes it harder for spammers to collect information about someone by not giving a direct answer to the question: do you know user $login ? If I ha...
I'm looking for some advise on designing a secure web app for storing passwords. Why reinvent the wheel? Because I don't trust a 3rd party with all of my passwords. Here are my thoughts: There are 3 main components: Client, Application Server, Database Server. Ideally, I would like the system to be robust enough, so t...
One of my organization's users just showed us an interesting problem: every message they tried to send (in OWA 365) contained the following scary text: Your mailbox has exceeded one or more size limits set by your administrator. Your mailbox size is 1098957 KB. Mailbox size limits: You will receive a warning when ...
This is MITRE's powerpoint presentation version of their report: http://www.mitre.org/sites/default/files/publications/14-2221-extreme-escalation-presentation.pdf Page 54 is a straight pull from HP materials describing HP SureStart. However, there is no indication if HP SureStart successfully prevents the described att...
Obviously biometric security is a hot-button topic. I happen to attend a university with a well known biometrics department. (Which I'm not a part of.) My problem is, biometrics has a large caveat: it can't be changed. Once my fingerprint has been compromised, it is no longer useful as a security measure. Realistically...
Here's something that is bugging me recently: suppose that me and my friend establish an OTR session and - as a result of that - DH key exchange is performed. My friend verifies my key, but I cannot verify his fingerprint. Despite that, we have a secure channel over which he can send me one bit of information - whether...
sorry if this question do not fit here. I am at this moment making a website which is not finished at all. I found some analytics for the site and found something strange. I have 30 visits from USA, 8 from Germany, 1 from Russia and 1 from China. (I am Danish) This site has not been published anywhere. Is it just a c...
Can a registered 3rd party repo spoof critical packages (e.g libc6) and have them installed on apt 'upgrade' operations? What are the best ways (configuration) to help manage 3rd party repos to constrain their capabilities.
I recently started using Firefox for Android and saw I can download pages as PDF and near every image or video for any site and I'm using that quite a lot so what is the risk of downloading such things from websites? Lets say I download an image with embedded malicious code? Will malicious JavaScript or others be downl...
Given a small website hosted on a small data plan, is it possible for someone to keep doing requesting for my website URL or just an image hosted on my website that will consume all my permitted traffic and make the host eventually close access to the website? Or do hosts have a mechanism to defend against this?
Every hack happens because of a form of security vulnerability or another, and I feel that the best way to avoid/fix these vulnerabilities is to learn about them. Is there anywhere on the internet where I can find case studies of high profile hacks? For high profile hacks, media outlets usually publish uneducated infor...
In case of server SSL certificate it is issued by a CA which can then recall it until it expired and also the CA typically collects a fee for each certificate so it is interested in certificates expiring every year or so. My question is about client certificates. Suppose I want to make calls to Azure Management API ser...
There is a weird situation that I am stuck with regarding HTTP Basic Authentication. Below is a hypothetical situation: Lets say there is a certain domain, say https://myfacebook.com and there is a certain URL as : https://myfacebook.com/view_my_profile?imgURL=anyImageURL that myfacebook.com has designed so there users...
In Kali you can: airmon-ng start wlan0 ifconfig mon0 down macchanger -r mon0 (-r changes mac id to a random number) ifconfig mon0 up This attack for example: aireplay-ng -0 2 -a [ap mac #] -c [client mac #] mon0 While using snort it detects the attack but with the spoofed mac. In wireshark focused on mon0 you ca...
I'm developing a quiz with which you can win a few cool prizes. Therefore I'm afraid, that someone might try to hack/manipulate it. All participants have to be logged in and the website takes 15 questions from the db, gives them to Javascript, which paint's the quiz then. When a user finishes all questions or answer on...
I don't know much about network engineering since I just started becoming a programmer. The situation is, that my company has a web-interface hosted on one of our servers that is connected to the internet. Employees of the company log into the web-interface with their password and fill out a form/upload data. Now i wan...
Wikipedia states that md5's collision resistance is 2^18 (https://en.wikipedia.org/wiki/MD5). I just found out that openssl enc uses md5 to hash the password and the salt. Let's assume that I want to use a 27 char random password (62 char alphabet). That would yield 62^27 = 10^48 = 2^160 possible passwords which will ...
I am analyzing a mobile application, which has embedded files(Worms) to attack a desktop OS. But this application does not do any harm to the mobile platform. Mobile is just a medium to deliver malware to the PC. If we connect mobile to PC then worm will infect PC. Can it be considered a cross-platform attack, even whe...
I have a Debian Linux server which runs a few online game services. I have some competitors in this area and I think one of them is behind the DDoS attacks. I have full access to the router, so I set a few connection rules in Winbox which can detect and drop the DDoSer IP addresses but I think it's not the best way to ...
I am looking to improve the security of an existing REST API accessed over SSL. The web service is multi-tenant, such that each tenant has an assigned TenantId. The problem I facing can be summarized as: How can I determine the tenant? How can I determine the client is legitimate? Is HTTP cookie based security suitabl...
So I cleaned up some malicious PHP scripts from a client's site and I've been monitoring for follow up connections to the scripts. Of course, I've found a LOT of IPs requesting the files. Too many to try and blacklist and too many different netblocks to block at a high level. I'm thinking about redirecting all sub...
I have servers on a LAN reporting my laptop with a bogus hostname. This is making me suspect a man in the middle attack. Here are some details: From an Ubuntu Linux 14.04 laptop, I logged into an Ubuntu server to do some bandwidth monitoring with a tool call jnettop. jnettop lists all computers connected to the server ...
If you visit a site from your desktop, and use GA to login, you create an airgap. But if you visit a site from your mobile, and use GA to login, in what way are you still protected from Android malware?
We're using this powershell script as our Azure Cloud Service (PaaS) startup script and we're at an A- on the Qualys SSL Labs test Specifically we're losing points for the following reasons: Forward Secrecy : With some browsers (more info) Downgrade attack prevention : No, TLS_FALLBACK_SCSV not supported (more info) W...
Does SafeBrowsing actually work with the URL paths or does it only look at the domains? If it is just the domains, does it also look at the subdomains or are the results for example.com and x.example.com going to be the same?
This is related to Converting keys between openssl and openssh . I have private keys generated by openssl that I want to use with SSH for connection authentication. I have no issue using ssh-keygen to generate a public key. However, I'm now trying to use CA certificate signing as I'm dealing with over 100 machines th...
I have the following situation: I have an app on a User device, and my main server. The app can send the main server pdf-files and jpg-files. Now my problems are: -> What is the best way for the server to make sure that only pdf-files and jpg-files arrive? -> What is the best way for the server to make sure that only f...
I have a pcap file, and what I wanted to know is how can I apply the Snortrule below which I've already written within the rules folder in my log folder: alert icmp any any -> any any (msg:"TCP Packet"; sid:477; rev:3;) How can I execute this rule over the pcap file I have?
I give a contract to find vulnerabilities in my site to a white hat hacker. According to him he performed several attacks on my site for 15 days and find that there is no any security threats. I am not sure he actually did this or not. How can I validate his report?
The site I want to use says that it stores permanent cookies on my computer to track various things, for instance if I have two accounts with them. It says "Please note that if you set your browser to disable cookies, you may not be able to access certain parts of the Site for example applying for a job or posting a jo...
I currently don't use Tor and I have VoIP - a physical phone using a provider's VoIP service over my Internet connection. If I install Tor, will I still be able to make and receive phone calls with my VoIP phone? I am not concerned about the privacy of the phone calls, I just want to be able to use the phone.
I am implementing a REST API for our mobile applications in which user will login using the SDKs of various social media. Currently, the login strategy is as follows: The token(s) (access_token in case of Facebook, access_token and refresh_token in case of Google+) being generated by the SDK are being sent to the logi...
I've just made the prototype for my new secure password-based authentication method, but there are several doubts about chosen size of password and alphabet. The method is simple - user calculates the checksum of his password (sum of positions of these symbols in different random permutations of the chosen alphabet. So...
I have tried to implement a downgrade attack against the SSH protocol as the first steps (encryption protocols exchange) are not signed, as per RFC4253. The idea is to intercept (mitm) these steps and replace strong algorithms by weaker algorithms supported by both sides. The replacement is working well, and server and...
We want to implement a "safe mode" in a Markdown parser called Parsedown. We have a MarkupEscaped option that disables HTML input, but this is not enough. In order to be safe, the parser needs to sanitise user generated attribute values. These are the: href and title attributes of a tags. src and title attributes of i...
my workplace is currently using a wireless router that is secured using WEP. If I connect a laptop to the wireless router with a cable, would someone that has cracked the password still be able to create a man-in-the-middle attack with the laptop? Or just with people that connect wirelessly? Thanks
I'm currently trying to build a (sort of) secure, desktop based RTF text editor written for node-webkit using node.js. Based on some answers that I read here, such as How can I securely convert a "string" password to a key used in AES? and Recommended # of iterations when using PKBDF2-SHA256?, amongst others, I've come...
Theoretically, DNS cache poisoning shouldn't matter,because everything important is protected by SSL and IPsec. So why DNSSec was developed? Aren't the first two protocols sufficient?
Someone called my home saying that he was calling from Windows Security Department. He said that there are about 16 other people connected to my computer and they're doing illegal things online. He told me to go to my computer, go to some site, save the file, run it, and then asked me to tell him the numbers in the box...
I am working on one of my projects where users don't need to register or login to post an advert, but they have to provide an email address so that a confirmation link can be sent to the provided address for further actions. I was reading how poor email validation is useless and that invalid emails still can pass throu...
I was considering setting up a software firewall (pf) on my web server and did some research on them. Were I to do it, it'd involve basically blocking connections to all ports except 80, 443, and the non-standard port I'm using for SSH connections. But seeing as how my server already only has services running on those ...
How might Snort or another IDS system work with Cloudflare? Essentially, the originating IP would be CloudFlare's, therefore a proactive IPS might be difficult to install. I understand that Cloudflare itself is a IPS to some degree and will actively detect some attack signatures, but is it feasible to install something...
I recently opened a link from a "friend", while I was on my workplace. It was some really simple stupid game "Super Mario" type. I opened it, played for 10 seconds and closed the link. What felt suspicious in first place was that the link that he provided me was sent with whitespace in it i.e. http:// some-url . someth...
I got an email from Google no-reply@accounts.google.com saying the following about the gmail address of an acquaintance that is supposedly connected to a non-gmail account I use: > The password for your Google Account - &&&&&&(changed)&&&&&@gmail.com > - was recently changed. If you made this change, you don't need to...
I am working on a web application which allows users to share stuff on a web-page by clicking on an 'email to friend' link; similar to what extole is doing here http://www.american-giant.com/mens-heavyweight-full-zip-hooded-sweatshirt-product.html on this page if you click on the email icon near "REFER & GET $15", you ...
In Ephemeral Diffie-Hellman, the key pair is generated every time. In practice, does this mean I never need a certificate? Or that means I need a new cert every single time?
This morning I went to the internet and accidentally clicked on a blocked website (OpenDNS blocked it). Though there was something strange on the place of the icon there was a little router icon and there was written "Strona zablokowana przez administratora". The rest of the page was the exact same. I went to work and...
If a user has to change their password ever so often, is it a good thing to check it against zxcvbn or similar library and assign a expiration date relative to the risk of the hash being cracked?
I'm developing an iOS app that requires data to be sent to a server to process a transaction. The data is stored on Stripe (A credit card service) so I do not need to worry about encrypting / storing data. The only thing that poses a threat is that I have a script that downloads the users information (eg. credit card a...
I keep seeing error messages reporting issues with SSL (Chrome, IE, Mozilla) when clicking on links in the YAHOO homepage to stories from different YAHOO sites (screen, autos, movies, hsrd, etc.) CHROME reports "A secure connection cannot be established because this site uses an unsupported protocol. Error code: E...
I'll preface this by saying I know approximately 0 about cyber-sec I've made a server that will allow smart phones to act as a remote control for my house (eg turn lights on/off and unlock doors). Obviously the security of this server is very important to me. I would also like the latency on the app to be as low as pos...
I am looking at packet captures of perfect forward secrecy for cipher "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256". Per definition of PFS, after initial client and server hellos exchanged, both sides must come up with public-private key pairs and they share the new public keys. In packet capture, i am seeing client is sen...
I'm trying to figure out how a given executable works. I know it's using AES-128 to encrypt and decrypt, but the specifics of the code are unknown. I can get the executable to encrypt and decrypt any data, as many times as I want. How can I go about determining the key and method used by this executable? For example, I...
If you read about cell phone tracking it looks an IMSI Catcher always uses a fake base station the get the phones IMSI. I don't understand why this is necessary. Couldn't they just passively read the signal and copy the phones ID from it's communication? From what I read the signal might be encrypted but can be broken ...
I'm working on a REST API that will let an Android app communicate with a website. Sadly more than half of the people that are going to use it can't do so over HTTPs, so I will have to maximize security over HTTP. What needs to happen is simply authenticating through a REST API, username/email and password. I've though...
I have a traditional PHP site which uses sessions. I've developed a real-time app in nodejs and wish to authenticate users here based on their PHP session. The procedure would go something like this: Client AJAX's some getAuthToken.php page Client connects to the websocket server anonymously Client sends their authent...
i am trying to secure the connection between a single-page webApp (angularJS, loaded from a secure source via SSL) to a local server (called BOX) inside the private, local wifi of the user. So the webApp is loaded in the browser via HTTPS and then uses ajax to connect to the local BOX Ressource in the local wifi. At th...
PCI DSS 8.3 is stated as follows 8.3 Incorporate two-factor authentication for remote network access originating from outside the network by personnel (including users and administrators) and all third parties, (including vendor access for support or maintenance). Two-factor authentication requires that two of t...