File tree 1 file changed +8
-2
lines changed
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -319,7 +319,6 @@ fn check_graphql_and_perms<'a>(
319
319
} ) ,
320
320
_ => { }
321
321
}
322
- // TODO : Build out permission resolver here
323
322
324
323
operations
325
324
}
@@ -671,9 +670,16 @@ pub(crate) fn scan_directory<'a>(
671
670
. collect :: < Vec < String > > ( )
672
671
. join ( "\n " ) ;
673
672
674
- let mut final_perms: HashSet < & String > = perm_interp. permissions . iter ( ) . collect ( ) ;
673
+ // excess Forge storage scopes should not increase the severity of an AuthZ vuln
674
+ let mut final_perms: HashSet < & String > = perm_interp
675
+ . permissions
676
+ . iter ( )
677
+ . filter ( |x| * * x != "report:personal-data" && * * x != "storage:app" )
678
+ . collect ( ) ;
675
679
let ast = parse_schema :: < & str > ( & joined_schema) ;
676
680
681
+ // Lack of coverage, since no apps use raw GraphQL currently.
682
+ #[ cfg( any( ) ) ]
677
683
if let std:: result:: Result :: Ok ( doc) = ast {
678
684
let mut used_graphql_perms: Vec < & str > = definition_analysis_interp
679
685
. value_manager
You can’t perform that action at this time.
0 commit comments