Hot answers tagged

4

tl/dr: Whether or not you have a reflected XSS vulnerability depends on the exact method you use to append the data. Therefore you should specifically check your chosen method to make sure it is safe. Modern javascript frameworks typically take care of these things automatically for you, but jQuery doesn't, so attention to detail is critical. You ...


3

Your website may be vulnerable to a reflected XSS attack (It depends upon how you are setting that value and how the data is interpreted). For example, imagine if I access the following URL: mysite.com?p="></a><script>malicious_code()</script><a href=" If your site converts this: <a href="secondurl.com">Link </a> into ...


1

I would suggest rethinking your approach. Hashes are not virus signatures; they only serve as a fingerprint to identify files. With most conventional hash algorithms (e.g. SHA256), modifying the input slightly results in an entirely different hash output. Thus there is no correlation between malicious features in your virus files and their hashes. ...


1

There's nothing wrong with your code there. What you're getting is a code compile error, and your code is syntactically fine. I'm running your code just dumping the variables rather than trying to send an email: <?php $to = 'nobody@example.com'; $subject = 'the subject'; $message = 'hello'; $headers = 'From: webmaster@example.com' . "\r\n"; ...


1

I posted about it on the python bug tracker and got some advice. Since python interprets files line-by-line, we can delay the termination error, which leads to this interesting bug, simply by adding a new line \n to leak a line at a time. The proof of concept is as follows: Create target File $ cat /tmp/passwd line 1 line 2 line 3 line 4 Read from ...


1

One of the requirements of Pypi is that the URI contains "api/pypi" on the path, so with a good firewall you can put a rule that only allows your domain that you trust pip and you can reject the rest with a regular expression that contains the api/pypi.


1

Is it a good counter-measure for this kind of a situation? No. Unfortunately what you're planning to do won't address this specific threat. Here, the attackers compromised the package on PyPI itself, hence it was downloaded from the original source, so limiting downloads only to PyPI would have no effect. In most cases, these compromised packages come in ...


Only top voted, non community-wiki answers of a minimum length are eligible