Comments (9)
Hi Adam, thanks for reporting this issue!
Would you be willing to share your configuration file (privately, if you would like) or at least an example that reproduces this error?
If so, if you can run the latest Brakeman source that I just updated, it should indicate which file in particular caused the problem.
Thanks again!
from brakeman.
Sure. Do you want to see the application.rb config file? What email can I reach you at?
from brakeman.
It could be application.rb or environments/production.rb. You can send it/them to [email protected].
Thanks!
from brakeman.
So it looks like I only get that error when running as a gem. When I clone the project and specify the path to bin/brakeman it works fine. Could it possibly be a conflict with rvm? I don't think it's anything in our application causing the problem as it works when I specify the path.
from brakeman.
I don't think it's an issue with rvm - I use rvm constantly.
Did you see a message like [Notice] Error while processing config/application.rb
?
If not, seems like there are two possibilities:
- Brakeman is behaving differently when installed as a gem.
- There is an issue in Rails3ConfigProcessor that is tripping on something in your configuration, but a code change since 1.0 somehow fixes/hides it.
To check (1), build the gem from source, install it, and try again:
gem build brakeman.gemspec
gem install brakeman-1.0.0.gem
To check (2), revert Brakeman source to 1.0.0 and run directly from bin/brakeman:
git reset --hard 55a72956273c33b98a8ad2448e041f0373678afe
./bin/brakeman your/app
from brakeman.
I think I found the problem. RVM was using 1.8 as the default, app was on 1.9. Setting 'rvm system 1.9.3-p0' fixed it. Thanks and sorry for the red herring.
from brakeman.
Are you sure that was the issue? I'm having trouble figuring out how that would cause that problem. If you were using 1.9 syntax, then you should get a parsing error...
from brakeman.
Yeah as far as I can tell. The only thing I've changed was making sure the version of ruby that RVM was using was the same as what the app was using.
from brakeman.
Okay, cool. I will close this for now. Feel free to reopen if the problem returns.
from brakeman.
Related Issues (20)
- False Negative: warning on CSRF in Rails 5.2+ with defaults HOT 5
- Relax Rails app structure constraints HOT 2
- content_tag no longer considered dangerous HOT 1
- False positive Send where `send` is inside conditional that prevents arbitrary user input. HOT 2
- False positive for `protect_from_forgery` when defaults for rails 7 are used HOT 1
- Unscoped find not alerted for `find_by!`
- Unscoped find does not traverse concerns HOT 1
- Error: undefined method `node_type' for nil:NilClass case value.node_type HOT 4
- False positive - loofah gem 2.19.1 is already beyond suggested upgrade of 2.2.1 HOT 2
- Config in environment files generated by external services are not detected HOT 1
- Documentation Missing for Path Traversal HOT 2
- `abbrev` warning for ruby 3.4.0 HOT 4
- Possibility to ignore/skip directories/paths HOT 4
- UnsafeReflection requires array to be defined with values strictly in the context of the execution HOT 4
- Brakeman does not follow directory symlinks HOT 7
- Brakeman hangs on some platforms HOT 5
- Brakeman unable to detect Renderables in a Gem? HOT 2
- Command Injection doesn't detect shellescape unless the code is in the same function HOT 2
- Undeliverable address [email protected] in LICENSE.md HOT 2
- Controller with "log" in pathname excluded from scan HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from brakeman.