Posts Tagged ‘pastebin.com’
Potential leak of data: Simple Password
Detected 1 occurrence(s) of ‘\s*pass[word]+\s*[:=]\s*["'][a-z0-9\-_\!\$]+["']‘:
n:wagon-ssh:2.2"
}
uploadArchives {
repositories.mavenDeployer {
name = 'sshDeployer' // optional
configuration = configurations.deployerJars
repository(url: "scp://miniappserver") {
authentication(userName: "root", password: "test")
}
}
}
$ gradle uploadArchives -q
FAILURE: Build failed with an exception.
* Where:
Build file '/home/ifischer/git/userservice/implementation/build.gradle' line: 11
* What went wrong:
A problem occurred evaluating project ':implementati
Potential leak of data: URL with Credentials
Detected 3 occurrence(s) of ‘[ht|f]tp[s]*:\/\/\w+\:.*\@\w*\.\w*’:
host | url-path searchpart fragment
| | password port
| user
scheme
path <- url("file:///C:/temp/test.html")
readLines(path)
path <- url("http://user:password@141.78.x.x/desiredDirectory")
path <- url("http://user:password@141.78.x.x:80/desiredDirectory")
Potential leak of data: Simple Password
Detected 1 occurrence(s) of ‘\s*pass[word]+\s*[:=]\s*["'][a-z0-9\-_\!\$]+["']‘:
r'] = self.request.user
return initial
from django.test import TestCase, client
class MyTest(TestCase):
def setUp(self):
self.client = client.Client()
def test1(self):
self.assertTrue(self.client.login(username='user1',password='password1'))
data = {'name':'test 1'}
response = self.client.post('/app/save/', data)
self.assertEqual(response.status_code, 302)
Potential leak of data: Default Credentials
Detected 1 occurrence(s) of ‘default\s*credentials’:
l.To.Add(toAddress);
mail.Subject = title;
mail.IsBodyHtml = isHTML;
mail.Body = message;
if(attach != null) mail.Attachments.Add(attach);
smtpServer.Port = xxx
smtpServer.UseDefaultCredentials = false;
smtpServer.Credentials = new NetworkCredential(SMTPUser, SMTPPassword);
smtpServer.EnableSsl = true;
smtpServer.Send(mail); //Error occurs here
SmtpMail.DeliveryMethod = SmtpDeliveryMethod.SpecifiedPicku
Potential leak of data: Base64 Encoded Data
Detected 1 occurrence(s) of ‘\s+[a-z0-9]{40,}[=]{1,2}$’:
tream; name="MyAttachment.xlsx" Content-Description: MyAttachment.xlsx Content-Disposition: attachment; filename="MyAttachment.xlsx"; size=15262 Content-Transfer-Encoding: base64 UEsDBBQABgAIAAAAIQA3Mb2RgAEAAIQFAAATAAgCW0NvbnRlbnRfVHlwZXNdLnhtbCCiBAIooAAC AF81AABkb2NQcm9wcy9hcHAueG1sUEsFBgAAAAANAA0AaAMAACA4AAAAAA== --_003_81E0DB72B1F643FBAA40D9BCB66A11E4_ Content-Type: text/html; name="ATT00001.htm" Content-Description: ATT00001.htm Content-Disposition: attachment; filename="ATT00001.htm"; size=91 Content-Transfer-Encoding: base64 PGh0bWw+PGJvZHkgYmdjb2xvcj0iI0ZG

