We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Environment: .NET 7.0, SecTester packages of versions: [0.33.2, 0.33.4]
Precondition: Create a Bright API key with all available scopes. Put created API key under BRIGTH_TOKEN env variable.
BRIGTH_TOKEN
Eaxampe
[Fact] public async Task Post_BrokencrystalsApiMetadata_ShouldHaveXxe() { var config = new Configuration("hotel.playground.brightsec.com", logLevel: LogLevel.Trace); var runner = SecRunner.Create(config); await runner.Init(); var content = new StringContent(@"<?xml version=""1.0"" encoding=""UTF-8""?><!DOCTYPE replace [<!ENTITY xxe SYSTEM ""file:///etc//passwd""> ]><xxe_trigger>&xxe;</xxe_trigger><child></child>", Encoding.Default, "text/xml"); var headers = new Dictionary<string, IEnumerable<string>> { { "Accept", new[] { "application/json", "text/plain", "*/*" } }, { "Accept-Encoding", new[] { "identity" } }, }; var target = new Target("https://qa.brokencrystals.com/api/metadata") .WithMethod(HttpMethod.Post) .WithBody(content) .WithHeaders(headers); var builder = new ScanSettingsBuilder() .WithTests(new List<TestType> { TestType.Xxe }); await runner .CreateScan(builder) .Threshold(Severity.Medium) .Run(target); await runner.DisposeAsync(); }
Actual result: System.NullReferenceException raised
Expected result: Test is able to start
The text was updated successfully, but these errors were encountered:
fix(runner): add ability to load credentials in Create method
Create
8ac37ca
closes #139
76238ed
adjust according to code review #140 (comment) #140 (comment) closes #139
59cee85
3429b11
fix(runner): load credentials before creating a composite root (#140)
10bc306
ostridm
Successfully merging a pull request may close this issue.
Environment:
.NET 7.0, SecTester packages of versions: [0.33.2, 0.33.4]
Precondition:
Create a Bright API key with all available scopes.
Put created API key under
BRIGTH_TOKEN
env variable.Eaxampe
Actual result:
System.NullReferenceException raised
Expected result:
Test is able to start
The text was updated successfully, but these errors were encountered: